Skip to content

Commit 2969e8b

Browse files
authored
Merge pull request MicrosoftDocs#23 from eternovsky/master
adding SLA example
2 parents d193059 + 810a929 commit 2969e8b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Defining a custom SLA, and adherence to it
2+
#### #count #render #timechart #summarize
3+
<!-- article_id: 3107‎2017‏‎03827004 -->
4+
5+
The following query defines a custom Service Level Agreement (SLA): a request is considered as meeting SLA if it completes in under 3 seconds. The query then adds a static SLA target of 99.9% of requests needing to meet the SLA. The two are plotted on a time chart.
6+
7+
```AIQL
8+
requests
9+
| where timestamp > ago(7d)
10+
| summarize slaMet = count(duration < 3000), slaBreached = count(duration >= 3000), totalCount = count() by bin(timestamp, 1h)
11+
| extend SLAIndex = slaMet * 100.0 / totalCount
12+
| extend SLA = 99.9
13+
| project SLAIndex, timestamp, SLA
14+
| render timechart
15+
```
16+
17+
The output will look like this:
18+
<p><img src="~/examples/images/SLA.png" alt="a custom SLA metric definition and its trend over time compared to SLA target"></p>

images/SLA.png

46.4 KB
Loading

0 commit comments

Comments
 (0)