Skip to content

Commit b43b999

Browse files
committed
feat: update volc observe
1 parent fa94e58 commit b43b999

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

volcenginesdkvolcobserve/models/get_metric_data_request.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class GetMetricDataRequest(object):
3434
"""
3535
swagger_types = {
3636
'end_time': 'int',
37+
'group_by': 'list[str]',
3738
'instances': 'list[InstanceForGetMetricDataInput]',
3839
'metric_name': 'str',
3940
'namespace': 'str',
@@ -44,6 +45,7 @@ class GetMetricDataRequest(object):
4445

4546
attribute_map = {
4647
'end_time': 'EndTime',
48+
'group_by': 'GroupBy',
4749
'instances': 'Instances',
4850
'metric_name': 'MetricName',
4951
'namespace': 'Namespace',
@@ -52,13 +54,14 @@ class GetMetricDataRequest(object):
5254
'sub_namespace': 'SubNamespace'
5355
}
5456

55-
def __init__(self, end_time=None, instances=None, metric_name=None, namespace=None, period=None, start_time=None, sub_namespace=None, _configuration=None): # noqa: E501
57+
def __init__(self, end_time=None, group_by=None, instances=None, metric_name=None, namespace=None, period=None, start_time=None, sub_namespace=None, _configuration=None): # noqa: E501
5658
"""GetMetricDataRequest - a model defined in Swagger""" # noqa: E501
5759
if _configuration is None:
5860
_configuration = Configuration()
5961
self._configuration = _configuration
6062

6163
self._end_time = None
64+
self._group_by = None
6265
self._instances = None
6366
self._metric_name = None
6467
self._namespace = None
@@ -69,6 +72,8 @@ def __init__(self, end_time=None, instances=None, metric_name=None, namespace=No
6972

7073
if end_time is not None:
7174
self.end_time = end_time
75+
if group_by is not None:
76+
self.group_by = group_by
7277
if instances is not None:
7378
self.instances = instances
7479
if metric_name is not None:
@@ -103,6 +108,27 @@ def end_time(self, end_time):
103108

104109
self._end_time = end_time
105110

111+
@property
112+
def group_by(self):
113+
"""Gets the group_by of this GetMetricDataRequest. # noqa: E501
114+
115+
116+
:return: The group_by of this GetMetricDataRequest. # noqa: E501
117+
:rtype: list[str]
118+
"""
119+
return self._group_by
120+
121+
@group_by.setter
122+
def group_by(self, group_by):
123+
"""Sets the group_by of this GetMetricDataRequest.
124+
125+
126+
:param group_by: The group_by of this GetMetricDataRequest. # noqa: E501
127+
:type: list[str]
128+
"""
129+
130+
self._group_by = group_by
131+
106132
@property
107133
def instances(self):
108134
"""Gets the instances of this GetMetricDataRequest. # noqa: E501

0 commit comments

Comments
 (0)