Sha256: 9d2cd6d740d4a9a0beddcd9a789211f098d5abf9d8eb3697b0a2550fe6418bb3

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

# Upload Custom Costs file returns "Accepted" response

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

body = [
  DatadogAPIClient::V2::CustomCostsFileLineItem.new({
    billed_cost: 100.5,
    billing_currency: "USD",
    charge_description: "Monthly usage charge for my service",
    charge_period_end: "2023-02-28",
    charge_period_start: "2023-02-01",
  }),
]
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.rb
datadog_api_client-2.28.1 examples/v2/cloud-cost-management/UploadCustomCostsFile.rb
datadog_api_client-2.27.1 examples/v2/cloud-cost-management/UploadCustomCostsFile.rb
datadog_api_client-2.26.1 examples/v2/cloud-cost-management/UploadCustomCostsFile.rb
datadog_api_client-2.26.0 examples/v2/cloud-cost-management/UploadCustomCostsFile.rb
datadog_api_client-2.25.0 examples/v2/cloud-cost-management/UploadCustomCostsFile.rb