Public Types | |
| enum | MetricSubtype |
| Metric subtype. More... | |
| enum | MetricType |
| Metric type. More... | |
| enum | RollupOperation |
| Rollup Operation. More... | |
Public Member Functions | |
| virtual double | as_double (size_t instance)=0 |
| Get a value from the metric list as double. | |
| virtual double | as_double ()=0 |
| Get the metric value as double. | |
| virtual const char * | as_string (size_t instance)=0 |
| Get a value from the metric list as string. | |
| virtual const char * | as_string ()=0 |
| Get the metric value as string. | |
| virtual uint64_t | as_uint64 (size_t instance)=0 |
| Get a value from the metric list as 64bit integer. | |
| virtual uint64_t | as_uint64 ()=0 |
| Get the metric value as 64bit integer. | |
| virtual Description | description () const =0 |
| Get the metric description. | |
| virtual bool | has_value (ValueKind value_kind)=0 |
| Check if the metric has a value of a specific kind. | |
| virtual bool | has_value ()=0 |
| Check if the metric has a non-instanced value. | |
| virtual ValueKind | kind (size_t instance)=0 |
| Get the metric list entry value kind. | |
| virtual ValueKind | kind ()=0 |
| Get the metric value kind. | |
| virtual MetricSubtype | metric_subtype () const =0 |
| Get the metric subtype. | |
| virtual MetricType | metric_type () const =0 |
| Get the metric type. | |
| virtual const char * | name ()=0 |
| Get the metric name. | |
| virtual size_t | num_instances ()=0 |
| Get the number of values in the metric list. | |
| virtual RollupOperation | rollup_operation () const =0 |
| Get the type of rollup operation. | |
| virtual Unit | unit () const =0 |
| Get the metric unit. | |
Indicates the subtype of the metric. Subtypes only apply to hardware metrics. Other metric types have subtype None in Python.
Indicates the type of the metric. May take values COUNTER, RATIO or THROUGHPUT for hardware metrics, and OTHER for all other types (e.g. launch metrics, device attributes).
Indicates the type of operation that is used to accumulate multiple values of a given metric. May take values AVG, MAX, MIN and SUM, as well as None, if no such operation is specified.
| virtual double NV::Rules::IMetric::as_double | ( | size_t | instance | ) | [pure virtual] |
Get a value instance from the metric list as double
| virtual double NV::Rules::IMetric::as_double | ( | ) | [pure virtual] |
Get the metric value as double
| virtual const char* NV::Rules::IMetric::as_string | ( | size_t | instance | ) | [pure virtual] |
Get a value instance from the metric list as string
| virtual const char* NV::Rules::IMetric::as_string | ( | ) | [pure virtual] |
Get the metric value as string
| virtual uint64_t NV::Rules::IMetric::as_uint64 | ( | size_t | instance | ) | [pure virtual] |
Get a value instance from the metric list as 64bit integer
| virtual uint64_t NV::Rules::IMetric::as_uint64 | ( | ) | [pure virtual] |
Get the metric value as 64bit integer
| virtual Description NV::Rules::IMetric::description | ( | ) | const [pure virtual] |
Get a textual description of the metric
| virtual bool NV::Rules::IMetric::has_value | ( | ValueKind | value_kind | ) | [pure virtual] |
Check if the metric has a value of a specific value_kind
| virtual bool NV::Rules::IMetric::has_value | ( | ) | [pure virtual] |
Check if the metric has a non-instanced value. If true, the metric may still have instance values, too.
| virtual ValueKind NV::Rules::IMetric::kind | ( | size_t | instance | ) | [pure virtual] |
Get the metric list entry value kind
| virtual ValueKind NV::Rules::IMetric::kind | ( | ) | [pure virtual] |
Get the metric value kind
| virtual MetricSubtype NV::Rules::IMetric::metric_subtype | ( | ) | const [pure virtual] |
Get the metric subtype
| virtual MetricType NV::Rules::IMetric::metric_type | ( | ) | const [pure virtual] |
Get the metric type
| virtual const char* NV::Rules::IMetric::name | ( | ) | [pure virtual] |
Get the metric name
| virtual size_t NV::Rules::IMetric::num_instances | ( | ) | [pure virtual] |
Get the number of values in the metric list
| virtual RollupOperation NV::Rules::IMetric::rollup_operation | ( | ) | const [pure virtual] |
Get the type of rollup operation
| virtual Unit NV::Rules::IMetric::unit | ( | ) | const [pure virtual] |
Get the metric unit
1.5.8