...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement

     1  package alertsmanagement
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // ActionRuleStatus enumerates the values for action rule status.
    10  type ActionRuleStatus string
    11  
    12  const (
    13  	// Disabled ...
    14  	Disabled ActionRuleStatus = "Disabled"
    15  	// Enabled ...
    16  	Enabled ActionRuleStatus = "Enabled"
    17  )
    18  
    19  // PossibleActionRuleStatusValues returns an array of possible values for the ActionRuleStatus const type.
    20  func PossibleActionRuleStatusValues() []ActionRuleStatus {
    21  	return []ActionRuleStatus{Disabled, Enabled}
    22  }
    23  
    24  // AlertModificationEvent enumerates the values for alert modification event.
    25  type AlertModificationEvent string
    26  
    27  const (
    28  	// ActionRuleSuppressed ...
    29  	ActionRuleSuppressed AlertModificationEvent = "ActionRuleSuppressed"
    30  	// ActionRuleTriggered ...
    31  	ActionRuleTriggered AlertModificationEvent = "ActionRuleTriggered"
    32  	// ActionsFailed ...
    33  	ActionsFailed AlertModificationEvent = "ActionsFailed"
    34  	// ActionsSuppressed ...
    35  	ActionsSuppressed AlertModificationEvent = "ActionsSuppressed"
    36  	// ActionsTriggered ...
    37  	ActionsTriggered AlertModificationEvent = "ActionsTriggered"
    38  	// AlertCreated ...
    39  	AlertCreated AlertModificationEvent = "AlertCreated"
    40  	// MonitorConditionChange ...
    41  	MonitorConditionChange AlertModificationEvent = "MonitorConditionChange"
    42  	// SeverityChange ...
    43  	SeverityChange AlertModificationEvent = "SeverityChange"
    44  	// StateChange ...
    45  	StateChange AlertModificationEvent = "StateChange"
    46  )
    47  
    48  // PossibleAlertModificationEventValues returns an array of possible values for the AlertModificationEvent const type.
    49  func PossibleAlertModificationEventValues() []AlertModificationEvent {
    50  	return []AlertModificationEvent{ActionRuleSuppressed, ActionRuleTriggered, ActionsFailed, ActionsSuppressed, ActionsTriggered, AlertCreated, MonitorConditionChange, SeverityChange, StateChange}
    51  }
    52  
    53  // AlertRuleState enumerates the values for alert rule state.
    54  type AlertRuleState string
    55  
    56  const (
    57  	// AlertRuleStateDisabled ...
    58  	AlertRuleStateDisabled AlertRuleState = "Disabled"
    59  	// AlertRuleStateEnabled ...
    60  	AlertRuleStateEnabled AlertRuleState = "Enabled"
    61  )
    62  
    63  // PossibleAlertRuleStateValues returns an array of possible values for the AlertRuleState const type.
    64  func PossibleAlertRuleStateValues() []AlertRuleState {
    65  	return []AlertRuleState{AlertRuleStateDisabled, AlertRuleStateEnabled}
    66  }
    67  
    68  // AlertsSortByFields enumerates the values for alerts sort by fields.
    69  type AlertsSortByFields string
    70  
    71  const (
    72  	// AlertsSortByFieldsAlertState ...
    73  	AlertsSortByFieldsAlertState AlertsSortByFields = "alertState"
    74  	// AlertsSortByFieldsLastModifiedDateTime ...
    75  	AlertsSortByFieldsLastModifiedDateTime AlertsSortByFields = "lastModifiedDateTime"
    76  	// AlertsSortByFieldsMonitorCondition ...
    77  	AlertsSortByFieldsMonitorCondition AlertsSortByFields = "monitorCondition"
    78  	// AlertsSortByFieldsName ...
    79  	AlertsSortByFieldsName AlertsSortByFields = "name"
    80  	// AlertsSortByFieldsSeverity ...
    81  	AlertsSortByFieldsSeverity AlertsSortByFields = "severity"
    82  	// AlertsSortByFieldsStartDateTime ...
    83  	AlertsSortByFieldsStartDateTime AlertsSortByFields = "startDateTime"
    84  	// AlertsSortByFieldsTargetResource ...
    85  	AlertsSortByFieldsTargetResource AlertsSortByFields = "targetResource"
    86  	// AlertsSortByFieldsTargetResourceGroup ...
    87  	AlertsSortByFieldsTargetResourceGroup AlertsSortByFields = "targetResourceGroup"
    88  	// AlertsSortByFieldsTargetResourceName ...
    89  	AlertsSortByFieldsTargetResourceName AlertsSortByFields = "targetResourceName"
    90  	// AlertsSortByFieldsTargetResourceType ...
    91  	AlertsSortByFieldsTargetResourceType AlertsSortByFields = "targetResourceType"
    92  )
    93  
    94  // PossibleAlertsSortByFieldsValues returns an array of possible values for the AlertsSortByFields const type.
    95  func PossibleAlertsSortByFieldsValues() []AlertsSortByFields {
    96  	return []AlertsSortByFields{AlertsSortByFieldsAlertState, AlertsSortByFieldsLastModifiedDateTime, AlertsSortByFieldsMonitorCondition, AlertsSortByFieldsName, AlertsSortByFieldsSeverity, AlertsSortByFieldsStartDateTime, AlertsSortByFieldsTargetResource, AlertsSortByFieldsTargetResourceGroup, AlertsSortByFieldsTargetResourceName, AlertsSortByFieldsTargetResourceType}
    97  }
    98  
    99  // AlertsSummaryGroupByFields enumerates the values for alerts summary group by fields.
   100  type AlertsSummaryGroupByFields string
   101  
   102  const (
   103  	// AlertsSummaryGroupByFieldsAlertRule ...
   104  	AlertsSummaryGroupByFieldsAlertRule AlertsSummaryGroupByFields = "alertRule"
   105  	// AlertsSummaryGroupByFieldsAlertState ...
   106  	AlertsSummaryGroupByFieldsAlertState AlertsSummaryGroupByFields = "alertState"
   107  	// AlertsSummaryGroupByFieldsMonitorCondition ...
   108  	AlertsSummaryGroupByFieldsMonitorCondition AlertsSummaryGroupByFields = "monitorCondition"
   109  	// AlertsSummaryGroupByFieldsMonitorService ...
   110  	AlertsSummaryGroupByFieldsMonitorService AlertsSummaryGroupByFields = "monitorService"
   111  	// AlertsSummaryGroupByFieldsSeverity ...
   112  	AlertsSummaryGroupByFieldsSeverity AlertsSummaryGroupByFields = "severity"
   113  	// AlertsSummaryGroupByFieldsSignalType ...
   114  	AlertsSummaryGroupByFieldsSignalType AlertsSummaryGroupByFields = "signalType"
   115  )
   116  
   117  // PossibleAlertsSummaryGroupByFieldsValues returns an array of possible values for the AlertsSummaryGroupByFields const type.
   118  func PossibleAlertsSummaryGroupByFieldsValues() []AlertsSummaryGroupByFields {
   119  	return []AlertsSummaryGroupByFields{AlertsSummaryGroupByFieldsAlertRule, AlertsSummaryGroupByFieldsAlertState, AlertsSummaryGroupByFieldsMonitorCondition, AlertsSummaryGroupByFieldsMonitorService, AlertsSummaryGroupByFieldsSeverity, AlertsSummaryGroupByFieldsSignalType}
   120  }
   121  
   122  // AlertState enumerates the values for alert state.
   123  type AlertState string
   124  
   125  const (
   126  	// AlertStateAcknowledged ...
   127  	AlertStateAcknowledged AlertState = "Acknowledged"
   128  	// AlertStateClosed ...
   129  	AlertStateClosed AlertState = "Closed"
   130  	// AlertStateNew ...
   131  	AlertStateNew AlertState = "New"
   132  )
   133  
   134  // PossibleAlertStateValues returns an array of possible values for the AlertState const type.
   135  func PossibleAlertStateValues() []AlertState {
   136  	return []AlertState{AlertStateAcknowledged, AlertStateClosed, AlertStateNew}
   137  }
   138  
   139  // MetadataIdentifier enumerates the values for metadata identifier.
   140  type MetadataIdentifier string
   141  
   142  const (
   143  	// MetadataIdentifierAlertsMetaDataProperties ...
   144  	MetadataIdentifierAlertsMetaDataProperties MetadataIdentifier = "alertsMetaDataProperties"
   145  	// MetadataIdentifierMonitorServiceList ...
   146  	MetadataIdentifierMonitorServiceList MetadataIdentifier = "MonitorServiceList"
   147  )
   148  
   149  // PossibleMetadataIdentifierValues returns an array of possible values for the MetadataIdentifier const type.
   150  func PossibleMetadataIdentifierValues() []MetadataIdentifier {
   151  	return []MetadataIdentifier{MetadataIdentifierAlertsMetaDataProperties, MetadataIdentifierMonitorServiceList}
   152  }
   153  
   154  // MonitorCondition enumerates the values for monitor condition.
   155  type MonitorCondition string
   156  
   157  const (
   158  	// Fired ...
   159  	Fired MonitorCondition = "Fired"
   160  	// Resolved ...
   161  	Resolved MonitorCondition = "Resolved"
   162  )
   163  
   164  // PossibleMonitorConditionValues returns an array of possible values for the MonitorCondition const type.
   165  func PossibleMonitorConditionValues() []MonitorCondition {
   166  	return []MonitorCondition{Fired, Resolved}
   167  }
   168  
   169  // MonitorService enumerates the values for monitor service.
   170  type MonitorService string
   171  
   172  const (
   173  	// ActivityLogAdministrative ...
   174  	ActivityLogAdministrative MonitorService = "ActivityLog Administrative"
   175  	// ActivityLogAutoscale ...
   176  	ActivityLogAutoscale MonitorService = "ActivityLog Autoscale"
   177  	// ActivityLogPolicy ...
   178  	ActivityLogPolicy MonitorService = "ActivityLog Policy"
   179  	// ActivityLogRecommendation ...
   180  	ActivityLogRecommendation MonitorService = "ActivityLog Recommendation"
   181  	// ActivityLogSecurity ...
   182  	ActivityLogSecurity MonitorService = "ActivityLog Security"
   183  	// ApplicationInsights ...
   184  	ApplicationInsights MonitorService = "Application Insights"
   185  	// LogAnalytics ...
   186  	LogAnalytics MonitorService = "Log Analytics"
   187  	// Nagios ...
   188  	Nagios MonitorService = "Nagios"
   189  	// Platform ...
   190  	Platform MonitorService = "Platform"
   191  	// SCOM ...
   192  	SCOM MonitorService = "SCOM"
   193  	// ServiceHealth ...
   194  	ServiceHealth MonitorService = "ServiceHealth"
   195  	// SmartDetector ...
   196  	SmartDetector MonitorService = "SmartDetector"
   197  	// VMInsights ...
   198  	VMInsights MonitorService = "VM Insights"
   199  	// Zabbix ...
   200  	Zabbix MonitorService = "Zabbix"
   201  )
   202  
   203  // PossibleMonitorServiceValues returns an array of possible values for the MonitorService const type.
   204  func PossibleMonitorServiceValues() []MonitorService {
   205  	return []MonitorService{ActivityLogAdministrative, ActivityLogAutoscale, ActivityLogPolicy, ActivityLogRecommendation, ActivityLogSecurity, ApplicationInsights, LogAnalytics, Nagios, Platform, SCOM, ServiceHealth, SmartDetector, VMInsights, Zabbix}
   206  }
   207  
   208  // Operator enumerates the values for operator.
   209  type Operator string
   210  
   211  const (
   212  	// Contains ...
   213  	Contains Operator = "Contains"
   214  	// DoesNotContain ...
   215  	DoesNotContain Operator = "DoesNotContain"
   216  	// Equals ...
   217  	Equals Operator = "Equals"
   218  	// NotEquals ...
   219  	NotEquals Operator = "NotEquals"
   220  )
   221  
   222  // PossibleOperatorValues returns an array of possible values for the Operator const type.
   223  func PossibleOperatorValues() []Operator {
   224  	return []Operator{Contains, DoesNotContain, Equals, NotEquals}
   225  }
   226  
   227  // ScopeType enumerates the values for scope type.
   228  type ScopeType string
   229  
   230  const (
   231  	// ScopeTypeResource ...
   232  	ScopeTypeResource ScopeType = "Resource"
   233  	// ScopeTypeResourceGroup ...
   234  	ScopeTypeResourceGroup ScopeType = "ResourceGroup"
   235  	// ScopeTypeSubscription ...
   236  	ScopeTypeSubscription ScopeType = "Subscription"
   237  )
   238  
   239  // PossibleScopeTypeValues returns an array of possible values for the ScopeType const type.
   240  func PossibleScopeTypeValues() []ScopeType {
   241  	return []ScopeType{ScopeTypeResource, ScopeTypeResourceGroup, ScopeTypeSubscription}
   242  }
   243  
   244  // Severity enumerates the values for severity.
   245  type Severity string
   246  
   247  const (
   248  	// Sev0 ...
   249  	Sev0 Severity = "Sev0"
   250  	// Sev1 ...
   251  	Sev1 Severity = "Sev1"
   252  	// Sev2 ...
   253  	Sev2 Severity = "Sev2"
   254  	// Sev3 ...
   255  	Sev3 Severity = "Sev3"
   256  	// Sev4 ...
   257  	Sev4 Severity = "Sev4"
   258  )
   259  
   260  // PossibleSeverityValues returns an array of possible values for the Severity const type.
   261  func PossibleSeverityValues() []Severity {
   262  	return []Severity{Sev0, Sev1, Sev2, Sev3, Sev4}
   263  }
   264  
   265  // SignalType enumerates the values for signal type.
   266  type SignalType string
   267  
   268  const (
   269  	// Log ...
   270  	Log SignalType = "Log"
   271  	// Metric ...
   272  	Metric SignalType = "Metric"
   273  	// Unknown ...
   274  	Unknown SignalType = "Unknown"
   275  )
   276  
   277  // PossibleSignalTypeValues returns an array of possible values for the SignalType const type.
   278  func PossibleSignalTypeValues() []SignalType {
   279  	return []SignalType{Log, Metric, Unknown}
   280  }
   281  
   282  // SmartGroupModificationEvent enumerates the values for smart group modification event.
   283  type SmartGroupModificationEvent string
   284  
   285  const (
   286  	// SmartGroupModificationEventAlertAdded ...
   287  	SmartGroupModificationEventAlertAdded SmartGroupModificationEvent = "AlertAdded"
   288  	// SmartGroupModificationEventAlertRemoved ...
   289  	SmartGroupModificationEventAlertRemoved SmartGroupModificationEvent = "AlertRemoved"
   290  	// SmartGroupModificationEventSmartGroupCreated ...
   291  	SmartGroupModificationEventSmartGroupCreated SmartGroupModificationEvent = "SmartGroupCreated"
   292  	// SmartGroupModificationEventStateChange ...
   293  	SmartGroupModificationEventStateChange SmartGroupModificationEvent = "StateChange"
   294  )
   295  
   296  // PossibleSmartGroupModificationEventValues returns an array of possible values for the SmartGroupModificationEvent const type.
   297  func PossibleSmartGroupModificationEventValues() []SmartGroupModificationEvent {
   298  	return []SmartGroupModificationEvent{SmartGroupModificationEventAlertAdded, SmartGroupModificationEventAlertRemoved, SmartGroupModificationEventSmartGroupCreated, SmartGroupModificationEventStateChange}
   299  }
   300  
   301  // SmartGroupsSortByFields enumerates the values for smart groups sort by fields.
   302  type SmartGroupsSortByFields string
   303  
   304  const (
   305  	// SmartGroupsSortByFieldsAlertsCount ...
   306  	SmartGroupsSortByFieldsAlertsCount SmartGroupsSortByFields = "alertsCount"
   307  	// SmartGroupsSortByFieldsLastModifiedDateTime ...
   308  	SmartGroupsSortByFieldsLastModifiedDateTime SmartGroupsSortByFields = "lastModifiedDateTime"
   309  	// SmartGroupsSortByFieldsSeverity ...
   310  	SmartGroupsSortByFieldsSeverity SmartGroupsSortByFields = "severity"
   311  	// SmartGroupsSortByFieldsStartDateTime ...
   312  	SmartGroupsSortByFieldsStartDateTime SmartGroupsSortByFields = "startDateTime"
   313  	// SmartGroupsSortByFieldsState ...
   314  	SmartGroupsSortByFieldsState SmartGroupsSortByFields = "state"
   315  )
   316  
   317  // PossibleSmartGroupsSortByFieldsValues returns an array of possible values for the SmartGroupsSortByFields const type.
   318  func PossibleSmartGroupsSortByFieldsValues() []SmartGroupsSortByFields {
   319  	return []SmartGroupsSortByFields{SmartGroupsSortByFieldsAlertsCount, SmartGroupsSortByFieldsLastModifiedDateTime, SmartGroupsSortByFieldsSeverity, SmartGroupsSortByFieldsStartDateTime, SmartGroupsSortByFieldsState}
   320  }
   321  
   322  // State enumerates the values for state.
   323  type State string
   324  
   325  const (
   326  	// StateAcknowledged ...
   327  	StateAcknowledged State = "Acknowledged"
   328  	// StateClosed ...
   329  	StateClosed State = "Closed"
   330  	// StateNew ...
   331  	StateNew State = "New"
   332  )
   333  
   334  // PossibleStateValues returns an array of possible values for the State const type.
   335  func PossibleStateValues() []State {
   336  	return []State{StateAcknowledged, StateClosed, StateNew}
   337  }
   338  
   339  // SuppressionType enumerates the values for suppression type.
   340  type SuppressionType string
   341  
   342  const (
   343  	// Always ...
   344  	Always SuppressionType = "Always"
   345  	// Daily ...
   346  	Daily SuppressionType = "Daily"
   347  	// Monthly ...
   348  	Monthly SuppressionType = "Monthly"
   349  	// Once ...
   350  	Once SuppressionType = "Once"
   351  	// Weekly ...
   352  	Weekly SuppressionType = "Weekly"
   353  )
   354  
   355  // PossibleSuppressionTypeValues returns an array of possible values for the SuppressionType const type.
   356  func PossibleSuppressionTypeValues() []SuppressionType {
   357  	return []SuppressionType{Always, Daily, Monthly, Once, Weekly}
   358  }
   359  
   360  // TimeRange enumerates the values for time range.
   361  type TimeRange string
   362  
   363  const (
   364  	// Oned ...
   365  	Oned TimeRange = "1d"
   366  	// Oneh ...
   367  	Oneh TimeRange = "1h"
   368  	// Sevend ...
   369  	Sevend TimeRange = "7d"
   370  	// ThreeZerod ...
   371  	ThreeZerod TimeRange = "30d"
   372  )
   373  
   374  // PossibleTimeRangeValues returns an array of possible values for the TimeRange const type.
   375  func PossibleTimeRangeValues() []TimeRange {
   376  	return []TimeRange{Oned, Oneh, Sevend, ThreeZerod}
   377  }
   378  
   379  // Type enumerates the values for type.
   380  type Type string
   381  
   382  const (
   383  	// TypeActionGroup ...
   384  	TypeActionGroup Type = "ActionGroup"
   385  	// TypeActionRuleProperties ...
   386  	TypeActionRuleProperties Type = "ActionRuleProperties"
   387  	// TypeDiagnostics ...
   388  	TypeDiagnostics Type = "Diagnostics"
   389  	// TypeSuppression ...
   390  	TypeSuppression Type = "Suppression"
   391  )
   392  
   393  // PossibleTypeValues returns an array of possible values for the Type const type.
   394  func PossibleTypeValues() []Type {
   395  	return []Type{TypeActionGroup, TypeActionRuleProperties, TypeDiagnostics, TypeSuppression}
   396  }
   397  

View as plain text