Skip to content

Commit a7e2f88

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing measures for SLOs data source (#2255)
* Regenerate client from commit 9de1804a of spec repo * pre-commit fixes * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 33c2bf6 commit a7e2f88

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-11-08 19:36:36.952168",
8-
"spec_repo_commit": "ae3b5463"
7+
"regenerated": "2024-11-11 17:25:22.178464",
8+
"spec_repo_commit": "9de1804a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-08 19:36:36.969913",
13-
"spec_repo_commit": "ae3b5463"
12+
"regenerated": "2024-11-11 17:25:22.196390",
13+
"spec_repo_commit": "9de1804a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,6 +3040,8 @@ components:
30403040
enum:
30413041
- good_events
30423042
- bad_events
3043+
- good_minutes
3044+
- bad_minutes
30433045
- slo_status
30443046
- error_budget_remaining
30453047
- burn_rate
@@ -3049,6 +3051,8 @@ components:
30493051
x-enum-varnames:
30503052
- GOOD_EVENTS
30513053
- BAD_EVENTS
3054+
- GOOD_MINUTES
3055+
- BAD_MINUTES
30523056
- SLO_STATUS
30533057
- ERROR_BUDGET_REMAINING
30543058
- BURN_RATE

examples/v2/security-monitoring/GetHistoricalJob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
HISTORICAL_JOB_DATA_ID = environ["HISTORICAL_JOB_DATA_ID"]
1111

1212
configuration = Configuration()
13-
configuration.unstable_operations["get_historical_job"] = True
1413
configuration.unstable_operations["run_historical_job"] = True
14+
configuration.unstable_operations["get_historical_job"] = True
1515
with ApiClient(configuration) as api_client:
1616
api_instance = SecurityMonitoringApi(api_client)
1717
response = api_instance.get_historical_job(

src/datadog_api_client/v1/model/formula_and_function_slo_measure.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,24 @@ class FormulaAndFunctionSLOMeasure(ModelSimple):
1616
"""
1717
SLO measures queries.
1818
19-
:param value: Must be one of ["good_events", "bad_events", "slo_status", "error_budget_remaining", "burn_rate", "error_budget_burndown"].
19+
:param value: Must be one of ["good_events", "bad_events", "good_minutes", "bad_minutes", "slo_status", "error_budget_remaining", "burn_rate", "error_budget_burndown"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"good_events",
2525
"bad_events",
26+
"good_minutes",
27+
"bad_minutes",
2628
"slo_status",
2729
"error_budget_remaining",
2830
"burn_rate",
2931
"error_budget_burndown",
3032
}
3133
GOOD_EVENTS: ClassVar["FormulaAndFunctionSLOMeasure"]
3234
BAD_EVENTS: ClassVar["FormulaAndFunctionSLOMeasure"]
35+
GOOD_MINUTES: ClassVar["FormulaAndFunctionSLOMeasure"]
36+
BAD_MINUTES: ClassVar["FormulaAndFunctionSLOMeasure"]
3337
SLO_STATUS: ClassVar["FormulaAndFunctionSLOMeasure"]
3438
ERROR_BUDGET_REMAINING: ClassVar["FormulaAndFunctionSLOMeasure"]
3539
BURN_RATE: ClassVar["FormulaAndFunctionSLOMeasure"]
@@ -44,6 +48,8 @@ def openapi_types(_):
4448

4549
FormulaAndFunctionSLOMeasure.GOOD_EVENTS = FormulaAndFunctionSLOMeasure("good_events")
4650
FormulaAndFunctionSLOMeasure.BAD_EVENTS = FormulaAndFunctionSLOMeasure("bad_events")
51+
FormulaAndFunctionSLOMeasure.GOOD_MINUTES = FormulaAndFunctionSLOMeasure("good_minutes")
52+
FormulaAndFunctionSLOMeasure.BAD_MINUTES = FormulaAndFunctionSLOMeasure("bad_minutes")
4753
FormulaAndFunctionSLOMeasure.SLO_STATUS = FormulaAndFunctionSLOMeasure("slo_status")
4854
FormulaAndFunctionSLOMeasure.ERROR_BUDGET_REMAINING = FormulaAndFunctionSLOMeasure("error_budget_remaining")
4955
FormulaAndFunctionSLOMeasure.BURN_RATE = FormulaAndFunctionSLOMeasure("burn_rate")

0 commit comments

Comments
 (0)