You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| if(isBlank(latency), "false", "true") as hasLatency
70
+
| where hasLatency = "true"
71
+
| if(isBlank(latency), 0.0, latency) as latency
72
+
| latency/ 1000 as latency_sec
73
+
QUERY
74
+
use_row_count = true
75
+
field = "latency_sec"
76
+
}
77
+
}
78
+
}
40
79
}
41
80
}
42
81
```
@@ -48,7 +87,7 @@ The following arguments are supported:
48
87
-`name` - (Required) The name of the SLO. The name must be alphanumeric.
49
88
-`description` - (Optional) The description of the SLO.
50
89
-`parent_id` - (Optional) The ID of the SLO Folder that contains this SLO. Defaults to the root folder.
51
-
-`signal_type` - (Required) The type of SLO. Valid values are `Latency`, `Error`,`Throughput`,`Availability`
90
+
-`signal_type` - (Required) The type of SLO. Valid values are `Latency`, `Error`,`Throughput`,`Availability`
52
91
, `Other`. Defaults to `Latency`.
53
92
-`service` - (Optional) The notifications the SLO will send when the respective trigger condition is met.
54
93
-`application` - (Optional) Whether to group notifications for individual items that meet the trigger condition.
@@ -57,47 +96,55 @@ The following arguments are supported:
57
96
-`compliance_type` - (Required) The type of compliance to use. Valid values are `Rolling` or `Calendar`.
58
97
-`target` - (Required) The target value to use, must be a number between 0 and 100.
59
98
-`timezone` - (Required) Time zone for the SLO compliance. Follow the format in the [IANA Time Zone Database][3].
60
-
-`size` - (Required) The size of the compliance period to use.
61
-
For `Calendar` compliance type the allowed values are `Week`, `Month`, `Quarter`.
62
-
-`start_from` - (Optional) Start of the calendar window. For week, it would be the day of the week (for e.g Sunday, Monday etc). For month, it will always be the first day of the month. For quarter, it would be the first month of the quarter (for e.g January, February etc.)
63
-
-`indicator` - (Required) The service level indicator on which SLO is to be defined. more details on the difference b/w them can be found on the [slo help page](https://help.sumologic.com/Beta/SLO_Reliability_Management/Access_and_Create_SLOs)
64
-
-[window_based_evaluation](#window_based_evaluation) - Evaluate SLI using successful/total windows.
65
-
-[request_based_evaluation](#request_based_evaluation) - Evaluate SLI based on occurrence's of successful events / total events over entire compliance period.
99
+
-`size` - (Required) The size of the compliance period to use.
100
+
For `Calendar` compliance type the allowed values are `Week`, `Month`, `Quarter`.
101
+
-`start_from` - (Optional) Start of the calendar window. For week, it would be the day of the week (for e.g Sunday,
102
+
Monday etc). For month, it will always be the first day of the month. For quarter, it would be the first month of
103
+
the quarter (for e.g January, February etc.)
104
+
-`indicator` - (Required) The service level indicator on which SLO is to be defined. more details on the difference
105
+
b/w them can be found on
106
+
the [slo help page](https://help.sumologic.com/Beta/SLO_Reliability_Management/Access_and_Create_SLOs)
107
+
-[window_based_evaluation](#window_based_evaluation) - Evaluate SLI using successful/total windows.
108
+
-[request_based_evaluation](#request_based_evaluation) - Evaluate SLI based on occurrence's of successful
109
+
events / total events over entire compliance period.
66
110
67
111
#### window_based_evaluation
68
112
69
-
-`size` - (Required) The size of the window to use, minimum of `1m` and maximum of `1h`. Only applicable for Window based evaluation.
70
-
-`query_type` - (Required) The type of query to use. Valid values are `Metrics` or `Logs`.
71
-
-`threshold` - (Required) Threshold for classifying window as successful or unsuccessful, i.e. the minimum value for `good windows / total events`.
72
-
-`op` - (Required) The operator used to define a successful window or event. Valid values are `LessThan`, `LessThanOrEqual`, `GreaterThan`
73
-
, `GreaterThanOrEqual`.
74
-
-`aggregation` - (Optional) Aggregation function applied over each window to arrive at SLI. Valid values are `Avg`
75
-
, `Sum`, `Count`, `Max`, `Min` and `p[1-99]`.
76
-
-`queries` - (Required) The queries to use.
77
-
-`query_group_type` - (Required) The type of query. Valid values are `Successful`, `Unsuccessful`, `Total`
78
-
, `Threshold`.
79
-
-`query_group` - (Required) List of queries to use.
80
-
-`row_id` - (Required) The row ID to use.
81
-
-`query` - (Required) The query string to use.
82
-
-`use_row_count` - (Required) Whether to use the row count. Defaults to false.
83
-
-`field` - (Optional) Field of log query output to compare against. To be used only for logs based data
84
-
type when `use_row_count` is false.
113
+
-`size` - (Required) The size of the window to use, minimum of `1m` and maximum of `1h`. Only applicable for Window
114
+
based evaluation.
115
+
-`query_type` - (Required) The type of query to use. Valid values are `Metrics` or `Logs`.
116
+
-`threshold` - (Required) Threshold for classifying window as successful or unsuccessful, i.e. the minimum value
117
+
for `good windows / total events`.
118
+
-`op` - (Required) The operator used to define a successful window or event. Valid values are `LessThan`
119
+
, `LessThanOrEqual`, `GreaterThan`
120
+
, `GreaterThanOrEqual`.
121
+
-`aggregation` - (Optional) Aggregation function applied over each window to arrive at SLI. Valid values are `Avg`
122
+
, `Sum`, `Count`, `Max`, `Min` and `p[1-99]`.
123
+
-`queries` - (Required) The queries to use.
124
+
-`query_group_type` - (Required) The type of query. Valid values are `Successful`, `Unsuccessful`, `Total`
125
+
, `Threshold`.
126
+
-`query_group` - (Required) List of queries to use.
127
+
-`row_id` - (Required) The row ID to use.
128
+
-`query` - (Required) The query string to use.
129
+
-`use_row_count` - (Required) Whether to use the row count. Defaults to false.
130
+
-`field` - (Optional) Field of log query output to compare against. To be used only for logs based data
131
+
type when `use_row_count` is false.
85
132
86
133
#### request_based_evaluation
87
134
88
-
-`query_type` - (Required) The type of query to use. Valid values are `Metrics` or `Logs`.
89
-
-`threshold` - (Required) Compared against threshold query's raw data points to determine success criteria.
90
-
-`op` - (Required) Comparison function with threshold. Valid values are `LessThan`, `LessThanOrEqual`, `GreaterThan`
91
-
, `GreaterThanOrEqual`.
92
-
-`queries` - (Required) The queries to use.
93
-
-`query_group_type` - (Required) The type of query. Valid values are `Successful`, `Unsuccessful`, `Total`
94
-
, `Threshold`.
95
-
-`query_group` - (Required) List of queries to use.
96
-
-`row_id` - (Required) The row ID to use.
97
-
-`query` - (Required) The query string to use.
98
-
-`use_row_count` - (Required) Whether to use the row count. Defaults to false.
99
-
-`field` - (Optional) Field of log query output to compare against. To be used only for logs based data
100
-
type when `use_row_count` is false.
135
+
-`query_type` - (Required) The type of query to use. Valid values are `Metrics` or `Logs`.
136
+
-`threshold` - (Required) Compared against threshold query's raw data points to determine success criteria.
137
+
-`op` - (Required) Comparison function with threshold. Valid values are `LessThan`, `LessThanOrEqual`, `GreaterThan`
138
+
, `GreaterThanOrEqual`.
139
+
-`queries` - (Required) The queries to use.
140
+
-`query_group_type` - (Required) The type of query. Valid values are `Successful`, `Unsuccessful`, `Total`
141
+
, `Threshold`.
142
+
-`query_group` - (Required) List of queries to use.
143
+
-`row_id` - (Required) The row ID to use.
144
+
-`query` - (Required) The query string to use.
145
+
-`use_row_count` - (Required) Whether to use the row count. Defaults to false.
146
+
-`field` - (Optional) Field of log query output to compare against. To be used only for logs based data
0 commit comments