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// CategoryType enumerates the values for category type. 33type CategoryType string 34 35const ( 36 // Logs ... 37 Logs CategoryType = "Logs" 38 // Metrics ... 39 Metrics CategoryType = "Metrics" 40) 41 42// PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type. 43func PossibleCategoryTypeValues() []CategoryType { 44 return []CategoryType{Logs, Metrics} 45} 46 47// ComparisonOperationType enumerates the values for comparison operation type. 48type ComparisonOperationType string 49 50const ( 51 // Equals ... 52 Equals ComparisonOperationType = "Equals" 53 // GreaterThan ... 54 GreaterThan ComparisonOperationType = "GreaterThan" 55 // GreaterThanOrEqual ... 56 GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual" 57 // LessThan ... 58 LessThan ComparisonOperationType = "LessThan" 59 // LessThanOrEqual ... 60 LessThanOrEqual ComparisonOperationType = "LessThanOrEqual" 61 // NotEquals ... 62 NotEquals ComparisonOperationType = "NotEquals" 63) 64 65// PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type. 66func PossibleComparisonOperationTypeValues() []ComparisonOperationType { 67 return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals} 68} 69 70// ConditionOperator enumerates the values for condition operator. 71type ConditionOperator string 72 73const ( 74 // ConditionOperatorGreaterThan ... 75 ConditionOperatorGreaterThan ConditionOperator = "GreaterThan" 76 // ConditionOperatorGreaterThanOrEqual ... 77 ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual" 78 // ConditionOperatorLessThan ... 79 ConditionOperatorLessThan ConditionOperator = "LessThan" 80 // ConditionOperatorLessThanOrEqual ... 81 ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual" 82) 83 84// PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type. 85func PossibleConditionOperatorValues() []ConditionOperator { 86 return []ConditionOperator{ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual} 87} 88 89// EventLevel enumerates the values for event level. 90type EventLevel string 91 92const ( 93 // Critical ... 94 Critical EventLevel = "Critical" 95 // Error ... 96 Error EventLevel = "Error" 97 // Informational ... 98 Informational EventLevel = "Informational" 99 // Verbose ... 100 Verbose EventLevel = "Verbose" 101 // Warning ... 102 Warning EventLevel = "Warning" 103) 104 105// PossibleEventLevelValues returns an array of possible values for the EventLevel const type. 106func PossibleEventLevelValues() []EventLevel { 107 return []EventLevel{Critical, Error, Informational, Verbose, Warning} 108} 109 110// MetricStatisticType enumerates the values for metric statistic type. 111type MetricStatisticType string 112 113const ( 114 // MetricStatisticTypeAverage ... 115 MetricStatisticTypeAverage MetricStatisticType = "Average" 116 // MetricStatisticTypeMax ... 117 MetricStatisticTypeMax MetricStatisticType = "Max" 118 // MetricStatisticTypeMin ... 119 MetricStatisticTypeMin MetricStatisticType = "Min" 120 // MetricStatisticTypeSum ... 121 MetricStatisticTypeSum MetricStatisticType = "Sum" 122) 123 124// PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type. 125func PossibleMetricStatisticTypeValues() []MetricStatisticType { 126 return []MetricStatisticType{MetricStatisticTypeAverage, MetricStatisticTypeMax, MetricStatisticTypeMin, MetricStatisticTypeSum} 127} 128 129// OdataType enumerates the values for odata type. 130type OdataType string 131 132const ( 133 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource ... 134 OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource" 135 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource ... 136 OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" 137 // OdataTypeRuleDataSource ... 138 OdataTypeRuleDataSource OdataType = "RuleDataSource" 139) 140 141// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 142func PossibleOdataTypeValues() []OdataType { 143 return []OdataType{OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource, OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource, OdataTypeRuleDataSource} 144} 145 146// OdataTypeBasicRuleAction enumerates the values for odata type basic rule action. 147type OdataTypeBasicRuleAction string 148 149const ( 150 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction ... 151 OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" 152 // OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction ... 153 OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" 154 // OdataTypeRuleAction ... 155 OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction" 156) 157 158// PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type. 159func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction { 160 return []OdataTypeBasicRuleAction{OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction, OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction, OdataTypeRuleAction} 161} 162 163// OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition. 164type OdataTypeBasicRuleCondition string 165 166const ( 167 // OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition ... 168 OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" 169 // OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition ... 170 OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" 171 // OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition ... 172 OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" 173 // OdataTypeRuleCondition ... 174 OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition" 175) 176 177// PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type. 178func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition { 179 return []OdataTypeBasicRuleCondition{OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition, OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition, OdataTypeRuleCondition} 180} 181 182// ReceiverStatus enumerates the values for receiver status. 183type ReceiverStatus string 184 185const ( 186 // Disabled ... 187 Disabled ReceiverStatus = "Disabled" 188 // Enabled ... 189 Enabled ReceiverStatus = "Enabled" 190 // NotSpecified ... 191 NotSpecified ReceiverStatus = "NotSpecified" 192) 193 194// PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type. 195func PossibleReceiverStatusValues() []ReceiverStatus { 196 return []ReceiverStatus{Disabled, Enabled, NotSpecified} 197} 198 199// RecurrenceFrequency enumerates the values for recurrence frequency. 200type RecurrenceFrequency string 201 202const ( 203 // RecurrenceFrequencyDay ... 204 RecurrenceFrequencyDay RecurrenceFrequency = "Day" 205 // RecurrenceFrequencyHour ... 206 RecurrenceFrequencyHour RecurrenceFrequency = "Hour" 207 // RecurrenceFrequencyMinute ... 208 RecurrenceFrequencyMinute RecurrenceFrequency = "Minute" 209 // RecurrenceFrequencyMonth ... 210 RecurrenceFrequencyMonth RecurrenceFrequency = "Month" 211 // RecurrenceFrequencyNone ... 212 RecurrenceFrequencyNone RecurrenceFrequency = "None" 213 // RecurrenceFrequencySecond ... 214 RecurrenceFrequencySecond RecurrenceFrequency = "Second" 215 // RecurrenceFrequencyWeek ... 216 RecurrenceFrequencyWeek RecurrenceFrequency = "Week" 217 // RecurrenceFrequencyYear ... 218 RecurrenceFrequencyYear RecurrenceFrequency = "Year" 219) 220 221// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type. 222func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { 223 return []RecurrenceFrequency{RecurrenceFrequencyDay, RecurrenceFrequencyHour, RecurrenceFrequencyMinute, RecurrenceFrequencyMonth, RecurrenceFrequencyNone, RecurrenceFrequencySecond, RecurrenceFrequencyWeek, RecurrenceFrequencyYear} 224} 225 226// ResultType enumerates the values for result type. 227type ResultType string 228 229const ( 230 // Data ... 231 Data ResultType = "Data" 232 // Metadata ... 233 Metadata ResultType = "Metadata" 234) 235 236// PossibleResultTypeValues returns an array of possible values for the ResultType const type. 237func PossibleResultTypeValues() []ResultType { 238 return []ResultType{Data, Metadata} 239} 240 241// ScaleDirection enumerates the values for scale direction. 242type ScaleDirection string 243 244const ( 245 // ScaleDirectionDecrease ... 246 ScaleDirectionDecrease ScaleDirection = "Decrease" 247 // ScaleDirectionIncrease ... 248 ScaleDirectionIncrease ScaleDirection = "Increase" 249 // ScaleDirectionNone ... 250 ScaleDirectionNone ScaleDirection = "None" 251) 252 253// PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type. 254func PossibleScaleDirectionValues() []ScaleDirection { 255 return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone} 256} 257 258// ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type. 259type ScaleRuleMetricDimensionOperationType string 260 261const ( 262 // ScaleRuleMetricDimensionOperationTypeEquals ... 263 ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" 264 // ScaleRuleMetricDimensionOperationTypeNotEquals ... 265 ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" 266) 267 268// PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type. 269func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType { 270 return []ScaleRuleMetricDimensionOperationType{ScaleRuleMetricDimensionOperationTypeEquals, ScaleRuleMetricDimensionOperationTypeNotEquals} 271} 272 273// ScaleType enumerates the values for scale type. 274type ScaleType string 275 276const ( 277 // ChangeCount ... 278 ChangeCount ScaleType = "ChangeCount" 279 // ExactCount ... 280 ExactCount ScaleType = "ExactCount" 281 // PercentChangeCount ... 282 PercentChangeCount ScaleType = "PercentChangeCount" 283) 284 285// PossibleScaleTypeValues returns an array of possible values for the ScaleType const type. 286func PossibleScaleTypeValues() []ScaleType { 287 return []ScaleType{ChangeCount, ExactCount, PercentChangeCount} 288} 289 290// Sensitivity enumerates the values for sensitivity. 291type Sensitivity string 292 293const ( 294 // High ... 295 High Sensitivity = "High" 296 // Low ... 297 Low Sensitivity = "Low" 298 // Medium ... 299 Medium Sensitivity = "Medium" 300) 301 302// PossibleSensitivityValues returns an array of possible values for the Sensitivity const type. 303func PossibleSensitivityValues() []Sensitivity { 304 return []Sensitivity{High, Low, Medium} 305} 306 307// TimeAggregationOperator enumerates the values for time aggregation operator. 308type TimeAggregationOperator string 309 310const ( 311 // TimeAggregationOperatorAverage ... 312 TimeAggregationOperatorAverage TimeAggregationOperator = "Average" 313 // TimeAggregationOperatorLast ... 314 TimeAggregationOperatorLast TimeAggregationOperator = "Last" 315 // TimeAggregationOperatorMaximum ... 316 TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum" 317 // TimeAggregationOperatorMinimum ... 318 TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum" 319 // TimeAggregationOperatorTotal ... 320 TimeAggregationOperatorTotal TimeAggregationOperator = "Total" 321) 322 323// PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type. 324func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator { 325 return []TimeAggregationOperator{TimeAggregationOperatorAverage, TimeAggregationOperatorLast, TimeAggregationOperatorMaximum, TimeAggregationOperatorMinimum, TimeAggregationOperatorTotal} 326} 327 328// TimeAggregationType enumerates the values for time aggregation type. 329type TimeAggregationType string 330 331const ( 332 // TimeAggregationTypeAverage ... 333 TimeAggregationTypeAverage TimeAggregationType = "Average" 334 // TimeAggregationTypeCount ... 335 TimeAggregationTypeCount TimeAggregationType = "Count" 336 // TimeAggregationTypeLast ... 337 TimeAggregationTypeLast TimeAggregationType = "Last" 338 // TimeAggregationTypeMaximum ... 339 TimeAggregationTypeMaximum TimeAggregationType = "Maximum" 340 // TimeAggregationTypeMinimum ... 341 TimeAggregationTypeMinimum TimeAggregationType = "Minimum" 342 // TimeAggregationTypeTotal ... 343 TimeAggregationTypeTotal TimeAggregationType = "Total" 344) 345 346// PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type. 347func PossibleTimeAggregationTypeValues() []TimeAggregationType { 348 return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} 349} 350 351// Unit enumerates the values for unit. 352type Unit string 353 354const ( 355 // UnitBytes ... 356 UnitBytes Unit = "Bytes" 357 // UnitByteSeconds ... 358 UnitByteSeconds Unit = "ByteSeconds" 359 // UnitBytesPerSecond ... 360 UnitBytesPerSecond Unit = "BytesPerSecond" 361 // UnitCount ... 362 UnitCount Unit = "Count" 363 // UnitCountPerSecond ... 364 UnitCountPerSecond Unit = "CountPerSecond" 365 // UnitMilliSeconds ... 366 UnitMilliSeconds Unit = "MilliSeconds" 367 // UnitPercent ... 368 UnitPercent Unit = "Percent" 369 // UnitSeconds ... 370 UnitSeconds Unit = "Seconds" 371 // UnitUnspecified ... 372 UnitUnspecified Unit = "Unspecified" 373) 374 375// PossibleUnitValues returns an array of possible values for the Unit const type. 376func PossibleUnitValues() []Unit { 377 return []Unit{UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCount, UnitCountPerSecond, UnitMilliSeconds, UnitPercent, UnitSeconds, UnitUnspecified} 378} 379