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:
property comparison_operator#
Type:

ComparisonOperator

property condition_type#
Type:

ConditionType

property data_type#
Type:

DataType

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:

StringValue | BoolValue | DoubleValue | IntValue

property threshold_value#

The threshold value that was used for the condition evaluation.

Type:

StringValue | BoolValue | DoubleValue | IntValue

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model

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