IceMX.MetricsAdminPrx¶
- class IceMX.MetricsAdminPrx¶
Bases:
ObjectPrxThe metrics administrative facet interface. This interface allows remote administrative clients to access the metrics of an application that enabled the Ice administrative facility and configured one or more metrics views.
Notes
The Slice compiler generated this proxy class from Slice interface
::IceMX::MetricsAdmin.- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) MetricsAdminPrx | None¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- static checkedCastAsync(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) Awaitable[MetricsAdminPrx | None]¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- disableMetricsView(name: str, context: dict[str, str] | None = None) None¶
Disables a metrics view.
- Parameters:
- Raises:
UnknownMetricsView – Thrown when the metrics view cannot be found.
- Return type:
None
- disableMetricsViewAsync(name: str, context: dict[str, str] | None = None) Awaitable[None]¶
Disables a metrics view.
- enableMetricsView(name: str, context: dict[str, str] | None = None) None¶
Enables a metrics view.
- Parameters:
- Raises:
UnknownMetricsView – Thrown when the metrics view cannot be found.
- Return type:
None
- enableMetricsViewAsync(name: str, context: dict[str, str] | None = None) Awaitable[None]¶
Enables a metrics view.
- getMapMetricsFailures(view: str, map: str, context: dict[str, str] | None = None) list[MetricsFailures]¶
Gets the metrics failures associated with the given
viewandmap.- Parameters:
- Returns:
The metrics failures associated with the map.
- Return type:
- Raises:
UnknownMetricsView – Thrown when the metrics view cannot be found.
- getMapMetricsFailuresAsync(view: str, map: str, context: dict[str, str] | None = None) Awaitable[list[MetricsFailures]]¶
Gets the metrics failures associated with the given
viewandmap.
- getMetricsFailures(view: str, map: str, id: str, context: dict[str, str] | None = None) MetricsFailures¶
Gets the metrics failure associated for the given metrics.
- Parameters:
- Returns:
The metrics failures associated with the metrics.
- Return type:
- Raises:
UnknownMetricsView – Thrown when the metrics view cannot be found.
- getMetricsFailuresAsync(view: str, map: str, id: str, context: dict[str, str] | None = None) Awaitable[MetricsFailures]¶
Gets the metrics failure associated for the given metrics.
- getMetricsView(view: str, context: dict[str, str] | None = None) tuple[dict[str, list[Metrics | None]], int]¶
Gets the metrics objects for the given metrics view.
- Parameters:
- Returns:
- A tuple containing:
dict[str, list[Metrics | None]] The metrics view data, a dictionary of metric maps for each metrics class configured with the view. The
timestampallows the client to compute averages which are not dependent of the invocation latency for this operation.int The local time of the process when the metrics objects were retrieved.
- Return type:
- Raises:
UnknownMetricsView – Thrown when the metrics view cannot be found.
- getMetricsViewAsync(view: str, context: dict[str, str] | None = None) Awaitable[tuple[dict[str, list[Metrics | None]], int]]¶
Gets the metrics objects for the given metrics view.
- Parameters:
- Returns:
- A tuple containing:
dict[str, list[Metrics | None]] The metrics view data, a dictionary of metric maps for each metrics class configured with the view. The
timestampallows the client to compute averages which are not dependent of the invocation latency for this operation.int The local time of the process when the metrics objects were retrieved.
- Return type:
- getMetricsViewNames(context: dict[str, str] | None = None) tuple[list[str], list[str]]¶
Gets the names of enabled and disabled metrics.
- getMetricsViewNamesAsync(context: dict[str, str] | None = None) Awaitable[tuple[list[str], list[str]]]¶
Gets the names of enabled and disabled metrics.
- static ice_staticId() str¶
Gets the Slice type ID of the interface associated with this proxy.
- Returns:
The type ID, “::Ice::Object”.
- Return type: