1
+ ---
2
+ spec_version : ' 1.0'
3
+ # filter is optional
4
+ # specifies selection criteria for service in the SLI provider; project, stage,
5
+ # and service can be overwritten, if needed
6
+ filter :
7
+ dynatraceEntityName : " ItemsController"
8
+ tags : " test-subject:true"
9
+ # comparison is mandatory
10
+ comparison :
11
+ # compare_with is mandatory
12
+ # possible values:
13
+ # - single_result: only compare with one previous result
14
+ # - several_results: compare with several previous results
15
+ # this option requires ‘number_of_comparison_results’
16
+ compare_with : " single_result"
17
+ # include_result_with_score is optional
18
+ # default value: all
19
+ # possible values:
20
+ # - pass: only use previous results that had a ‘pass’ result in comparison
21
+ # - pass_or_warn: only use previous results that had a ‘pass’ or a ‘warning’
22
+ # result in the comparison
23
+ # - all: all previous values are used in the comparison
24
+ include_result_with_score : " pass"
25
+ # number_of_comparison_results is optional
26
+ # default value: 3
27
+ # possible values are positive integers greater than zero
28
+ # if less than 3 values are available for comparison the evaluation fails
29
+ number_of_comparison_results : 3
30
+ # aggregate_function is optional
31
+ # decides on the aggregate function which is applied to the previous results
32
+ # before comparison
33
+ # default value: avg
34
+ # possible values:
35
+ # - avg: average
36
+ # - p90: 90th percentile
37
+ # - p95: 95th percentile
38
+ aggregate_function : avg
39
+ # objectives is mandatory
40
+ # describes the objectives for SLIs
41
+ objectives :
42
+ # sli is mandatory
43
+ # can be specified several times, if sli is specified without further attributes
44
+ # the values are fetched and stored but are not taken into account for the
45
+ # evaluation
46
+ - sli : response_time_p95
47
+ # pass is optional
48
+ # it defines the pass criteria for the SLI values
49
+ pass : # pass if (relative change <= 10% OR absolute value is < 200)
50
+ # e.g.: If response time changes by more than 10%, it should still
51
+ # be considered as a pass if it is less than 200 ms
52
+ - criteria :
53
+ - " <=+10%" # relative values require a prefixed sign (plus or minus)
54
+ - " <1000" # absolute values only require a logical operator
55
+ warning : # allow small relative changes, and response time has to be < 500 ms
56
+ - criteria : # criteria connected by AND
57
+ - " <=800"
58
+ total_score : # maximum score = sum of weights
59
+ pass : " 90%" # by default this is interpreted as ">="
60
+ warning : 75%
0 commit comments