-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 4569968f of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jun 9, 2022
1 parent
e9322b1
commit a4d4041
Showing
13 changed files
with
755 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Submit distribution points returns "Payload accepted" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V1::MetricsAPI.new | ||
|
||
body = DatadogAPIClient::V1::DistributionPointsPayload.new({ | ||
series: [ | ||
DatadogAPIClient::V1::DistributionPointsSeries.new({ | ||
metric: "system.load.1.dist", | ||
points: [ | ||
[ | ||
Time.now, | ||
[ | ||
1.0, | ||
2.0, | ||
], | ||
], | ||
], | ||
}), | ||
], | ||
}) | ||
p api_instance.submit_distribution_points(body) |
25 changes: 25 additions & 0 deletions
25
examples/v1/metrics/SubmitDistributionPoints_3109558960.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Submit deflate distribution points returns "Payload accepted" response | ||
|
||
require "datadog_api_client" | ||
api_instance = DatadogAPIClient::V1::MetricsAPI.new | ||
|
||
body = DatadogAPIClient::V1::DistributionPointsPayload.new({ | ||
series: [ | ||
DatadogAPIClient::V1::DistributionPointsSeries.new({ | ||
metric: "system.load.1.dist", | ||
points: [ | ||
[ | ||
Time.now, | ||
[ | ||
1.0, | ||
2.0, | ||
], | ||
], | ||
], | ||
}), | ||
], | ||
}) | ||
opts = { | ||
content_encoding: DistributionPointsContentEncoding::DEFLATE, | ||
} | ||
p api_instance.submit_distribution_points(body, opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.