View Source Hui.Query.Metrics (Hui v0.11.0)

Struct for querying metrics.

See: Metrics API.

example

Example

iex> x = %Hui.Query.Metrics{group: "core", type: "timer", property: ["mean_ms", "max_ms", "p99_ms"], wt: "xml"}
%Hui.Query.Metrics{
  compact: nil,
  group: "core",
  key: nil,
  prefix: nil,
  property: ["mean_ms", "max_ms", "p99_ms"],
  regex: nil,
  type: "timer",
  wt: "xml"
}
iex>  x |> Hui.Encoder.encode
"group=core&property=mean_ms&property=max_ms&property=p99_ms&type=timer&wt=xml"

Link to this section Summary

Types

t()

Struct for metrics query.

Link to this section Types

@type t() :: %Hui.Query.Metrics{
  compact: boolean(),
  group: binary(),
  key: binary() | [binary()],
  prefix: binary(),
  property: binary() | [binary()],
  regex: binary(),
  type: binary(),
  wt: binary()
}

Struct for metrics query.

Link to this section Functions