...

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

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

     1  package insights
     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  // AggregationType enumerates the values for aggregation type.
    10  type AggregationType string
    11  
    12  const (
    13  	// Average ...
    14  	Average AggregationType = "Average"
    15  	// Count ...
    16  	Count AggregationType = "Count"
    17  	// Maximum ...
    18  	Maximum AggregationType = "Maximum"
    19  	// Minimum ...
    20  	Minimum AggregationType = "Minimum"
    21  	// None ...
    22  	None AggregationType = "None"
    23  	// Total ...
    24  	Total AggregationType = "Total"
    25  )
    26  
    27  // PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.
    28  func PossibleAggregationTypeValues() []AggregationType {
    29  	return []AggregationType{Average, Count, Maximum, Minimum, None, Total}
    30  }
    31  
    32  // AlertSeverity enumerates the values for alert severity.
    33  type AlertSeverity string
    34  
    35  const (
    36  	// Four ...
    37  	Four AlertSeverity = "4"
    38  	// One ...
    39  	One AlertSeverity = "1"
    40  	// Three ...
    41  	Three AlertSeverity = "3"
    42  	// Two ...
    43  	Two AlertSeverity = "2"
    44  	// Zero ...
    45  	Zero AlertSeverity = "0"
    46  )
    47  
    48  // PossibleAlertSeverityValues returns an array of possible values for the AlertSeverity const type.
    49  func PossibleAlertSeverityValues() []AlertSeverity {
    50  	return []AlertSeverity{Four, One, Three, Two, Zero}
    51  }
    52  
    53  // BaselineSensitivity enumerates the values for baseline sensitivity.
    54  type BaselineSensitivity string
    55  
    56  const (
    57  	// High ...
    58  	High BaselineSensitivity = "High"
    59  	// Low ...
    60  	Low BaselineSensitivity = "Low"
    61  	// Medium ...
    62  	Medium BaselineSensitivity = "Medium"
    63  )
    64  
    65  // PossibleBaselineSensitivityValues returns an array of possible values for the BaselineSensitivity const type.
    66  func PossibleBaselineSensitivityValues() []BaselineSensitivity {
    67  	return []BaselineSensitivity{High, Low, Medium}
    68  }
    69  
    70  // CategoryType enumerates the values for category type.
    71  type CategoryType string
    72  
    73  const (
    74  	// Logs ...
    75  	Logs CategoryType = "Logs"
    76  	// Metrics ...
    77  	Metrics CategoryType = "Metrics"
    78  )
    79  
    80  // PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
    81  func PossibleCategoryTypeValues() []CategoryType {
    82  	return []CategoryType{Logs, Metrics}
    83  }
    84  
    85  // ComparisonOperationType enumerates the values for comparison operation type.
    86  type ComparisonOperationType string
    87  
    88  const (
    89  	// Equals ...
    90  	Equals ComparisonOperationType = "Equals"
    91  	// GreaterThan ...
    92  	GreaterThan ComparisonOperationType = "GreaterThan"
    93  	// GreaterThanOrEqual ...
    94  	GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual"
    95  	// LessThan ...
    96  	LessThan ComparisonOperationType = "LessThan"
    97  	// LessThanOrEqual ...
    98  	LessThanOrEqual ComparisonOperationType = "LessThanOrEqual"
    99  	// NotEquals ...
   100  	NotEquals ComparisonOperationType = "NotEquals"
   101  )
   102  
   103  // PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
   104  func PossibleComparisonOperationTypeValues() []ComparisonOperationType {
   105  	return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals}
   106  }
   107  
   108  // ConditionalOperator enumerates the values for conditional operator.
   109  type ConditionalOperator string
   110  
   111  const (
   112  	// ConditionalOperatorEqual ...
   113  	ConditionalOperatorEqual ConditionalOperator = "Equal"
   114  	// ConditionalOperatorGreaterThan ...
   115  	ConditionalOperatorGreaterThan ConditionalOperator = "GreaterThan"
   116  	// ConditionalOperatorLessThan ...
   117  	ConditionalOperatorLessThan ConditionalOperator = "LessThan"
   118  )
   119  
   120  // PossibleConditionalOperatorValues returns an array of possible values for the ConditionalOperator const type.
   121  func PossibleConditionalOperatorValues() []ConditionalOperator {
   122  	return []ConditionalOperator{ConditionalOperatorEqual, ConditionalOperatorGreaterThan, ConditionalOperatorLessThan}
   123  }
   124  
   125  // ConditionOperator enumerates the values for condition operator.
   126  type ConditionOperator string
   127  
   128  const (
   129  	// ConditionOperatorGreaterThan ...
   130  	ConditionOperatorGreaterThan ConditionOperator = "GreaterThan"
   131  	// ConditionOperatorGreaterThanOrEqual ...
   132  	ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual"
   133  	// ConditionOperatorLessThan ...
   134  	ConditionOperatorLessThan ConditionOperator = "LessThan"
   135  	// ConditionOperatorLessThanOrEqual ...
   136  	ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
   137  )
   138  
   139  // PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.
   140  func PossibleConditionOperatorValues() []ConditionOperator {
   141  	return []ConditionOperator{ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual}
   142  }
   143  
   144  // CriterionType enumerates the values for criterion type.
   145  type CriterionType string
   146  
   147  const (
   148  	// CriterionTypeDynamicThresholdCriterion ...
   149  	CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion"
   150  	// CriterionTypeMultiMetricCriteria ...
   151  	CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria"
   152  	// CriterionTypeStaticThresholdCriterion ...
   153  	CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion"
   154  )
   155  
   156  // PossibleCriterionTypeValues returns an array of possible values for the CriterionType const type.
   157  func PossibleCriterionTypeValues() []CriterionType {
   158  	return []CriterionType{CriterionTypeDynamicThresholdCriterion, CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion}
   159  }
   160  
   161  // DataStatus enumerates the values for data status.
   162  type DataStatus string
   163  
   164  const (
   165  	// NotPresent ...
   166  	NotPresent DataStatus = "notPresent"
   167  	// Present ...
   168  	Present DataStatus = "present"
   169  )
   170  
   171  // PossibleDataStatusValues returns an array of possible values for the DataStatus const type.
   172  func PossibleDataStatusValues() []DataStatus {
   173  	return []DataStatus{NotPresent, Present}
   174  }
   175  
   176  // DynamicThresholdOperator enumerates the values for dynamic threshold operator.
   177  type DynamicThresholdOperator string
   178  
   179  const (
   180  	// DynamicThresholdOperatorGreaterOrLessThan ...
   181  	DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan"
   182  	// DynamicThresholdOperatorGreaterThan ...
   183  	DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan"
   184  	// DynamicThresholdOperatorLessThan ...
   185  	DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan"
   186  )
   187  
   188  // PossibleDynamicThresholdOperatorValues returns an array of possible values for the DynamicThresholdOperator const type.
   189  func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator {
   190  	return []DynamicThresholdOperator{DynamicThresholdOperatorGreaterOrLessThan, DynamicThresholdOperatorGreaterThan, DynamicThresholdOperatorLessThan}
   191  }
   192  
   193  // DynamicThresholdSensitivity enumerates the values for dynamic threshold sensitivity.
   194  type DynamicThresholdSensitivity string
   195  
   196  const (
   197  	// DynamicThresholdSensitivityHigh ...
   198  	DynamicThresholdSensitivityHigh DynamicThresholdSensitivity = "High"
   199  	// DynamicThresholdSensitivityLow ...
   200  	DynamicThresholdSensitivityLow DynamicThresholdSensitivity = "Low"
   201  	// DynamicThresholdSensitivityMedium ...
   202  	DynamicThresholdSensitivityMedium DynamicThresholdSensitivity = "Medium"
   203  )
   204  
   205  // PossibleDynamicThresholdSensitivityValues returns an array of possible values for the DynamicThresholdSensitivity const type.
   206  func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity {
   207  	return []DynamicThresholdSensitivity{DynamicThresholdSensitivityHigh, DynamicThresholdSensitivityLow, DynamicThresholdSensitivityMedium}
   208  }
   209  
   210  // Enabled enumerates the values for enabled.
   211  type Enabled string
   212  
   213  const (
   214  	// False ...
   215  	False Enabled = "false"
   216  	// True ...
   217  	True Enabled = "true"
   218  )
   219  
   220  // PossibleEnabledValues returns an array of possible values for the Enabled const type.
   221  func PossibleEnabledValues() []Enabled {
   222  	return []Enabled{False, True}
   223  }
   224  
   225  // EventLevel enumerates the values for event level.
   226  type EventLevel string
   227  
   228  const (
   229  	// EventLevelCritical ...
   230  	EventLevelCritical EventLevel = "Critical"
   231  	// EventLevelError ...
   232  	EventLevelError EventLevel = "Error"
   233  	// EventLevelInformational ...
   234  	EventLevelInformational EventLevel = "Informational"
   235  	// EventLevelVerbose ...
   236  	EventLevelVerbose EventLevel = "Verbose"
   237  	// EventLevelWarning ...
   238  	EventLevelWarning EventLevel = "Warning"
   239  )
   240  
   241  // PossibleEventLevelValues returns an array of possible values for the EventLevel const type.
   242  func PossibleEventLevelValues() []EventLevel {
   243  	return []EventLevel{EventLevelCritical, EventLevelError, EventLevelInformational, EventLevelVerbose, EventLevelWarning}
   244  }
   245  
   246  // MetricStatisticType enumerates the values for metric statistic type.
   247  type MetricStatisticType string
   248  
   249  const (
   250  	// MetricStatisticTypeAverage ...
   251  	MetricStatisticTypeAverage MetricStatisticType = "Average"
   252  	// MetricStatisticTypeMax ...
   253  	MetricStatisticTypeMax MetricStatisticType = "Max"
   254  	// MetricStatisticTypeMin ...
   255  	MetricStatisticTypeMin MetricStatisticType = "Min"
   256  	// MetricStatisticTypeSum ...
   257  	MetricStatisticTypeSum MetricStatisticType = "Sum"
   258  )
   259  
   260  // PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
   261  func PossibleMetricStatisticTypeValues() []MetricStatisticType {
   262  	return []MetricStatisticType{MetricStatisticTypeAverage, MetricStatisticTypeMax, MetricStatisticTypeMin, MetricStatisticTypeSum}
   263  }
   264  
   265  // MetricTriggerType enumerates the values for metric trigger type.
   266  type MetricTriggerType string
   267  
   268  const (
   269  	// MetricTriggerTypeConsecutive ...
   270  	MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive"
   271  	// MetricTriggerTypeTotal ...
   272  	MetricTriggerTypeTotal MetricTriggerType = "Total"
   273  )
   274  
   275  // PossibleMetricTriggerTypeValues returns an array of possible values for the MetricTriggerType const type.
   276  func PossibleMetricTriggerTypeValues() []MetricTriggerType {
   277  	return []MetricTriggerType{MetricTriggerTypeConsecutive, MetricTriggerTypeTotal}
   278  }
   279  
   280  // OdataType enumerates the values for odata type.
   281  type OdataType string
   282  
   283  const (
   284  	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource ...
   285  	OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
   286  	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource ...
   287  	OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
   288  	// OdataTypeRuleDataSource ...
   289  	OdataTypeRuleDataSource OdataType = "RuleDataSource"
   290  )
   291  
   292  // PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
   293  func PossibleOdataTypeValues() []OdataType {
   294  	return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource}
   295  }
   296  
   297  // OdataTypeBasicAction enumerates the values for odata type basic action.
   298  type OdataTypeBasicAction string
   299  
   300  const (
   301  	// OdataTypeAction ...
   302  	OdataTypeAction OdataTypeBasicAction = "Action"
   303  	// OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction ...
   304  	OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction"
   305  	// OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction ...
   306  	OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction"
   307  )
   308  
   309  // PossibleOdataTypeBasicActionValues returns an array of possible values for the OdataTypeBasicAction const type.
   310  func PossibleOdataTypeBasicActionValues() []OdataTypeBasicAction {
   311  	return []OdataTypeBasicAction{OdataTypeAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction}
   312  }
   313  
   314  // OdataTypeBasicMetricAlertCriteria enumerates the values for odata type basic metric alert criteria.
   315  type OdataTypeBasicMetricAlertCriteria string
   316  
   317  const (
   318  	// OdataTypeMetricAlertCriteria ...
   319  	OdataTypeMetricAlertCriteria OdataTypeBasicMetricAlertCriteria = "MetricAlertCriteria"
   320  	// OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria ...
   321  	OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
   322  	// OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria ...
   323  	OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
   324  	// OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria ...
   325  	OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
   326  )
   327  
   328  // PossibleOdataTypeBasicMetricAlertCriteriaValues returns an array of possible values for the OdataTypeBasicMetricAlertCriteria const type.
   329  func PossibleOdataTypeBasicMetricAlertCriteriaValues() []OdataTypeBasicMetricAlertCriteria {
   330  	return []OdataTypeBasicMetricAlertCriteria{OdataTypeMetricAlertCriteria, OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria}
   331  }
   332  
   333  // OdataTypeBasicRuleAction enumerates the values for odata type basic rule action.
   334  type OdataTypeBasicRuleAction string
   335  
   336  const (
   337  	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction ...
   338  	OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
   339  	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction ...
   340  	OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
   341  	// OdataTypeRuleAction ...
   342  	OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction"
   343  )
   344  
   345  // PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type.
   346  func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction {
   347  	return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction}
   348  }
   349  
   350  // OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition.
   351  type OdataTypeBasicRuleCondition string
   352  
   353  const (
   354  	// OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition ...
   355  	OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
   356  	// OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition ...
   357  	OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
   358  	// OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition ...
   359  	OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
   360  	// OdataTypeRuleCondition ...
   361  	OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition"
   362  )
   363  
   364  // PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type.
   365  func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition {
   366  	return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition}
   367  }
   368  
   369  // OnboardingStatus enumerates the values for onboarding status.
   370  type OnboardingStatus string
   371  
   372  const (
   373  	// NotOnboarded ...
   374  	NotOnboarded OnboardingStatus = "notOnboarded"
   375  	// Onboarded ...
   376  	Onboarded OnboardingStatus = "onboarded"
   377  	// Unknown ...
   378  	Unknown OnboardingStatus = "unknown"
   379  )
   380  
   381  // PossibleOnboardingStatusValues returns an array of possible values for the OnboardingStatus const type.
   382  func PossibleOnboardingStatusValues() []OnboardingStatus {
   383  	return []OnboardingStatus{NotOnboarded, Onboarded, Unknown}
   384  }
   385  
   386  // Operator enumerates the values for operator.
   387  type Operator string
   388  
   389  const (
   390  	// OperatorEquals ...
   391  	OperatorEquals Operator = "Equals"
   392  	// OperatorGreaterThan ...
   393  	OperatorGreaterThan Operator = "GreaterThan"
   394  	// OperatorGreaterThanOrEqual ...
   395  	OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual"
   396  	// OperatorLessThan ...
   397  	OperatorLessThan Operator = "LessThan"
   398  	// OperatorLessThanOrEqual ...
   399  	OperatorLessThanOrEqual Operator = "LessThanOrEqual"
   400  	// OperatorNotEquals ...
   401  	OperatorNotEquals Operator = "NotEquals"
   402  )
   403  
   404  // PossibleOperatorValues returns an array of possible values for the Operator const type.
   405  func PossibleOperatorValues() []Operator {
   406  	return []Operator{OperatorEquals, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorLessThan, OperatorLessThanOrEqual, OperatorNotEquals}
   407  }
   408  
   409  // ProvisioningState enumerates the values for provisioning state.
   410  type ProvisioningState string
   411  
   412  const (
   413  	// Canceled ...
   414  	Canceled ProvisioningState = "Canceled"
   415  	// Deploying ...
   416  	Deploying ProvisioningState = "Deploying"
   417  	// Failed ...
   418  	Failed ProvisioningState = "Failed"
   419  	// Succeeded ...
   420  	Succeeded ProvisioningState = "Succeeded"
   421  )
   422  
   423  // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
   424  func PossibleProvisioningStateValues() []ProvisioningState {
   425  	return []ProvisioningState{Canceled, Deploying, Failed, Succeeded}
   426  }
   427  
   428  // QueryType enumerates the values for query type.
   429  type QueryType string
   430  
   431  const (
   432  	// ResultCount ...
   433  	ResultCount QueryType = "ResultCount"
   434  )
   435  
   436  // PossibleQueryTypeValues returns an array of possible values for the QueryType const type.
   437  func PossibleQueryTypeValues() []QueryType {
   438  	return []QueryType{ResultCount}
   439  }
   440  
   441  // ReceiverStatus enumerates the values for receiver status.
   442  type ReceiverStatus string
   443  
   444  const (
   445  	// ReceiverStatusDisabled ...
   446  	ReceiverStatusDisabled ReceiverStatus = "Disabled"
   447  	// ReceiverStatusEnabled ...
   448  	ReceiverStatusEnabled ReceiverStatus = "Enabled"
   449  	// ReceiverStatusNotSpecified ...
   450  	ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified"
   451  )
   452  
   453  // PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
   454  func PossibleReceiverStatusValues() []ReceiverStatus {
   455  	return []ReceiverStatus{ReceiverStatusDisabled, ReceiverStatusEnabled, ReceiverStatusNotSpecified}
   456  }
   457  
   458  // RecurrenceFrequency enumerates the values for recurrence frequency.
   459  type RecurrenceFrequency string
   460  
   461  const (
   462  	// RecurrenceFrequencyDay ...
   463  	RecurrenceFrequencyDay RecurrenceFrequency = "Day"
   464  	// RecurrenceFrequencyHour ...
   465  	RecurrenceFrequencyHour RecurrenceFrequency = "Hour"
   466  	// RecurrenceFrequencyMinute ...
   467  	RecurrenceFrequencyMinute RecurrenceFrequency = "Minute"
   468  	// RecurrenceFrequencyMonth ...
   469  	RecurrenceFrequencyMonth RecurrenceFrequency = "Month"
   470  	// RecurrenceFrequencyNone ...
   471  	RecurrenceFrequencyNone RecurrenceFrequency = "None"
   472  	// RecurrenceFrequencySecond ...
   473  	RecurrenceFrequencySecond RecurrenceFrequency = "Second"
   474  	// RecurrenceFrequencyWeek ...
   475  	RecurrenceFrequencyWeek RecurrenceFrequency = "Week"
   476  	// RecurrenceFrequencyYear ...
   477  	RecurrenceFrequencyYear RecurrenceFrequency = "Year"
   478  )
   479  
   480  // PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
   481  func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
   482  	return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear}
   483  }
   484  
   485  // ResultType enumerates the values for result type.
   486  type ResultType string
   487  
   488  const (
   489  	// Data ...
   490  	Data ResultType = "Data"
   491  	// Metadata ...
   492  	Metadata ResultType = "Metadata"
   493  )
   494  
   495  // PossibleResultTypeValues returns an array of possible values for the ResultType const type.
   496  func PossibleResultTypeValues() []ResultType {
   497  	return []ResultType{Data, Metadata}
   498  }
   499  
   500  // ScaleDirection enumerates the values for scale direction.
   501  type ScaleDirection string
   502  
   503  const (
   504  	// ScaleDirectionDecrease ...
   505  	ScaleDirectionDecrease ScaleDirection = "Decrease"
   506  	// ScaleDirectionIncrease ...
   507  	ScaleDirectionIncrease ScaleDirection = "Increase"
   508  	// ScaleDirectionNone ...
   509  	ScaleDirectionNone ScaleDirection = "None"
   510  )
   511  
   512  // PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
   513  func PossibleScaleDirectionValues() []ScaleDirection {
   514  	return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone}
   515  }
   516  
   517  // ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type.
   518  type ScaleRuleMetricDimensionOperationType string
   519  
   520  const (
   521  	// ScaleRuleMetricDimensionOperationTypeEquals ...
   522  	ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals"
   523  	// ScaleRuleMetricDimensionOperationTypeNotEquals ...
   524  	ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals"
   525  )
   526  
   527  // PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type.
   528  func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType {
   529  	return []ScaleRuleMetricDimensionOperationType{ScaleRuleMetricDimensionOperationTypeEquals, ScaleRuleMetricDimensionOperationTypeNotEquals}
   530  }
   531  
   532  // ScaleType enumerates the values for scale type.
   533  type ScaleType string
   534  
   535  const (
   536  	// ChangeCount ...
   537  	ChangeCount ScaleType = "ChangeCount"
   538  	// ExactCount ...
   539  	ExactCount ScaleType = "ExactCount"
   540  	// PercentChangeCount ...
   541  	PercentChangeCount ScaleType = "PercentChangeCount"
   542  )
   543  
   544  // PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
   545  func PossibleScaleTypeValues() []ScaleType {
   546  	return []ScaleType{ChangeCount, ExactCount, PercentChangeCount}
   547  }
   548  
   549  // Sensitivity enumerates the values for sensitivity.
   550  type Sensitivity string
   551  
   552  const (
   553  	// SensitivityHigh ...
   554  	SensitivityHigh Sensitivity = "High"
   555  	// SensitivityLow ...
   556  	SensitivityLow Sensitivity = "Low"
   557  	// SensitivityMedium ...
   558  	SensitivityMedium Sensitivity = "Medium"
   559  )
   560  
   561  // PossibleSensitivityValues returns an array of possible values for the Sensitivity const type.
   562  func PossibleSensitivityValues() []Sensitivity {
   563  	return []Sensitivity{SensitivityHigh, SensitivityLow, SensitivityMedium}
   564  }
   565  
   566  // TimeAggregationOperator enumerates the values for time aggregation operator.
   567  type TimeAggregationOperator string
   568  
   569  const (
   570  	// TimeAggregationOperatorAverage ...
   571  	TimeAggregationOperatorAverage TimeAggregationOperator = "Average"
   572  	// TimeAggregationOperatorLast ...
   573  	TimeAggregationOperatorLast TimeAggregationOperator = "Last"
   574  	// TimeAggregationOperatorMaximum ...
   575  	TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum"
   576  	// TimeAggregationOperatorMinimum ...
   577  	TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum"
   578  	// TimeAggregationOperatorTotal ...
   579  	TimeAggregationOperatorTotal TimeAggregationOperator = "Total"
   580  )
   581  
   582  // PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type.
   583  func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator {
   584  	return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal}
   585  }
   586  
   587  // TimeAggregationType enumerates the values for time aggregation type.
   588  type TimeAggregationType string
   589  
   590  const (
   591  	// TimeAggregationTypeAverage ...
   592  	TimeAggregationTypeAverage TimeAggregationType = "Average"
   593  	// TimeAggregationTypeCount ...
   594  	TimeAggregationTypeCount TimeAggregationType = "Count"
   595  	// TimeAggregationTypeLast ...
   596  	TimeAggregationTypeLast TimeAggregationType = "Last"
   597  	// TimeAggregationTypeMaximum ...
   598  	TimeAggregationTypeMaximum TimeAggregationType = "Maximum"
   599  	// TimeAggregationTypeMinimum ...
   600  	TimeAggregationTypeMinimum TimeAggregationType = "Minimum"
   601  	// TimeAggregationTypeTotal ...
   602  	TimeAggregationTypeTotal TimeAggregationType = "Total"
   603  )
   604  
   605  // PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
   606  func PossibleTimeAggregationTypeValues() []TimeAggregationType {
   607  	return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal}
   608  }
   609  
   610  // Unit enumerates the values for unit.
   611  type Unit string
   612  
   613  const (
   614  	// UnitBitsPerSecond ...
   615  	UnitBitsPerSecond Unit = "BitsPerSecond"
   616  	// UnitBytes ...
   617  	UnitBytes Unit = "Bytes"
   618  	// UnitByteSeconds ...
   619  	UnitByteSeconds Unit = "ByteSeconds"
   620  	// UnitBytesPerSecond ...
   621  	UnitBytesPerSecond Unit = "BytesPerSecond"
   622  	// UnitCores ...
   623  	UnitCores Unit = "Cores"
   624  	// UnitCount ...
   625  	UnitCount Unit = "Count"
   626  	// UnitCountPerSecond ...
   627  	UnitCountPerSecond Unit = "CountPerSecond"
   628  	// UnitMilliCores ...
   629  	UnitMilliCores Unit = "MilliCores"
   630  	// UnitMilliSeconds ...
   631  	UnitMilliSeconds Unit = "MilliSeconds"
   632  	// UnitNanoCores ...
   633  	UnitNanoCores Unit = "NanoCores"
   634  	// UnitPercent ...
   635  	UnitPercent Unit = "Percent"
   636  	// UnitSeconds ...
   637  	UnitSeconds Unit = "Seconds"
   638  	// UnitUnspecified ...
   639  	UnitUnspecified Unit = "Unspecified"
   640  )
   641  
   642  // PossibleUnitValues returns an array of possible values for the Unit const type.
   643  func PossibleUnitValues() []Unit {
   644  	return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified}
   645  }
   646  

View as plain text