/
constants.go
134 lines (110 loc) · 3.37 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armadvisor
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor"
moduleVersion = "v1.2.0"
)
// CPUThreshold - Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid
// values: 5 (default), 10, 15 or 20.
type CPUThreshold string
const (
CPUThresholdFifteen CPUThreshold = "15"
CPUThresholdFive CPUThreshold = "5"
CPUThresholdTen CPUThreshold = "10"
CPUThresholdTwenty CPUThreshold = "20"
)
// PossibleCPUThresholdValues returns the possible values for the CPUThreshold const type.
func PossibleCPUThresholdValues() []CPUThreshold {
return []CPUThreshold{
CPUThresholdFifteen,
CPUThresholdFive,
CPUThresholdTen,
CPUThresholdTwenty,
}
}
type Category string
const (
CategoryCost Category = "Cost"
CategoryHighAvailability Category = "HighAvailability"
CategoryOperationalExcellence Category = "OperationalExcellence"
CategoryPerformance Category = "Performance"
CategorySecurity Category = "Security"
)
// PossibleCategoryValues returns the possible values for the Category const type.
func PossibleCategoryValues() []Category {
return []Category{
CategoryCost,
CategoryHighAvailability,
CategoryOperationalExcellence,
CategoryPerformance,
CategorySecurity,
}
}
type ConfigurationName string
const (
ConfigurationNameDefault ConfigurationName = "default"
)
// PossibleConfigurationNameValues returns the possible values for the ConfigurationName const type.
func PossibleConfigurationNameValues() []ConfigurationName {
return []ConfigurationName{
ConfigurationNameDefault,
}
}
// DigestConfigState - State of digest configuration.
type DigestConfigState string
const (
DigestConfigStateActive DigestConfigState = "Active"
DigestConfigStateDisabled DigestConfigState = "Disabled"
)
// PossibleDigestConfigStateValues returns the possible values for the DigestConfigState const type.
func PossibleDigestConfigStateValues() []DigestConfigState {
return []DigestConfigState{
DigestConfigStateActive,
DigestConfigStateDisabled,
}
}
// Impact - The business impact of the recommendation.
type Impact string
const (
ImpactHigh Impact = "High"
ImpactLow Impact = "Low"
ImpactMedium Impact = "Medium"
)
// PossibleImpactValues returns the possible values for the Impact const type.
func PossibleImpactValues() []Impact {
return []Impact{
ImpactHigh,
ImpactLow,
ImpactMedium,
}
}
// Risk - The potential risk of not implementing the recommendation.
type Risk string
const (
RiskError Risk = "Error"
RiskNone Risk = "None"
RiskWarning Risk = "Warning"
)
// PossibleRiskValues returns the possible values for the Risk const type.
func PossibleRiskValues() []Risk {
return []Risk{
RiskError,
RiskNone,
RiskWarning,
}
}
type Scenario string
const (
ScenarioAlerts Scenario = "Alerts"
)
// PossibleScenarioValues returns the possible values for the Scenario const type.
func PossibleScenarioValues() []Scenario {
return []Scenario{
ScenarioAlerts,
}
}