...

Source file src/github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2021-08-01/scheduledqueryrules/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2021-08-01/scheduledqueryrules

     1  package scheduledqueryrules
     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  // ConditionOperator enumerates the values for condition operator.
    10  type ConditionOperator string
    11  
    12  const (
    13  	// ConditionOperatorEquals ...
    14  	ConditionOperatorEquals ConditionOperator = "Equals"
    15  	// ConditionOperatorGreaterThan ...
    16  	ConditionOperatorGreaterThan ConditionOperator = "GreaterThan"
    17  	// ConditionOperatorGreaterThanOrEqual ...
    18  	ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual"
    19  	// ConditionOperatorLessThan ...
    20  	ConditionOperatorLessThan ConditionOperator = "LessThan"
    21  	// ConditionOperatorLessThanOrEqual ...
    22  	ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
    23  )
    24  
    25  // PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.
    26  func PossibleConditionOperatorValues() []ConditionOperator {
    27  	return []ConditionOperator{ConditionOperatorEquals, ConditionOperatorGreaterThan, ConditionOperatorGreaterThanOrEqual, ConditionOperatorLessThan, ConditionOperatorLessThanOrEqual}
    28  }
    29  
    30  // CreatedByType enumerates the values for created by type.
    31  type CreatedByType string
    32  
    33  const (
    34  	// CreatedByTypeApplication ...
    35  	CreatedByTypeApplication CreatedByType = "Application"
    36  	// CreatedByTypeKey ...
    37  	CreatedByTypeKey CreatedByType = "Key"
    38  	// CreatedByTypeManagedIdentity ...
    39  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    40  	// CreatedByTypeUser ...
    41  	CreatedByTypeUser CreatedByType = "User"
    42  )
    43  
    44  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    45  func PossibleCreatedByTypeValues() []CreatedByType {
    46  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
    47  }
    48  
    49  // DimensionOperator enumerates the values for dimension operator.
    50  type DimensionOperator string
    51  
    52  const (
    53  	// DimensionOperatorExclude ...
    54  	DimensionOperatorExclude DimensionOperator = "Exclude"
    55  	// DimensionOperatorInclude ...
    56  	DimensionOperatorInclude DimensionOperator = "Include"
    57  )
    58  
    59  // PossibleDimensionOperatorValues returns an array of possible values for the DimensionOperator const type.
    60  func PossibleDimensionOperatorValues() []DimensionOperator {
    61  	return []DimensionOperator{DimensionOperatorExclude, DimensionOperatorInclude}
    62  }
    63  
    64  // Kind enumerates the values for kind.
    65  type Kind string
    66  
    67  const (
    68  	// KindLogAlert ...
    69  	KindLogAlert Kind = "LogAlert"
    70  	// KindLogToMetric ...
    71  	KindLogToMetric Kind = "LogToMetric"
    72  )
    73  
    74  // PossibleKindValues returns an array of possible values for the Kind const type.
    75  func PossibleKindValues() []Kind {
    76  	return []Kind{KindLogAlert, KindLogToMetric}
    77  }
    78  
    79  // TimeAggregation enumerates the values for time aggregation.
    80  type TimeAggregation string
    81  
    82  const (
    83  	// TimeAggregationAverage ...
    84  	TimeAggregationAverage TimeAggregation = "Average"
    85  	// TimeAggregationCount ...
    86  	TimeAggregationCount TimeAggregation = "Count"
    87  	// TimeAggregationMaximum ...
    88  	TimeAggregationMaximum TimeAggregation = "Maximum"
    89  	// TimeAggregationMinimum ...
    90  	TimeAggregationMinimum TimeAggregation = "Minimum"
    91  	// TimeAggregationTotal ...
    92  	TimeAggregationTotal TimeAggregation = "Total"
    93  )
    94  
    95  // PossibleTimeAggregationValues returns an array of possible values for the TimeAggregation const type.
    96  func PossibleTimeAggregationValues() []TimeAggregation {
    97  	return []TimeAggregation{TimeAggregationAverage, TimeAggregationCount, TimeAggregationMaximum, TimeAggregationMinimum, TimeAggregationTotal}
    98  }
    99  

View as plain text