bittensor.core.chain_data.prometheus_info#

Classes#

PrometheusInfo

Dataclass representing information related to Prometheus.

Module Contents#

class bittensor.core.chain_data.prometheus_info.PrometheusInfo[source]#

Dataclass representing information related to Prometheus.

Variables:
  • block (int) – The block number associated with the Prometheus data.

  • version (int) – The version of the Prometheus data.

  • ip (str) – The IP address associated with Prometheus.

  • port (int) – The port number for Prometheus.

  • ip_type (int) – The type of IP address (e.g., IPv4, IPv6).

block: int#
version: int#
ip: str#
port: int#
ip_type: int#
classmethod fix_decoded_values(prometheus_info_decoded)[source]#

Returns a PrometheusInfo object from a prometheus_info_decoded dictionary.

Parameters:

prometheus_info_decoded (dict)

Return type:

PrometheusInfo