metrics

class opensearchpy.Metrics[source]

Bases: ABC

The Metrics class defines methods and properties for managing request metrics, including start time, end time, and service time, serving as a blueprint for concrete implementations.

class opensearchpy.MetricsEvents[source]

Bases: Metrics

The MetricsEvents class implements the Metrics abstract base class and tracks metrics such as start time, end time, and service time during request processing.

class opensearchpy.MetricsNone[source]

Bases: Metrics

Default metrics class. It sets the start time, end time, and service time to None.