Skip to content

Commit

Permalink
Updating based on eaaf9032e
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Jan 9, 2024
1 parent dec0605 commit 486ed25
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,15 @@ func parseKnownPerfCounterDataSourceStreams(input string) (*KnownPerfCounterData
type KnownSyslogDataSourceFacilityNames string

const (
KnownSyslogDataSourceFacilityNamesAlert KnownSyslogDataSourceFacilityNames = "alert"
KnownSyslogDataSourceFacilityNamesAny KnownSyslogDataSourceFacilityNames = "*"
KnownSyslogDataSourceFacilityNamesAudit KnownSyslogDataSourceFacilityNames = "audit"
KnownSyslogDataSourceFacilityNamesAuth KnownSyslogDataSourceFacilityNames = "auth"
KnownSyslogDataSourceFacilityNamesAuthpriv KnownSyslogDataSourceFacilityNames = "authpriv"
KnownSyslogDataSourceFacilityNamesClock KnownSyslogDataSourceFacilityNames = "clock"
KnownSyslogDataSourceFacilityNamesCron KnownSyslogDataSourceFacilityNames = "cron"
KnownSyslogDataSourceFacilityNamesDaemon KnownSyslogDataSourceFacilityNames = "daemon"
KnownSyslogDataSourceFacilityNamesFtp KnownSyslogDataSourceFacilityNames = "ftp"
KnownSyslogDataSourceFacilityNamesKern KnownSyslogDataSourceFacilityNames = "kern"
KnownSyslogDataSourceFacilityNamesLocalFive KnownSyslogDataSourceFacilityNames = "local5"
KnownSyslogDataSourceFacilityNamesLocalFour KnownSyslogDataSourceFacilityNames = "local4"
Expand All @@ -193,18 +197,24 @@ const (
KnownSyslogDataSourceFacilityNamesMail KnownSyslogDataSourceFacilityNames = "mail"
KnownSyslogDataSourceFacilityNamesMark KnownSyslogDataSourceFacilityNames = "mark"
KnownSyslogDataSourceFacilityNamesNews KnownSyslogDataSourceFacilityNames = "news"
KnownSyslogDataSourceFacilityNamesNopri KnownSyslogDataSourceFacilityNames = "nopri"
KnownSyslogDataSourceFacilityNamesNtp KnownSyslogDataSourceFacilityNames = "ntp"
KnownSyslogDataSourceFacilityNamesSyslog KnownSyslogDataSourceFacilityNames = "syslog"
KnownSyslogDataSourceFacilityNamesUser KnownSyslogDataSourceFacilityNames = "user"
KnownSyslogDataSourceFacilityNamesUucp KnownSyslogDataSourceFacilityNames = "uucp"
)

func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {
return []string{
string(KnownSyslogDataSourceFacilityNamesAlert),
string(KnownSyslogDataSourceFacilityNamesAny),
string(KnownSyslogDataSourceFacilityNamesAudit),
string(KnownSyslogDataSourceFacilityNamesAuth),
string(KnownSyslogDataSourceFacilityNamesAuthpriv),
string(KnownSyslogDataSourceFacilityNamesClock),
string(KnownSyslogDataSourceFacilityNamesCron),
string(KnownSyslogDataSourceFacilityNamesDaemon),
string(KnownSyslogDataSourceFacilityNamesFtp),
string(KnownSyslogDataSourceFacilityNamesKern),
string(KnownSyslogDataSourceFacilityNamesLocalFive),
string(KnownSyslogDataSourceFacilityNamesLocalFour),
Expand All @@ -218,6 +228,8 @@ func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {
string(KnownSyslogDataSourceFacilityNamesMail),
string(KnownSyslogDataSourceFacilityNamesMark),
string(KnownSyslogDataSourceFacilityNamesNews),
string(KnownSyslogDataSourceFacilityNamesNopri),
string(KnownSyslogDataSourceFacilityNamesNtp),
string(KnownSyslogDataSourceFacilityNamesSyslog),
string(KnownSyslogDataSourceFacilityNamesUser),
string(KnownSyslogDataSourceFacilityNamesUucp),
Expand All @@ -226,11 +238,15 @@ func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {

func parseKnownSyslogDataSourceFacilityNames(input string) (*KnownSyslogDataSourceFacilityNames, error) {
vals := map[string]KnownSyslogDataSourceFacilityNames{
"alert": KnownSyslogDataSourceFacilityNamesAlert,
"*": KnownSyslogDataSourceFacilityNamesAny,
"audit": KnownSyslogDataSourceFacilityNamesAudit,
"auth": KnownSyslogDataSourceFacilityNamesAuth,
"authpriv": KnownSyslogDataSourceFacilityNamesAuthpriv,
"clock": KnownSyslogDataSourceFacilityNamesClock,
"cron": KnownSyslogDataSourceFacilityNamesCron,
"daemon": KnownSyslogDataSourceFacilityNamesDaemon,
"ftp": KnownSyslogDataSourceFacilityNamesFtp,
"kern": KnownSyslogDataSourceFacilityNamesKern,
"local5": KnownSyslogDataSourceFacilityNamesLocalFive,
"local4": KnownSyslogDataSourceFacilityNamesLocalFour,
Expand All @@ -244,6 +260,8 @@ func parseKnownSyslogDataSourceFacilityNames(input string) (*KnownSyslogDataSour
"mail": KnownSyslogDataSourceFacilityNamesMail,
"mark": KnownSyslogDataSourceFacilityNamesMark,
"news": KnownSyslogDataSourceFacilityNamesNews,
"nopri": KnownSyslogDataSourceFacilityNamesNopri,
"ntp": KnownSyslogDataSourceFacilityNamesNtp,
"syslog": KnownSyslogDataSourceFacilityNamesSyslog,
"user": KnownSyslogDataSourceFacilityNamesUser,
"uucp": KnownSyslogDataSourceFacilityNamesUucp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,15 @@ func parseKnownPrometheusForwarderDataSourceStreams(input string) (*KnownPrometh
type KnownSyslogDataSourceFacilityNames string

const (
KnownSyslogDataSourceFacilityNamesAlert KnownSyslogDataSourceFacilityNames = "alert"
KnownSyslogDataSourceFacilityNamesAny KnownSyslogDataSourceFacilityNames = "*"
KnownSyslogDataSourceFacilityNamesAudit KnownSyslogDataSourceFacilityNames = "audit"
KnownSyslogDataSourceFacilityNamesAuth KnownSyslogDataSourceFacilityNames = "auth"
KnownSyslogDataSourceFacilityNamesAuthpriv KnownSyslogDataSourceFacilityNames = "authpriv"
KnownSyslogDataSourceFacilityNamesClock KnownSyslogDataSourceFacilityNames = "clock"
KnownSyslogDataSourceFacilityNamesCron KnownSyslogDataSourceFacilityNames = "cron"
KnownSyslogDataSourceFacilityNamesDaemon KnownSyslogDataSourceFacilityNames = "daemon"
KnownSyslogDataSourceFacilityNamesFtp KnownSyslogDataSourceFacilityNames = "ftp"
KnownSyslogDataSourceFacilityNamesKern KnownSyslogDataSourceFacilityNames = "kern"
KnownSyslogDataSourceFacilityNamesLocalFive KnownSyslogDataSourceFacilityNames = "local5"
KnownSyslogDataSourceFacilityNamesLocalFour KnownSyslogDataSourceFacilityNames = "local4"
Expand All @@ -338,18 +342,24 @@ const (
KnownSyslogDataSourceFacilityNamesMail KnownSyslogDataSourceFacilityNames = "mail"
KnownSyslogDataSourceFacilityNamesMark KnownSyslogDataSourceFacilityNames = "mark"
KnownSyslogDataSourceFacilityNamesNews KnownSyslogDataSourceFacilityNames = "news"
KnownSyslogDataSourceFacilityNamesNopri KnownSyslogDataSourceFacilityNames = "nopri"
KnownSyslogDataSourceFacilityNamesNtp KnownSyslogDataSourceFacilityNames = "ntp"
KnownSyslogDataSourceFacilityNamesSyslog KnownSyslogDataSourceFacilityNames = "syslog"
KnownSyslogDataSourceFacilityNamesUser KnownSyslogDataSourceFacilityNames = "user"
KnownSyslogDataSourceFacilityNamesUucp KnownSyslogDataSourceFacilityNames = "uucp"
)

func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {
return []string{
string(KnownSyslogDataSourceFacilityNamesAlert),
string(KnownSyslogDataSourceFacilityNamesAny),
string(KnownSyslogDataSourceFacilityNamesAudit),
string(KnownSyslogDataSourceFacilityNamesAuth),
string(KnownSyslogDataSourceFacilityNamesAuthpriv),
string(KnownSyslogDataSourceFacilityNamesClock),
string(KnownSyslogDataSourceFacilityNamesCron),
string(KnownSyslogDataSourceFacilityNamesDaemon),
string(KnownSyslogDataSourceFacilityNamesFtp),
string(KnownSyslogDataSourceFacilityNamesKern),
string(KnownSyslogDataSourceFacilityNamesLocalFive),
string(KnownSyslogDataSourceFacilityNamesLocalFour),
Expand All @@ -363,6 +373,8 @@ func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {
string(KnownSyslogDataSourceFacilityNamesMail),
string(KnownSyslogDataSourceFacilityNamesMark),
string(KnownSyslogDataSourceFacilityNamesNews),
string(KnownSyslogDataSourceFacilityNamesNopri),
string(KnownSyslogDataSourceFacilityNamesNtp),
string(KnownSyslogDataSourceFacilityNamesSyslog),
string(KnownSyslogDataSourceFacilityNamesUser),
string(KnownSyslogDataSourceFacilityNamesUucp),
Expand All @@ -371,11 +383,15 @@ func PossibleValuesForKnownSyslogDataSourceFacilityNames() []string {

func parseKnownSyslogDataSourceFacilityNames(input string) (*KnownSyslogDataSourceFacilityNames, error) {
vals := map[string]KnownSyslogDataSourceFacilityNames{
"alert": KnownSyslogDataSourceFacilityNamesAlert,
"*": KnownSyslogDataSourceFacilityNamesAny,
"audit": KnownSyslogDataSourceFacilityNamesAudit,
"auth": KnownSyslogDataSourceFacilityNamesAuth,
"authpriv": KnownSyslogDataSourceFacilityNamesAuthpriv,
"clock": KnownSyslogDataSourceFacilityNamesClock,
"cron": KnownSyslogDataSourceFacilityNamesCron,
"daemon": KnownSyslogDataSourceFacilityNamesDaemon,
"ftp": KnownSyslogDataSourceFacilityNamesFtp,
"kern": KnownSyslogDataSourceFacilityNamesKern,
"local5": KnownSyslogDataSourceFacilityNamesLocalFive,
"local4": KnownSyslogDataSourceFacilityNamesLocalFour,
Expand All @@ -389,6 +405,8 @@ func parseKnownSyslogDataSourceFacilityNames(input string) (*KnownSyslogDataSour
"mail": KnownSyslogDataSourceFacilityNamesMail,
"mark": KnownSyslogDataSourceFacilityNamesMark,
"news": KnownSyslogDataSourceFacilityNamesNews,
"nopri": KnownSyslogDataSourceFacilityNamesNopri,
"ntp": KnownSyslogDataSourceFacilityNamesNtp,
"syslog": KnownSyslogDataSourceFacilityNamesSyslog,
"user": KnownSyslogDataSourceFacilityNamesUser,
"uucp": KnownSyslogDataSourceFacilityNamesUucp,
Expand Down

0 comments on commit 486ed25

Please sign in to comment.