Skip to content

Commit 68b6400

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2aab4b8 of spec repo
1 parent dc338e3 commit 68b6400

File tree

4 files changed

+111
-12
lines changed

4 files changed

+111
-12
lines changed

content/en/api/v1/service-level-objectives/examples.json

Lines changed: 6 additions & 7 deletions
Large diffs are not rendered by default.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "metric",
3+
"description": "Metric SLO using sli_specification",
4+
"name": "Example-Service-Level-Objective",
5+
"sli_specification": {
6+
"count": {
7+
"good_events_formula": {
8+
"formula": "query1"
9+
},
10+
"total_events_formula": {
11+
"formula": "query2"
12+
},
13+
"queries": [
14+
{
15+
"data_source": "metrics",
16+
"name": "query1",
17+
"query": "sum:httpservice.success{*}.as_count()"
18+
},
19+
{
20+
"data_source": "metrics",
21+
"name": "query2",
22+
"query": "sum:httpservice.hits{*}.as_count()"
23+
}
24+
]
25+
}
26+
},
27+
"tags": [
28+
"env:prod",
29+
"type:count"
30+
],
31+
"thresholds": [
32+
{
33+
"target": 99.0,
34+
"target_display": "99.0",
35+
"timeframe": "7d",
36+
"warning": 98,
37+
"warning_display": "98.0"
38+
}
39+
],
40+
"timeframe": "7d",
41+
"target_threshold": 99.0,
42+
"warning_threshold": 98
43+
}

data/api/v1/CodeExamples.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,11 @@
833833
}
834834
],
835835
"CreateSLO": [
836+
{
837+
"group": "service_level_objectives",
838+
"suffix": "_512760759",
839+
"description": "Create a new metric SLO object using sli_specification returns \"OK\" response"
840+
},
836841
{
837842
"group": "service_level_objectives",
838843
"suffix": "_3765703239",

data/api/v1/full_spec.yaml

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11516,6 +11516,60 @@ components:
1151611516
example: UTC
1151711517
type: string
1151811518
type: object
11519+
SLOCountCondition:
11520+
description: 'A count-based SLI specification, composed of three parts: the
11521+
good events formula, the total events formula,
11522+
11523+
and the involved queries.'
11524+
example:
11525+
good_events_formula: query1 - query2
11526+
queries:
11527+
- data_source: metrics
11528+
name: query1
11529+
query: sum:trace.servlet.request.success{*} by {env}.as_count()
11530+
- data_source: metrics
11531+
name: query2
11532+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11533+
total_events_formula: query2
11534+
properties:
11535+
good_events_formula:
11536+
$ref: '#/components/schemas/SLOFormula'
11537+
queries:
11538+
example:
11539+
- data_source: metrics
11540+
name: query1
11541+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11542+
items:
11543+
$ref: '#/components/schemas/SLODataSourceQueryDefinition'
11544+
minItems: 1
11545+
type: array
11546+
total_events_formula:
11547+
$ref: '#/components/schemas/SLOFormula'
11548+
required:
11549+
- good_events_formula
11550+
- total_events_formula
11551+
- queries
11552+
type: object
11553+
SLOCountSpec:
11554+
additionalProperties: false
11555+
description: A count-based SLI specification.
11556+
example:
11557+
count:
11558+
good_events_formula: query1 - query2
11559+
queries:
11560+
- data_source: metrics
11561+
name: query1
11562+
query: sum:trace.servlet.request.success{*} by {env}.as_count()
11563+
- data_source: metrics
11564+
name: query2
11565+
query: sum:trace.servlet.request.hits{*} by {env}.as_count()
11566+
total_events_formula: query2
11567+
properties:
11568+
count:
11569+
$ref: '#/components/schemas/SLOCountCondition'
11570+
required:
11571+
- count
11572+
type: object
1151911573
SLOCreator:
1152011574
description: The creator of the SLO
1152111575
nullable: true
@@ -12402,8 +12456,6 @@ components:
1240212456
type: array
1240312457
timeframe:
1240412458
$ref: '#/components/schemas/SLOTimeframe'
12405-
type:
12406-
$ref: '#/components/schemas/SLOType'
1240712459
warning_threshold:
1240812460
description: 'The optional warning threshold such that when the service
1240912461
level indicator is
@@ -12421,9 +12473,10 @@ components:
1242112473
type: object
1242212474
SLOSliSpec:
1242312475
description: A generic SLI specification. This is currently used for time-slice
12424-
SLOs only.
12476+
and count-based SLOs only.
1242512477
oneOf:
1242612478
- $ref: '#/components/schemas/SLOTimeSliceSpec'
12479+
- $ref: '#/components/schemas/SLOCountSpec'
1242712480
SLOState:
1242812481
description: State of the SLO.
1242912482
enum:
@@ -13606,8 +13659,7 @@ components:
1360613659
- type
1360713660
type: object
1360813661
ServiceLevelObjectiveQuery:
13609-
description: 'A metric-based SLO. **Required if type is `metric`**. Note that
13610-
Datadog only allows the sum by aggregator
13662+
description: 'A metric-based SLO. Note that Datadog only allows the sum by aggregator
1361113663

1361213664
to be used because this will sum up all request counts instead of averaging
1361313665
them, or taking the max or

0 commit comments

Comments
 (0)