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// DynamicThresholdOperator enumerates the values for dynamic threshold operator. 145type DynamicThresholdOperator string 146 147const ( 148 // DynamicThresholdOperatorGreaterOrLessThan ... 149 DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan" 150 // DynamicThresholdOperatorGreaterThan ... 151 DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan" 152 // DynamicThresholdOperatorLessThan ... 153 DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan" 154) 155 156// PossibleDynamicThresholdOperatorValues returns an array of possible values for the DynamicThresholdOperator const type. 157func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator { 158 return []DynamicThresholdOperator{DynamicThresholdOperatorGreaterOrLessThan, DynamicThresholdOperatorGreaterThan, DynamicThresholdOperatorLessThan} 159} 160 161// DynamicThresholdSensitivity enumerates the values for dynamic threshold sensitivity. 162type DynamicThresholdSensitivity string 163 164const ( 165 // High ... 166 High DynamicThresholdSensitivity = "High" 167 // Low ... 168 Low DynamicThresholdSensitivity = "Low" 169 // Medium ... 170 Medium DynamicThresholdSensitivity = "Medium" 171) 172 173// PossibleDynamicThresholdSensitivityValues returns an array of possible values for the DynamicThresholdSensitivity const type. 174func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity { 175 return []DynamicThresholdSensitivity{High, Low, Medium} 176} 177 178// Enabled enumerates the values for enabled. 179type Enabled string 180 181const ( 182 // False ... 183 False Enabled = "false" 184 // True ... 185 True Enabled = "true" 186) 187 188// PossibleEnabledValues returns an array of possible values for the Enabled const type. 189func PossibleEnabledValues() []Enabled { 190 return []Enabled{False, True} 191} 192 193// EventLevel enumerates the values for event level. 194type EventLevel string 195 196const ( 197 // Critical ... 198 Critical EventLevel = "Critical" 199 // Error ... 200 Error EventLevel = "Error" 201 // Informational ... 202 Informational EventLevel = "Informational" 203 // Verbose ... 204 Verbose EventLevel = "Verbose" 205 // Warning ... 206 Warning EventLevel = "Warning" 207) 208 209// PossibleEventLevelValues returns an array of possible values for the EventLevel const type. 210func PossibleEventLevelValues() []EventLevel { 211 return []EventLevel{Critical, Error, Informational, Verbose, Warning} 212} 213 214// MetricStatisticType enumerates the values for metric statistic type. 215type MetricStatisticType string 216 217const ( 218 // MetricStatisticTypeAverage ... 219 MetricStatisticTypeAverage MetricStatisticType = "Average" 220 // MetricStatisticTypeMax ... 221 MetricStatisticTypeMax MetricStatisticType = "Max" 222 // MetricStatisticTypeMin ... 223 MetricStatisticTypeMin MetricStatisticType = "Min" 224 // MetricStatisticTypeSum ... 225 MetricStatisticTypeSum MetricStatisticType = "Sum" 226) 227 228// PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type. 229func PossibleMetricStatisticTypeValues() []MetricStatisticType { 230 return []MetricStatisticType{MetricStatisticTypeAverage, MetricStatisticTypeMax, MetricStatisticTypeMin, MetricStatisticTypeSum} 231} 232 233// MetricTriggerType enumerates the values for metric trigger type. 234type MetricTriggerType string 235 236const ( 237 // MetricTriggerTypeConsecutive ... 238 MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive" 239 // MetricTriggerTypeTotal ... 240 MetricTriggerTypeTotal MetricTriggerType = "Total" 241) 242 243// PossibleMetricTriggerTypeValues returns an array of possible values for the MetricTriggerType const type. 244func PossibleMetricTriggerTypeValues() []MetricTriggerType { 245 return []MetricTriggerType{MetricTriggerTypeConsecutive, MetricTriggerTypeTotal} 246} 247 248// OdataType enumerates the values for odata type. 249type OdataType string 250 251const ( 252 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource ... 253 OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource" 254 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource ... 255 OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" 256 // OdataTypeRuleDataSource ... 257 OdataTypeRuleDataSource OdataType = "RuleDataSource" 258) 259 260// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 261func PossibleOdataTypeValues() []OdataType { 262 return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource} 263} 264 265// OdataTypeBasicAction enumerates the values for odata type basic action. 266type OdataTypeBasicAction string 267 268const ( 269 // OdataTypeAction ... 270 OdataTypeAction OdataTypeBasicAction = "Action" 271 // OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction ... 272 OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" 273 // OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction ... 274 OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction OdataTypeBasicAction = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" 275) 276 277// PossibleOdataTypeBasicActionValues returns an array of possible values for the OdataTypeBasicAction const type. 278func PossibleOdataTypeBasicActionValues() []OdataTypeBasicAction { 279 return []OdataTypeBasicAction{OdataTypeAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction, OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction} 280} 281 282// OdataTypeBasicMetricAlertCriteria enumerates the values for odata type basic metric alert criteria. 283type OdataTypeBasicMetricAlertCriteria string 284 285const ( 286 // OdataTypeMetricAlertCriteria ... 287 OdataTypeMetricAlertCriteria OdataTypeBasicMetricAlertCriteria = "MetricAlertCriteria" 288 // OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria ... 289 OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" 290 // OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria ... 291 OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria" 292 // OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria ... 293 OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" 294) 295 296// PossibleOdataTypeBasicMetricAlertCriteriaValues returns an array of possible values for the OdataTypeBasicMetricAlertCriteria const type. 297func PossibleOdataTypeBasicMetricAlertCriteriaValues() []OdataTypeBasicMetricAlertCriteria { 298 return []OdataTypeBasicMetricAlertCriteria{OdataTypeMetricAlertCriteria, OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria} 299} 300 301// OdataTypeBasicRuleAction enumerates the values for odata type basic rule action. 302type OdataTypeBasicRuleAction string 303 304const ( 305 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction ... 306 OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" 307 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction ... 308 OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" 309 // OdataTypeRuleAction ... 310 OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction" 311) 312 313// PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type. 314func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction { 315 return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction} 316} 317 318// OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition. 319type OdataTypeBasicRuleCondition string 320 321const ( 322 // OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition ... 323 OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" 324 // OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition ... 325 OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" 326 // OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition ... 327 OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" 328 // OdataTypeRuleCondition ... 329 OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition" 330) 331 332// PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type. 333func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition { 334 return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition} 335} 336 337// Operator enumerates the values for operator. 338type Operator string 339 340const ( 341 // OperatorEquals ... 342 OperatorEquals Operator = "Equals" 343 // OperatorGreaterThan ... 344 OperatorGreaterThan Operator = "GreaterThan" 345 // OperatorGreaterThanOrEqual ... 346 OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" 347 // OperatorLessThan ... 348 OperatorLessThan Operator = "LessThan" 349 // OperatorLessThanOrEqual ... 350 OperatorLessThanOrEqual Operator = "LessThanOrEqual" 351 // OperatorNotEquals ... 352 OperatorNotEquals Operator = "NotEquals" 353) 354 355// PossibleOperatorValues returns an array of possible values for the Operator const type. 356func PossibleOperatorValues() []Operator { 357 return []Operator{OperatorEquals, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorLessThan, OperatorLessThanOrEqual, OperatorNotEquals} 358} 359 360// ProvisioningState enumerates the values for provisioning state. 361type ProvisioningState string 362 363const ( 364 // Canceled ... 365 Canceled ProvisioningState = "Canceled" 366 // Deploying ... 367 Deploying ProvisioningState = "Deploying" 368 // Failed ... 369 Failed ProvisioningState = "Failed" 370 // Succeeded ... 371 Succeeded ProvisioningState = "Succeeded" 372) 373 374// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 375func PossibleProvisioningStateValues() []ProvisioningState { 376 return []ProvisioningState{Canceled, Deploying, Failed, Succeeded} 377} 378 379// QueryType enumerates the values for query type. 380type QueryType string 381 382const ( 383 // ResultCount ... 384 ResultCount QueryType = "ResultCount" 385) 386 387// PossibleQueryTypeValues returns an array of possible values for the QueryType const type. 388func PossibleQueryTypeValues() []QueryType { 389 return []QueryType{ResultCount} 390} 391 392// ReceiverStatus enumerates the values for receiver status. 393type ReceiverStatus string 394 395const ( 396 // ReceiverStatusDisabled ... 397 ReceiverStatusDisabled ReceiverStatus = "Disabled" 398 // ReceiverStatusEnabled ... 399 ReceiverStatusEnabled ReceiverStatus = "Enabled" 400 // ReceiverStatusNotSpecified ... 401 ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified" 402) 403 404// PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type. 405func PossibleReceiverStatusValues() []ReceiverStatus { 406 return []ReceiverStatus{ReceiverStatusDisabled, ReceiverStatusEnabled, ReceiverStatusNotSpecified} 407} 408 409// RecurrenceFrequency enumerates the values for recurrence frequency. 410type RecurrenceFrequency string 411 412const ( 413 // RecurrenceFrequencyDay ... 414 RecurrenceFrequencyDay RecurrenceFrequency = "Day" 415 // RecurrenceFrequencyHour ... 416 RecurrenceFrequencyHour RecurrenceFrequency = "Hour" 417 // RecurrenceFrequencyMinute ... 418 RecurrenceFrequencyMinute RecurrenceFrequency = "Minute" 419 // RecurrenceFrequencyMonth ... 420 RecurrenceFrequencyMonth RecurrenceFrequency = "Month" 421 // RecurrenceFrequencyNone ... 422 RecurrenceFrequencyNone RecurrenceFrequency = "None" 423 // RecurrenceFrequencySecond ... 424 RecurrenceFrequencySecond RecurrenceFrequency = "Second" 425 // RecurrenceFrequencyWeek ... 426 RecurrenceFrequencyWeek RecurrenceFrequency = "Week" 427 // RecurrenceFrequencyYear ... 428 RecurrenceFrequencyYear RecurrenceFrequency = "Year" 429) 430 431// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type. 432func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { 433 return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear} 434} 435 436// ResultType enumerates the values for result type. 437type ResultType string 438 439const ( 440 // Data ... 441 Data ResultType = "Data" 442 // Metadata ... 443 Metadata ResultType = "Metadata" 444) 445 446// PossibleResultTypeValues returns an array of possible values for the ResultType const type. 447func PossibleResultTypeValues() []ResultType { 448 return []ResultType{Data, Metadata} 449} 450 451// ScaleDirection enumerates the values for scale direction. 452type ScaleDirection string 453 454const ( 455 // ScaleDirectionDecrease ... 456 ScaleDirectionDecrease ScaleDirection = "Decrease" 457 // ScaleDirectionIncrease ... 458 ScaleDirectionIncrease ScaleDirection = "Increase" 459 // ScaleDirectionNone ... 460 ScaleDirectionNone ScaleDirection = "None" 461) 462 463// PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type. 464func PossibleScaleDirectionValues() []ScaleDirection { 465 return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone} 466} 467 468// ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type. 469type ScaleRuleMetricDimensionOperationType string 470 471const ( 472 // ScaleRuleMetricDimensionOperationTypeEquals ... 473 ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" 474 // ScaleRuleMetricDimensionOperationTypeNotEquals ... 475 ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" 476) 477 478// PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type. 479func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType { 480 return []ScaleRuleMetricDimensionOperationType{ScaleRuleMetricDimensionOperationTypeEquals, ScaleRuleMetricDimensionOperationTypeNotEquals} 481} 482 483// ScaleType enumerates the values for scale type. 484type ScaleType string 485 486const ( 487 // ChangeCount ... 488 ChangeCount ScaleType = "ChangeCount" 489 // ExactCount ... 490 ExactCount ScaleType = "ExactCount" 491 // PercentChangeCount ... 492 PercentChangeCount ScaleType = "PercentChangeCount" 493) 494 495// PossibleScaleTypeValues returns an array of possible values for the ScaleType const type. 496func PossibleScaleTypeValues() []ScaleType { 497 return []ScaleType{ChangeCount, ExactCount, PercentChangeCount} 498} 499 500// Sensitivity enumerates the values for sensitivity. 501type Sensitivity string 502 503const ( 504 // SensitivityHigh ... 505 SensitivityHigh Sensitivity = "High" 506 // SensitivityLow ... 507 SensitivityLow Sensitivity = "Low" 508 // SensitivityMedium ... 509 SensitivityMedium Sensitivity = "Medium" 510) 511 512// PossibleSensitivityValues returns an array of possible values for the Sensitivity const type. 513func PossibleSensitivityValues() []Sensitivity { 514 return []Sensitivity{SensitivityHigh, SensitivityLow, SensitivityMedium} 515} 516 517// TimeAggregationOperator enumerates the values for time aggregation operator. 518type TimeAggregationOperator string 519 520const ( 521 // TimeAggregationOperatorAverage ... 522 TimeAggregationOperatorAverage TimeAggregationOperator = "Average" 523 // TimeAggregationOperatorLast ... 524 TimeAggregationOperatorLast TimeAggregationOperator = "Last" 525 // TimeAggregationOperatorMaximum ... 526 TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum" 527 // TimeAggregationOperatorMinimum ... 528 TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum" 529 // TimeAggregationOperatorTotal ... 530 TimeAggregationOperatorTotal TimeAggregationOperator = "Total" 531) 532 533// PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type. 534func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator { 535 return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal} 536} 537 538// TimeAggregationType enumerates the values for time aggregation type. 539type TimeAggregationType string 540 541const ( 542 // TimeAggregationTypeAverage ... 543 TimeAggregationTypeAverage TimeAggregationType = "Average" 544 // TimeAggregationTypeCount ... 545 TimeAggregationTypeCount TimeAggregationType = "Count" 546 // TimeAggregationTypeLast ... 547 TimeAggregationTypeLast TimeAggregationType = "Last" 548 // TimeAggregationTypeMaximum ... 549 TimeAggregationTypeMaximum TimeAggregationType = "Maximum" 550 // TimeAggregationTypeMinimum ... 551 TimeAggregationTypeMinimum TimeAggregationType = "Minimum" 552 // TimeAggregationTypeTotal ... 553 TimeAggregationTypeTotal TimeAggregationType = "Total" 554) 555 556// PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type. 557func PossibleTimeAggregationTypeValues() []TimeAggregationType { 558 return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} 559} 560 561// Unit enumerates the values for unit. 562type Unit string 563 564const ( 565 // UnitBitsPerSecond ... 566 UnitBitsPerSecond Unit = "BitsPerSecond" 567 // UnitBytes ... 568 UnitBytes Unit = "Bytes" 569 // UnitByteSeconds ... 570 UnitByteSeconds Unit = "ByteSeconds" 571 // UnitBytesPerSecond ... 572 UnitBytesPerSecond Unit = "BytesPerSecond" 573 // UnitCores ... 574 UnitCores Unit = "Cores" 575 // UnitCount ... 576 UnitCount Unit = "Count" 577 // UnitCountPerSecond ... 578 UnitCountPerSecond Unit = "CountPerSecond" 579 // UnitMilliCores ... 580 UnitMilliCores Unit = "MilliCores" 581 // UnitMilliSeconds ... 582 UnitMilliSeconds Unit = "MilliSeconds" 583 // UnitNanoCores ... 584 UnitNanoCores Unit = "NanoCores" 585 // UnitPercent ... 586 UnitPercent Unit = "Percent" 587 // UnitSeconds ... 588 UnitSeconds Unit = "Seconds" 589 // UnitUnspecified ... 590 UnitUnspecified Unit = "Unspecified" 591) 592 593// PossibleUnitValues returns an array of possible values for the Unit const type. 594func PossibleUnitValues() []Unit { 595 return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified} 596} 597