MetricDetail#
- class MetricDetail(metric_name=None, metric_display_name=None, unit=None, trigger_wait_time=None, trigger_time=None, comparison_operator=None, condition_type=None, metric_category=None, data_type=None, threshold_value=None, metric_value=None, *args, **kwargs)[source]#
Bases:
object
- Parameters:
metric_name – (
metric_name
) The metric key. Allowed values of metrics list can be found at https://portal.nutanix.com/page/documents/details?targetId=Prism-Central-Guide-vpc_2022_9:mul-alerts-user-created-metrics-r.htmlmetric_display_name – (
metric_display_name
) English readable name of the metric.unit – (
unit
) Unit of the metric. For example, percentage, ms, usecs and so on.trigger_wait_time – (
trigger_wait_time
) How long the metric breached the given condition before raising an event.trigger_time – (
trigger_time
) The time in ISO 8601 format when the event was triggered.comparison_operator – (
comparison_operator
)condition_type – (
condition_type
)metric_category – (
metric_category
) Broad category under which this metric falls. For example, Disk, CPU, Memory and so on.data_type – (
data_type
)threshold_value – (
threshold_value
) The threshold value that was used for the condition evaluation.metric_value – (
metric_value
) Raw value of the metric when the condition threshold was exceeded.
- property comparison_operator#
- Type:
- property condition_type#
- Type:
- property metric_category#
Broad category under which this metric falls. For example, Disk, CPU, Memory and so on.
- Type:
str
- property metric_display_name#
English readable name of the metric.
- Type:
str
- property metric_name#
The metric key. Allowed values of metrics list can be found at https://portal.nutanix.com/page/documents/details?targetId=Prism-Central-Guide-vpc_2022_9:mul-alerts-user-created-metrics-r.html
- Type:
str
- property metric_value#
Raw value of the metric when the condition threshold was exceeded.
- Type:
- property threshold_value#
The threshold value that was used for the condition evaluation.
- Type:
- property trigger_time#
The time in ISO 8601 format when the event was triggered.
- Type:
datetime
- property trigger_wait_time#
How long the metric breached the given condition before raising an event.
- Type:
int
- property unit#
Unit of the metric. For example, percentage, ms, usecs and so on.
- Type:
str