MetricsQueryResult Class
The response to a metrics query.
Constructor
MetricsQueryResult(**kwargs: Any)
Attributes
cost
The integer value representing the cost of the query, for data case.
cost: int | None = None
granularity
The granularity (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
granularity: timedelta | None = None
metrics
Required. The value of the collection.
metrics: List[Metric]
namespace
The namespace of the metrics that has been queried.
namespace: str | None = None
resource_region
The region of the resource that has been queried for metrics.
resource_region: str | None = None
timespan
Required. The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
timespan: str