View Source SplitClient.Treatment (SplitClient v0.1.0)

A structured way to represent Split.io treatment data. This respresents the treatment the user should receive based on the parameters given to Split.io

fields

Fields

  • split_name - The name of the Split the treatment applies to. Split names are unique even if they are associated with a different traffic type
  • treatment - Which treatment to apply (e.g. "on"/"off")
  • config - Optional. Extra configuration that applies to the treatment (e.g. %{color: "blue"})

Link to this section Summary

Link to this section Types

@type t() :: %SplitClient.Treatment{
  config: map() | nil,
  split_name: String.t() | nil,
  treatment: any() | nil
}

Link to this section Functions

@spec new(fields :: keyword() | map()) :: t()