Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.51 KB

DependentMetricOrMetricGroupRep.md

File metadata and controls

32 lines (26 loc) · 1.51 KB

LaunchDarklyApi::DependentMetricOrMetricGroupRep

Properties

Name Type Description Notes
key String A unique key to reference the metric or metric group
_version_id String The version ID of the metric or metric group
name String A human-friendly name for the metric or metric group
kind String If this is a metric, then it represents the kind of event the metric tracks. If this is a metric group, then it represents the group type
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]
_links Hash<String, Link> The location and content type of related resources
is_group Boolean Whether this is a metric group or a metric
metrics Array<MetricInGroupRep> An ordered list of the metrics in this metric group [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::DependentMetricOrMetricGroupRep.new(
  key: metric-key-123abc,
  _version_id: null,
  name: My metric,
  kind: custom,
  is_numeric: true,
  _links: {&quot;self&quot;:{&quot;href&quot;:&quot;/api/v2/metrics/my-project/my-metric&quot;,&quot;type&quot;:&quot;application/json&quot;}},
  is_group: null,
  metrics: null
)