MetricsAggregationRange¶
- class oci.database_management.models.MetricsAggregationRange(**kwargs)¶
Bases:
objectThe set of aggregated data returned for a metric.
Methods:
__init__(**kwargs)Initializes a new MetricsAggregationRange object with values from keyword arguments.
Attributes:
Gets the header of this MetricsAggregationRange.
Gets the metrics of this MetricsAggregationRange.
Gets the range_end_time_in_epoch_seconds of this MetricsAggregationRange.
Gets the range_start_time_in_epoch_seconds of this MetricsAggregationRange.
- __init__(**kwargs)¶
Initializes a new MetricsAggregationRange object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
header (oci.database_management.models.DbManagementAnalyticsMetric) – The value to assign to the header property of this MetricsAggregationRange.
metrics (list[oci.database_management.models.DbManagementAnalyticsMetric]) – The value to assign to the metrics property of this MetricsAggregationRange.
range_start_time_in_epoch_seconds (int) – The value to assign to the range_start_time_in_epoch_seconds property of this MetricsAggregationRange.
range_end_time_in_epoch_seconds (int) – The value to assign to the range_end_time_in_epoch_seconds property of this MetricsAggregationRange.
- property header¶
Gets the header of this MetricsAggregationRange.
- Returns
The header of this MetricsAggregationRange.
- Return type
- property metrics¶
Gets the metrics of this MetricsAggregationRange. The list of metrics returned for the specified request. Each of the metrics has a metricName and additional properties like metadata, dimensions. If a property is not set, then use the value from header.
Suppose m be an item in the metrics array: - If m.metricName is not set, use header.metricName instead - If m.durationInSeconds is not set, use header.durationInSeconds instead - If m.dimensions is not set, use header.dimensions instead - If m.metadata is not set, use header.metadata instead
- Returns
The metrics of this MetricsAggregationRange.
- Return type
list[oci.database_management.models.DbManagementAnalyticsMetric]
- property range_end_time_in_epoch_seconds¶
Gets the range_end_time_in_epoch_seconds of this MetricsAggregationRange. The end of the time range (exclusive) of the returned metric data.
- Returns
The range_end_time_in_epoch_seconds of this MetricsAggregationRange.
- Return type
int
- property range_start_time_in_epoch_seconds¶
Gets the range_start_time_in_epoch_seconds of this MetricsAggregationRange. The beginning of the time range (inclusive) of the returned metric data.
- Returns
The range_start_time_in_epoch_seconds of this MetricsAggregationRange.
- Return type
int