Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.77 KB

File metadata and controls

36 lines (30 loc) · 1.77 KB

LaunchDarklyApi::MetricInGroupRep

Properties

Name Type Description Notes
key String The metric key
_version_id String The version ID of the metric [optional]
name String The metric name
kind String The kind of event the metric tracks
is_numeric Boolean For custom metrics, whether to track numeric changes in value against a baseline (<code>true</code>) or to track a conversion when an end user takes an action (<code>false</code>). [optional]
unit_aggregation_type String The type of unit aggregation to use for the metric [optional]
event_key String The event key sent with the metric. Only relevant for custom metrics. [optional]
_links Hash<String, Link> The location and content type of related resources
name_in_group String Name of the metric when used within the associated metric group. Can be different from the original name of the metric. Required if and only if the metric group is a <code>funnel</code>. [optional]
randomization_units Array<String> The randomization units for the metric [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::MetricInGroupRep.new(
  key: metric-key-123abc,
  _version_id: version-id-123abc,
  name: Example metric,
  kind: custom,
  is_numeric: true,
  unit_aggregation_type: sum,
  event_key: event-key-123abc,
  _links: {&quot;self&quot;:{&quot;href&quot;:&quot;/api/v2/metrics/my-project/my-metric&quot;,&quot;type&quot;:&quot;application/json&quot;}},
  name_in_group: Step 1,
  randomization_units: [&quot;user&quot;]
)