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