examples/v2/metrics/SubmitMetrics.rb in datadog_api_client-1.11.0 vs examples/v2/metrics/SubmitMetrics.rb in datadog_api_client-2.0.0

- old
+ new

@@ -12,9 +12,15 @@ DatadogAPIClient::V2::MetricPoint.new({ timestamp: Time.now.to_i, value: 0.7, }), ], + resources: [ + DatadogAPIClient::V2::MetricResource.new({ + name: "dummyhost", + type: "host", + }), + ], }), ], }) p api_instance.submit_metrics(body)