Packages

Elixir client for the S2 durable stream API

Current section

Files

Jump to
s2_client lib s2 schemas label_metric.ex
Raw

lib/s2/schemas/label_metric.ex

defmodule S2.LabelMetric do
@moduledoc """
Provides struct and type for a LabelMetric
"""
@type t :: %__MODULE__{name: String.t(), values: [String.t()]}
defstruct [:name, :values]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[name: :string, values: [:string]]
end
end