Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.2 KB

MetricV2Rep.md

File metadata and controls

30 lines (24 loc) · 1.2 KB

LaunchDarklyApi::MetricV2Rep

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]
_links Hash<String, Link> The location and content type of related resources

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::MetricV2Rep.new(
  key: metric-key-123abc,
  _version_id: version-id-123abc,
  name: Example metric,
  kind: custom,
  is_numeric: true,
  unit_aggregation_type: sum,
  _links: {&quot;self&quot;:{&quot;href&quot;:&quot;/api/v2/metrics/my-project/my-metric&quot;,&quot;type&quot;:&quot;application/json&quot;}}
)