ClientMessage

zio.metrics.connectors.insight.ClientMessage$
See theClientMessage companion trait

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class AvailableMetrics(keys: Set[MetricKeyWithId]) extends ClientMessage

A message sent by the server to announce the metrics currently available.

A message sent by the server to announce the metrics currently available.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class InsightMetricState(id: UUID, key: MetricKey[Any], state: MetricState[Any], timestamp: Instant)

The extended metric state that the insight connector is tracking, which also allows us to provide a nicer API.

The extended metric state that the insight connector is tracking, which also allows us to provide a nicer API.

Attributes

id

The UUID of the metric.

key

The key of the metric.

state

The state of the metric.

timestamp

The timestamp of when the metric was emitted.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class MetricKeyWithId(id: UUID, key: MetricKey[Any])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class MetricsResponse(states: Set[InsightMetricState]) extends ClientMessage

A response sent by the server for a selection of metrics requested by the client

A response sent by the server for a selection of metrics requested by the client

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class MetricsSelection(selection: Set[UUID])

A selection of metric UUIDs

A selection of metric UUIDs

Attributes

selection

A set of UUIDs

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Implicits

Implicits

implicit lazy val decAMetricKeyWithId: JsonDecoder[MetricKeyWithId]
implicit lazy val decAvailableMetrics: JsonDecoder[AvailableMetrics]
implicit lazy val decClientMessage: JsonDecoder[ClientMessage]
implicit lazy val decInsightMetricState: JsonDecoder[InsightMetricState]
implicit lazy val decMetricsResponse: JsonDecoder[MetricsResponse]
implicit lazy val decMetricsSelection: JsonDecoder[MetricsSelection]
implicit lazy val encAvailableMetrics: JsonEncoder[AvailableMetrics]
implicit lazy val encClientMessage: JsonEncoder[ClientMessage]
implicit lazy val encInsightMetricState: JsonEncoder[InsightMetricState]
implicit lazy val encMetricKeyWithId: JsonEncoder[MetricKeyWithId]
implicit lazy val encMetricsResponse: JsonEncoder[MetricsResponse]
implicit lazy val encMetricsSelection: JsonEncoder[MetricsSelection]