Sha256: 11e1ef83acf90c50692db7dfe29e0903c6f3b443648aefd9a2b002dc8de7f217

Contents?: true

Size: 509 Bytes

Versions: 6

Compression:

Stored size: 509 Bytes

Contents

# Upload Custom Costs File returns "Accepted" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new

body = [
  DatadogAPIClient::V2::CustomCostsFileLineItem.new({
    provider_name: "my_provider",
    charge_period_start: "2023-05-06",
    charge_period_end: "2023-06-06",
    charge_description: "my_description",
    billed_cost: 250,
    billing_currency: "USD",
    tags: {
      key: "value",
    },
  }),
]
p api_instance.upload_custom_costs_file(body)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb
datadog_api_client-2.28.1 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb
datadog_api_client-2.27.1 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb
datadog_api_client-2.26.1 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb
datadog_api_client-2.26.0 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb
datadog_api_client-2.25.0 examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb