1616
1717if TYPE_CHECKING :
1818 from datadog_api_client .v1 .model .slo_raw_error_budget_remaining import SLORawErrorBudgetRemaining
19+ from datadog_api_client .v1 .model .slo_state import SLOState
1920 from datadog_api_client .v1 .model .slo_timeframe import SLOTimeframe
2021
2122
2223class SLOOverallStatuses (ModelNormal ):
2324 @cached_property
2425 def openapi_types (_ ):
2526 from datadog_api_client .v1 .model .slo_raw_error_budget_remaining import SLORawErrorBudgetRemaining
27+ from datadog_api_client .v1 .model .slo_state import SLOState
2628 from datadog_api_client .v1 .model .slo_timeframe import SLOTimeframe
2729
2830 return {
2931 "error" : (str , none_type ),
32+ "error_budget_remaining" : (float , none_type ),
3033 "indexed_at" : (int ,),
3134 "raw_error_budget_remaining" : (SLORawErrorBudgetRemaining ,),
32- "span_precision" : (int ,),
35+ "span_precision" : (int , none_type ),
36+ "state" : (SLOState ,),
3337 "status" : (float , none_type ),
3438 "target" : (float ,),
3539 "timeframe" : (SLOTimeframe ,),
3640 }
3741
3842 attribute_map = {
3943 "error" : "error" ,
44+ "error_budget_remaining" : "error_budget_remaining" ,
4045 "indexed_at" : "indexed_at" ,
4146 "raw_error_budget_remaining" : "raw_error_budget_remaining" ,
4247 "span_precision" : "span_precision" ,
48+ "state" : "state" ,
4349 "status" : "status" ,
4450 "target" : "target" ,
4551 "timeframe" : "timeframe" ,
@@ -48,9 +54,11 @@ def openapi_types(_):
4854 def __init__ (
4955 self_ ,
5056 error : Union [str , none_type , UnsetType ] = unset ,
57+ error_budget_remaining : Union [float , none_type , UnsetType ] = unset ,
5158 indexed_at : Union [int , UnsetType ] = unset ,
52- raw_error_budget_remaining : Union [SLORawErrorBudgetRemaining , UnsetType ] = unset ,
53- span_precision : Union [int , UnsetType ] = unset ,
59+ raw_error_budget_remaining : Union [SLORawErrorBudgetRemaining , none_type , UnsetType ] = unset ,
60+ span_precision : Union [int , none_type , UnsetType ] = unset ,
61+ state : Union [SLOState , UnsetType ] = unset ,
5462 status : Union [float , none_type , UnsetType ] = unset ,
5563 target : Union [float , UnsetType ] = unset ,
5664 timeframe : Union [SLOTimeframe , UnsetType ] = unset ,
@@ -62,15 +70,21 @@ def __init__(
6270 :param error: Error message if SLO status or error budget could not be calculated.
6371 :type error: str, none_type, optional
6472
73+ :param error_budget_remaining: Remaining error budget of the SLO in percentage.
74+ :type error_budget_remaining: float, none_type, optional
75+
6576 :param indexed_at: timestamp (UNIX time in seconds) of when the SLO status and error budget
6677 were calculated.
6778 :type indexed_at: int, optional
6879
6980 :param raw_error_budget_remaining: Error budget remaining for an SLO.
70- :type raw_error_budget_remaining: SLORawErrorBudgetRemaining, optional
81+ :type raw_error_budget_remaining: SLORawErrorBudgetRemaining, none_type, optional
7182
7283 :param span_precision: The amount of decimal places the SLI value is accurate to.
73- :type span_precision: int, optional
84+ :type span_precision: int, none_type, optional
85+
86+ :param state: State of the SLO.
87+ :type state: SLOState, optional
7488
7589 :param status: The status of the SLO.
7690 :type status: float, none_type, optional
@@ -83,12 +97,16 @@ def __init__(
8397 """
8498 if error is not unset :
8599 kwargs ["error" ] = error
100+ if error_budget_remaining is not unset :
101+ kwargs ["error_budget_remaining" ] = error_budget_remaining
86102 if indexed_at is not unset :
87103 kwargs ["indexed_at" ] = indexed_at
88104 if raw_error_budget_remaining is not unset :
89105 kwargs ["raw_error_budget_remaining" ] = raw_error_budget_remaining
90106 if span_precision is not unset :
91107 kwargs ["span_precision" ] = span_precision
108+ if state is not unset :
109+ kwargs ["state" ] = state
92110 if status is not unset :
93111 kwargs ["status" ] = status
94112 if target is not unset :
0 commit comments