...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-05-01-preview/metrics

     1  package metrics
     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  // AggregationTypeEnum enumerates the values for aggregation type enum.
    33  type AggregationTypeEnum string
    34  
    35  const (
    36  	// AggregationTypeEnumAverage ...
    37  	AggregationTypeEnumAverage AggregationTypeEnum = "Average"
    38  	// AggregationTypeEnumCount ...
    39  	AggregationTypeEnumCount AggregationTypeEnum = "Count"
    40  	// AggregationTypeEnumMaximum ...
    41  	AggregationTypeEnumMaximum AggregationTypeEnum = "Maximum"
    42  	// AggregationTypeEnumMinimum ...
    43  	AggregationTypeEnumMinimum AggregationTypeEnum = "Minimum"
    44  	// AggregationTypeEnumTotal ...
    45  	AggregationTypeEnumTotal AggregationTypeEnum = "Total"
    46  )
    47  
    48  // PossibleAggregationTypeEnumValues returns an array of possible values for the AggregationTypeEnum const type.
    49  func PossibleAggregationTypeEnumValues() []AggregationTypeEnum {
    50  	return []AggregationTypeEnum{AggregationTypeEnumAverage, AggregationTypeEnumCount, AggregationTypeEnumMaximum, AggregationTypeEnumMinimum, AggregationTypeEnumTotal}
    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  // CriterionType enumerates the values for criterion type.
    71  type CriterionType string
    72  
    73  const (
    74  	// CriterionTypeDynamicThresholdCriterion ...
    75  	CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion"
    76  	// CriterionTypeMultiMetricCriteria ...
    77  	CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria"
    78  	// CriterionTypeStaticThresholdCriterion ...
    79  	CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion"
    80  )
    81  
    82  // PossibleCriterionTypeValues returns an array of possible values for the CriterionType const type.
    83  func PossibleCriterionTypeValues() []CriterionType {
    84  	return []CriterionType{CriterionTypeDynamicThresholdCriterion, CriterionTypeMultiMetricCriteria, CriterionTypeStaticThresholdCriterion}
    85  }
    86  
    87  // DynamicThresholdOperator enumerates the values for dynamic threshold operator.
    88  type DynamicThresholdOperator string
    89  
    90  const (
    91  	// GreaterOrLessThan ...
    92  	GreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan"
    93  	// GreaterThan ...
    94  	GreaterThan DynamicThresholdOperator = "GreaterThan"
    95  	// LessThan ...
    96  	LessThan DynamicThresholdOperator = "LessThan"
    97  )
    98  
    99  // PossibleDynamicThresholdOperatorValues returns an array of possible values for the DynamicThresholdOperator const type.
   100  func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator {
   101  	return []DynamicThresholdOperator{GreaterOrLessThan, GreaterThan, LessThan}
   102  }
   103  
   104  // DynamicThresholdSensitivity enumerates the values for dynamic threshold sensitivity.
   105  type DynamicThresholdSensitivity string
   106  
   107  const (
   108  	// DynamicThresholdSensitivityHigh ...
   109  	DynamicThresholdSensitivityHigh DynamicThresholdSensitivity = "High"
   110  	// DynamicThresholdSensitivityLow ...
   111  	DynamicThresholdSensitivityLow DynamicThresholdSensitivity = "Low"
   112  	// DynamicThresholdSensitivityMedium ...
   113  	DynamicThresholdSensitivityMedium DynamicThresholdSensitivity = "Medium"
   114  )
   115  
   116  // PossibleDynamicThresholdSensitivityValues returns an array of possible values for the DynamicThresholdSensitivity const type.
   117  func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity {
   118  	return []DynamicThresholdSensitivity{DynamicThresholdSensitivityHigh, DynamicThresholdSensitivityLow, DynamicThresholdSensitivityMedium}
   119  }
   120  
   121  // MetricAggregationType enumerates the values for metric aggregation type.
   122  type MetricAggregationType string
   123  
   124  const (
   125  	// MetricAggregationTypeAverage ...
   126  	MetricAggregationTypeAverage MetricAggregationType = "Average"
   127  	// MetricAggregationTypeCount ...
   128  	MetricAggregationTypeCount MetricAggregationType = "Count"
   129  	// MetricAggregationTypeMaximum ...
   130  	MetricAggregationTypeMaximum MetricAggregationType = "Maximum"
   131  	// MetricAggregationTypeMinimum ...
   132  	MetricAggregationTypeMinimum MetricAggregationType = "Minimum"
   133  	// MetricAggregationTypeNone ...
   134  	MetricAggregationTypeNone MetricAggregationType = "None"
   135  	// MetricAggregationTypeTotal ...
   136  	MetricAggregationTypeTotal MetricAggregationType = "Total"
   137  )
   138  
   139  // PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type.
   140  func PossibleMetricAggregationTypeValues() []MetricAggregationType {
   141  	return []MetricAggregationType{MetricAggregationTypeAverage, MetricAggregationTypeCount, MetricAggregationTypeMaximum, MetricAggregationTypeMinimum, MetricAggregationTypeNone, MetricAggregationTypeTotal}
   142  }
   143  
   144  // MetricClass enumerates the values for metric class.
   145  type MetricClass string
   146  
   147  const (
   148  	// MetricClassAvailability ...
   149  	MetricClassAvailability MetricClass = "Availability"
   150  	// MetricClassErrors ...
   151  	MetricClassErrors MetricClass = "Errors"
   152  	// MetricClassLatency ...
   153  	MetricClassLatency MetricClass = "Latency"
   154  	// MetricClassSaturation ...
   155  	MetricClassSaturation MetricClass = "Saturation"
   156  	// MetricClassTransactions ...
   157  	MetricClassTransactions MetricClass = "Transactions"
   158  )
   159  
   160  // PossibleMetricClassValues returns an array of possible values for the MetricClass const type.
   161  func PossibleMetricClassValues() []MetricClass {
   162  	return []MetricClass{MetricClassAvailability, MetricClassErrors, MetricClassLatency, MetricClassSaturation, MetricClassTransactions}
   163  }
   164  
   165  // MetricResultType enumerates the values for metric result type.
   166  type MetricResultType string
   167  
   168  const (
   169  	// Data ...
   170  	Data MetricResultType = "Data"
   171  	// Metadata ...
   172  	Metadata MetricResultType = "Metadata"
   173  )
   174  
   175  // PossibleMetricResultTypeValues returns an array of possible values for the MetricResultType const type.
   176  func PossibleMetricResultTypeValues() []MetricResultType {
   177  	return []MetricResultType{Data, Metadata}
   178  }
   179  
   180  // MetricUnit enumerates the values for metric unit.
   181  type MetricUnit string
   182  
   183  const (
   184  	// MetricUnitBitsPerSecond ...
   185  	MetricUnitBitsPerSecond MetricUnit = "BitsPerSecond"
   186  	// MetricUnitBytes ...
   187  	MetricUnitBytes MetricUnit = "Bytes"
   188  	// MetricUnitByteSeconds ...
   189  	MetricUnitByteSeconds MetricUnit = "ByteSeconds"
   190  	// MetricUnitBytesPerSecond ...
   191  	MetricUnitBytesPerSecond MetricUnit = "BytesPerSecond"
   192  	// MetricUnitCores ...
   193  	MetricUnitCores MetricUnit = "Cores"
   194  	// MetricUnitCount ...
   195  	MetricUnitCount MetricUnit = "Count"
   196  	// MetricUnitCountPerSecond ...
   197  	MetricUnitCountPerSecond MetricUnit = "CountPerSecond"
   198  	// MetricUnitMilliCores ...
   199  	MetricUnitMilliCores MetricUnit = "MilliCores"
   200  	// MetricUnitMilliSeconds ...
   201  	MetricUnitMilliSeconds MetricUnit = "MilliSeconds"
   202  	// MetricUnitNanoCores ...
   203  	MetricUnitNanoCores MetricUnit = "NanoCores"
   204  	// MetricUnitPercent ...
   205  	MetricUnitPercent MetricUnit = "Percent"
   206  	// MetricUnitSeconds ...
   207  	MetricUnitSeconds MetricUnit = "Seconds"
   208  	// MetricUnitUnspecified ...
   209  	MetricUnitUnspecified MetricUnit = "Unspecified"
   210  )
   211  
   212  // PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type.
   213  func PossibleMetricUnitValues() []MetricUnit {
   214  	return []MetricUnit{MetricUnitBitsPerSecond, MetricUnitBytes, MetricUnitByteSeconds, MetricUnitBytesPerSecond, MetricUnitCores, MetricUnitCount, MetricUnitCountPerSecond, MetricUnitMilliCores, MetricUnitMilliSeconds, MetricUnitNanoCores, MetricUnitPercent, MetricUnitSeconds, MetricUnitUnspecified}
   215  }
   216  
   217  // NamespaceClassification enumerates the values for namespace classification.
   218  type NamespaceClassification string
   219  
   220  const (
   221  	// Custom ...
   222  	Custom NamespaceClassification = "Custom"
   223  	// Platform ...
   224  	Platform NamespaceClassification = "Platform"
   225  	// Qos ...
   226  	Qos NamespaceClassification = "Qos"
   227  )
   228  
   229  // PossibleNamespaceClassificationValues returns an array of possible values for the NamespaceClassification const type.
   230  func PossibleNamespaceClassificationValues() []NamespaceClassification {
   231  	return []NamespaceClassification{Custom, Platform, Qos}
   232  }
   233  
   234  // OdataType enumerates the values for odata type.
   235  type OdataType string
   236  
   237  const (
   238  	// OdataTypeMetricAlertCriteria ...
   239  	OdataTypeMetricAlertCriteria OdataType = "MetricAlertCriteria"
   240  	// OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria ...
   241  	OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
   242  	// OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria ...
   243  	OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataType = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
   244  	// OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria ...
   245  	OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataType = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
   246  )
   247  
   248  // PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
   249  func PossibleOdataTypeValues() []OdataType {
   250  	return []OdataType{OdataTypeMetricAlertCriteria, OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria, OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria}
   251  }
   252  
   253  // Operator enumerates the values for operator.
   254  type Operator string
   255  
   256  const (
   257  	// OperatorEquals ...
   258  	OperatorEquals Operator = "Equals"
   259  	// OperatorGreaterThan ...
   260  	OperatorGreaterThan Operator = "GreaterThan"
   261  	// OperatorGreaterThanOrEqual ...
   262  	OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual"
   263  	// OperatorLessThan ...
   264  	OperatorLessThan Operator = "LessThan"
   265  	// OperatorLessThanOrEqual ...
   266  	OperatorLessThanOrEqual Operator = "LessThanOrEqual"
   267  )
   268  
   269  // PossibleOperatorValues returns an array of possible values for the Operator const type.
   270  func PossibleOperatorValues() []Operator {
   271  	return []Operator{OperatorEquals, OperatorGreaterThan, OperatorGreaterThanOrEqual, OperatorLessThan, OperatorLessThanOrEqual}
   272  }
   273  
   274  // ResultType enumerates the values for result type.
   275  type ResultType string
   276  
   277  const (
   278  	// ResultTypeData ...
   279  	ResultTypeData ResultType = "Data"
   280  	// ResultTypeMetadata ...
   281  	ResultTypeMetadata ResultType = "Metadata"
   282  )
   283  
   284  // PossibleResultTypeValues returns an array of possible values for the ResultType const type.
   285  func PossibleResultTypeValues() []ResultType {
   286  	return []ResultType{ResultTypeData, ResultTypeMetadata}
   287  }
   288  
   289  // Unit enumerates the values for unit.
   290  type Unit string
   291  
   292  const (
   293  	// UnitBitsPerSecond ...
   294  	UnitBitsPerSecond Unit = "BitsPerSecond"
   295  	// UnitBytes ...
   296  	UnitBytes Unit = "Bytes"
   297  	// UnitByteSeconds ...
   298  	UnitByteSeconds Unit = "ByteSeconds"
   299  	// UnitBytesPerSecond ...
   300  	UnitBytesPerSecond Unit = "BytesPerSecond"
   301  	// UnitCores ...
   302  	UnitCores Unit = "Cores"
   303  	// UnitCount ...
   304  	UnitCount Unit = "Count"
   305  	// UnitCountPerSecond ...
   306  	UnitCountPerSecond Unit = "CountPerSecond"
   307  	// UnitMilliCores ...
   308  	UnitMilliCores Unit = "MilliCores"
   309  	// UnitMilliSeconds ...
   310  	UnitMilliSeconds Unit = "MilliSeconds"
   311  	// UnitNanoCores ...
   312  	UnitNanoCores Unit = "NanoCores"
   313  	// UnitPercent ...
   314  	UnitPercent Unit = "Percent"
   315  	// UnitSeconds ...
   316  	UnitSeconds Unit = "Seconds"
   317  	// UnitUnspecified ...
   318  	UnitUnspecified Unit = "Unspecified"
   319  )
   320  
   321  // PossibleUnitValues returns an array of possible values for the Unit const type.
   322  func PossibleUnitValues() []Unit {
   323  	return []Unit{UnitBitsPerSecond, UnitBytes, UnitByteSeconds, UnitBytesPerSecond, UnitCores, UnitCount, UnitCountPerSecond, UnitMilliCores, UnitMilliSeconds, UnitNanoCores, UnitPercent, UnitSeconds, UnitUnspecified}
   324  }
   325  

View as plain text