Sha256: a8186807b5e5436c2d4b45f6e10f49f248253811d59aa04f6132c2cb73c60dbb
Contents?: true
Size: 737 Bytes
Versions: 4
Compression:
Stored size: 737 Bytes
Contents
# Create a log-based metric returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new body = DatadogAPIClient::V2::LogsMetricCreateRequest.new({ data: DatadogAPIClient::V2::LogsMetricCreateData.new({ id: "Example-Create_a_log_based_metric_returns_OK_response", type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS, attributes: DatadogAPIClient::V2::LogsMetricCreateAttributes.new({ compute: DatadogAPIClient::V2::LogsMetricCompute.new({ aggregation_type: DatadogAPIClient::V2::LogsMetricComputeAggregationType::DISTRIBUTION, include_percentiles: true, path: "@duration", }), }), }), }) p api_instance.create_logs_metric(body)
Version data entries
4 entries across 4 versions & 1 rubygems