Sha256: c8f0e6debab4a02ec011916f59acd4942dd3455c078934f9b99fc27906d0a429
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
require "datadog_api_client" DatadogAPIClient::V1.configure do |config| config.unstable_operations[:get_daily_custom_reports] = true end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { page_size: 789, # Integer | The number of files to return in the response. `[default=60]`. page_number: 789, # Integer | The identifier of the first page to return. This parameter is used for the pagination feature `[default=0]`. sort_dir: DatadogAPIClient::V1::UsageSortDirection::DESC, # UsageSortDirection | The direction to sort by: `[desc, asc]`. sort: DatadogAPIClient::V1::UsageSort::COMPUTED_ON, # UsageSort | The field to sort by: `[computed_on, size, start_date, end_date]`. } begin # Get the list of available daily custom reports result = api_instance.get_daily_custom_reports(opts) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling UsageMeteringAPI->get_daily_custom_reports: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/usage-metering/GetDailyCustomReports.rb |