Metric

class pyniryo_nate.models.metrics.Metric(name: str, value: str, type: type)[source]

Bases: object

Represents a custom metric.

Parameters:
  • name (str) – The name of the metric.

  • value (str) – The value of the metric as a string.

  • type (type) – The Python type of the metric value.

Attributes

Methods

name: str
value: str
type: type
classmethod from_transport_model(tr_metric: CustomMetric | CustomMetric) → Metric[source]
Parameters:

tr_metric (CustomMetric | CustomMetric)

Return type:

Metric

to_transport_model(a: bool = False) → CustomMetric | CustomMetric[source]
Parameters:

a (bool)

Return type:

CustomMetric | CustomMetric