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