33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import TYPE_CHECKING
6+ from typing import Union , TYPE_CHECKING
77
88from datadog_api_client .model_utils import (
99 ModelNormal ,
1010 cached_property ,
11+ unset ,
12+ UnsetType ,
1113)
1214
1315
@@ -29,21 +31,33 @@ def openapi_types(_):
2931 from datadog_api_client .v1 .model .widget_live_span_unit import WidgetLiveSpanUnit
3032
3133 return {
34+ "hide_incomplete_cost_data" : (bool ,),
3235 "type" : (WidgetNewLiveSpanType ,),
3336 "unit" : (WidgetLiveSpanUnit ,),
3437 "value" : (int ,),
3538 }
3639
3740 attribute_map = {
41+ "hide_incomplete_cost_data" : "hide_incomplete_cost_data" ,
3842 "type" : "type" ,
3943 "unit" : "unit" ,
4044 "value" : "value" ,
4145 }
4246
43- def __init__ (self_ , type : WidgetNewLiveSpanType , unit : WidgetLiveSpanUnit , value : int , ** kwargs ):
47+ def __init__ (
48+ self_ ,
49+ type : WidgetNewLiveSpanType ,
50+ unit : WidgetLiveSpanUnit ,
51+ value : int ,
52+ hide_incomplete_cost_data : Union [bool , UnsetType ] = unset ,
53+ ** kwargs ,
54+ ):
4455 """
4556 Used for arbitrary live span times, such as 17 minutes or 6 hours.
4657
58+ :param hide_incomplete_cost_data: Whether to hide incomplete cost data in the widget.
59+ :type hide_incomplete_cost_data: bool, optional
60+
4761 :param type: Type "live" denotes a live span in the new format.
4862 :type type: WidgetNewLiveSpanType
4963
@@ -53,6 +67,8 @@ def __init__(self_, type: WidgetNewLiveSpanType, unit: WidgetLiveSpanUnit, value
5367 :param value: Value of the time span.
5468 :type value: int
5569 """
70+ if hide_incomplete_cost_data is not unset :
71+ kwargs ["hide_incomplete_cost_data" ] = hide_incomplete_cost_data
5672 super ().__init__ (kwargs )
5773
5874 self_ .type = type
0 commit comments