Sha256: 9500316857b17dcf62e5be0ac2c2fa5e62d70f94e16d55bafcc9f01da34ce978
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
# Update a rum-based metric returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::RumMetricsAPI.new # there is a valid "rum_metric" in the system RUM_METRIC_DATA_ID = ENV["RUM_METRIC_DATA_ID"] body = DatadogAPIClient::V2::RumMetricUpdateRequest.new({ data: DatadogAPIClient::V2::RumMetricUpdateData.new({ id: RUM_METRIC_DATA_ID, type: DatadogAPIClient::V2::RumMetricType::RUM_METRICS, attributes: DatadogAPIClient::V2::RumMetricUpdateAttributes.new({ compute: DatadogAPIClient::V2::RumMetricUpdateCompute.new({ include_percentiles: false, }), filter: DatadogAPIClient::V2::RumMetricFilter.new({ query: "@service:rum-config", }), group_by: [ DatadogAPIClient::V2::RumMetricGroupBy.new({ path: "@browser.version", tag_name: "browser_version", }), ], }), }), }) p api_instance.update_rum_metric(RUM_METRIC_DATA_ID, body)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v2/rum-metrics/UpdateRumMetric.rb |
datadog_api_client-2.28.1 | examples/v2/rum-metrics/UpdateRumMetric.rb |