...

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

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

     1  package diagnostics
     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  // AccessMode enumerates the values for access mode.
    10  type AccessMode string
    11  
    12  const (
    13  	// Open ...
    14  	Open AccessMode = "Open"
    15  	// PrivateOnly ...
    16  	PrivateOnly AccessMode = "PrivateOnly"
    17  )
    18  
    19  // PossibleAccessModeValues returns an array of possible values for the AccessMode const type.
    20  func PossibleAccessModeValues() []AccessMode {
    21  	return []AccessMode{Open, PrivateOnly}
    22  }
    23  
    24  // CategoryType enumerates the values for category type.
    25  type CategoryType string
    26  
    27  const (
    28  	// Logs ...
    29  	Logs CategoryType = "Logs"
    30  	// Metrics ...
    31  	Metrics CategoryType = "Metrics"
    32  )
    33  
    34  // PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
    35  func PossibleCategoryTypeValues() []CategoryType {
    36  	return []CategoryType{Logs, Metrics}
    37  }
    38  
    39  // ComparisonOperationType enumerates the values for comparison operation type.
    40  type ComparisonOperationType string
    41  
    42  const (
    43  	// Equals ...
    44  	Equals ComparisonOperationType = "Equals"
    45  	// GreaterThan ...
    46  	GreaterThan ComparisonOperationType = "GreaterThan"
    47  	// GreaterThanOrEqual ...
    48  	GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual"
    49  	// LessThan ...
    50  	LessThan ComparisonOperationType = "LessThan"
    51  	// LessThanOrEqual ...
    52  	LessThanOrEqual ComparisonOperationType = "LessThanOrEqual"
    53  	// NotEquals ...
    54  	NotEquals ComparisonOperationType = "NotEquals"
    55  )
    56  
    57  // PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
    58  func PossibleComparisonOperationTypeValues() []ComparisonOperationType {
    59  	return []ComparisonOperationType{Equals, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, NotEquals}
    60  }
    61  
    62  // CreatedByType enumerates the values for created by type.
    63  type CreatedByType string
    64  
    65  const (
    66  	// Application ...
    67  	Application CreatedByType = "Application"
    68  	// Key ...
    69  	Key CreatedByType = "Key"
    70  	// ManagedIdentity ...
    71  	ManagedIdentity CreatedByType = "ManagedIdentity"
    72  	// User ...
    73  	User CreatedByType = "User"
    74  )
    75  
    76  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    77  func PossibleCreatedByTypeValues() []CreatedByType {
    78  	return []CreatedByType{Application, Key, ManagedIdentity, User}
    79  }
    80  
    81  // MetricStatisticType enumerates the values for metric statistic type.
    82  type MetricStatisticType string
    83  
    84  const (
    85  	// Average ...
    86  	Average MetricStatisticType = "Average"
    87  	// Count ...
    88  	Count MetricStatisticType = "Count"
    89  	// Max ...
    90  	Max MetricStatisticType = "Max"
    91  	// Min ...
    92  	Min MetricStatisticType = "Min"
    93  	// Sum ...
    94  	Sum MetricStatisticType = "Sum"
    95  )
    96  
    97  // PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
    98  func PossibleMetricStatisticTypeValues() []MetricStatisticType {
    99  	return []MetricStatisticType{Average, Count, Max, Min, Sum}
   100  }
   101  
   102  // PredictiveAutoscalePolicyScaleMode enumerates the values for predictive autoscale policy scale mode.
   103  type PredictiveAutoscalePolicyScaleMode string
   104  
   105  const (
   106  	// Disabled ...
   107  	Disabled PredictiveAutoscalePolicyScaleMode = "Disabled"
   108  	// Enabled ...
   109  	Enabled PredictiveAutoscalePolicyScaleMode = "Enabled"
   110  	// ForecastOnly ...
   111  	ForecastOnly PredictiveAutoscalePolicyScaleMode = "ForecastOnly"
   112  )
   113  
   114  // PossiblePredictiveAutoscalePolicyScaleModeValues returns an array of possible values for the PredictiveAutoscalePolicyScaleMode const type.
   115  func PossiblePredictiveAutoscalePolicyScaleModeValues() []PredictiveAutoscalePolicyScaleMode {
   116  	return []PredictiveAutoscalePolicyScaleMode{Disabled, Enabled, ForecastOnly}
   117  }
   118  
   119  // PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection
   120  // provisioning state.
   121  type PrivateEndpointConnectionProvisioningState string
   122  
   123  const (
   124  	// Creating ...
   125  	Creating PrivateEndpointConnectionProvisioningState = "Creating"
   126  	// Deleting ...
   127  	Deleting PrivateEndpointConnectionProvisioningState = "Deleting"
   128  	// Failed ...
   129  	Failed PrivateEndpointConnectionProvisioningState = "Failed"
   130  	// Succeeded ...
   131  	Succeeded PrivateEndpointConnectionProvisioningState = "Succeeded"
   132  )
   133  
   134  // PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
   135  func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
   136  	return []PrivateEndpointConnectionProvisioningState{Creating, Deleting, Failed, Succeeded}
   137  }
   138  
   139  // PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
   140  type PrivateEndpointServiceConnectionStatus string
   141  
   142  const (
   143  	// Approved ...
   144  	Approved PrivateEndpointServiceConnectionStatus = "Approved"
   145  	// Pending ...
   146  	Pending PrivateEndpointServiceConnectionStatus = "Pending"
   147  	// Rejected ...
   148  	Rejected PrivateEndpointServiceConnectionStatus = "Rejected"
   149  )
   150  
   151  // PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
   152  func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
   153  	return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected}
   154  }
   155  
   156  // ReceiverStatus enumerates the values for receiver status.
   157  type ReceiverStatus string
   158  
   159  const (
   160  	// ReceiverStatusDisabled ...
   161  	ReceiverStatusDisabled ReceiverStatus = "Disabled"
   162  	// ReceiverStatusEnabled ...
   163  	ReceiverStatusEnabled ReceiverStatus = "Enabled"
   164  	// ReceiverStatusNotSpecified ...
   165  	ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified"
   166  )
   167  
   168  // PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
   169  func PossibleReceiverStatusValues() []ReceiverStatus {
   170  	return []ReceiverStatus{ReceiverStatusDisabled, ReceiverStatusEnabled, ReceiverStatusNotSpecified}
   171  }
   172  
   173  // RecurrenceFrequency enumerates the values for recurrence frequency.
   174  type RecurrenceFrequency string
   175  
   176  const (
   177  	// Day ...
   178  	Day RecurrenceFrequency = "Day"
   179  	// Hour ...
   180  	Hour RecurrenceFrequency = "Hour"
   181  	// Minute ...
   182  	Minute RecurrenceFrequency = "Minute"
   183  	// Month ...
   184  	Month RecurrenceFrequency = "Month"
   185  	// None ...
   186  	None RecurrenceFrequency = "None"
   187  	// Second ...
   188  	Second RecurrenceFrequency = "Second"
   189  	// Week ...
   190  	Week RecurrenceFrequency = "Week"
   191  	// Year ...
   192  	Year RecurrenceFrequency = "Year"
   193  )
   194  
   195  // PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
   196  func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
   197  	return []RecurrenceFrequency{Day, Hour, Minute, Month, None, Second, Week, Year}
   198  }
   199  
   200  // ScaleDirection enumerates the values for scale direction.
   201  type ScaleDirection string
   202  
   203  const (
   204  	// ScaleDirectionDecrease ...
   205  	ScaleDirectionDecrease ScaleDirection = "Decrease"
   206  	// ScaleDirectionIncrease ...
   207  	ScaleDirectionIncrease ScaleDirection = "Increase"
   208  	// ScaleDirectionNone ...
   209  	ScaleDirectionNone ScaleDirection = "None"
   210  )
   211  
   212  // PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
   213  func PossibleScaleDirectionValues() []ScaleDirection {
   214  	return []ScaleDirection{ScaleDirectionDecrease, ScaleDirectionIncrease, ScaleDirectionNone}
   215  }
   216  
   217  // ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type.
   218  type ScaleRuleMetricDimensionOperationType string
   219  
   220  const (
   221  	// ScaleRuleMetricDimensionOperationTypeEquals ...
   222  	ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals"
   223  	// ScaleRuleMetricDimensionOperationTypeNotEquals ...
   224  	ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals"
   225  )
   226  
   227  // PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type.
   228  func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType {
   229  	return []ScaleRuleMetricDimensionOperationType{ScaleRuleMetricDimensionOperationTypeEquals, ScaleRuleMetricDimensionOperationTypeNotEquals}
   230  }
   231  
   232  // ScaleType enumerates the values for scale type.
   233  type ScaleType string
   234  
   235  const (
   236  	// ChangeCount ...
   237  	ChangeCount ScaleType = "ChangeCount"
   238  	// ExactCount ...
   239  	ExactCount ScaleType = "ExactCount"
   240  	// PercentChangeCount ...
   241  	PercentChangeCount ScaleType = "PercentChangeCount"
   242  	// ServiceAllowedNextValue ...
   243  	ServiceAllowedNextValue ScaleType = "ServiceAllowedNextValue"
   244  )
   245  
   246  // PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
   247  func PossibleScaleTypeValues() []ScaleType {
   248  	return []ScaleType{ChangeCount, ExactCount, PercentChangeCount, ServiceAllowedNextValue}
   249  }
   250  
   251  // TimeAggregationType enumerates the values for time aggregation type.
   252  type TimeAggregationType string
   253  
   254  const (
   255  	// TimeAggregationTypeAverage ...
   256  	TimeAggregationTypeAverage TimeAggregationType = "Average"
   257  	// TimeAggregationTypeCount ...
   258  	TimeAggregationTypeCount TimeAggregationType = "Count"
   259  	// TimeAggregationTypeLast ...
   260  	TimeAggregationTypeLast TimeAggregationType = "Last"
   261  	// TimeAggregationTypeMaximum ...
   262  	TimeAggregationTypeMaximum TimeAggregationType = "Maximum"
   263  	// TimeAggregationTypeMinimum ...
   264  	TimeAggregationTypeMinimum TimeAggregationType = "Minimum"
   265  	// TimeAggregationTypeTotal ...
   266  	TimeAggregationTypeTotal TimeAggregationType = "Total"
   267  )
   268  
   269  // PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
   270  func PossibleTimeAggregationTypeValues() []TimeAggregationType {
   271  	return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal}
   272  }
   273  

View as plain text