pub struct BillingRecord {
pub amount: f64,
pub disk_space_billed_gb: Option<i32>,
pub endpoint_id: Option<String>,
pub gpu_type_id: Option<String>,
pub pod_id: Option<String>,
pub time: String,
pub time_billed_ms: Option<i64>,
}Expand description
Individual billing record containing usage and cost information.
Represents billing data for a specific time period and resource grouping. Contains both cost information and detailed usage metrics.
§Field Availability
Not all fields are populated for every record type:
disk_space_billed_gbandtime_billed_msmay not apply to all resource types- Resource ID fields (
pod_id,endpoint_id,gpu_type_id) depend on grouping strategy - Fields are omitted (serialized as null) when not applicable
Fields§
§amount: f64The amount charged for this group during the billing period, in USD. This is the total cost after applying any applicable discounts or credits.
disk_space_billed_gb: Option<i32>The amount of disk space billed for the billing period, in gigabytes (GB). Only applicable to certain resource types. Omitted when not applicable.
endpoint_id: Option<String>The endpoint ID when grouping by endpoint ID.
Only populated when using BillingGrouping::EndpointId.
gpu_type_id: Option<String>The GPU type ID when grouping by GPU type ID.
Only populated when using BillingGrouping::GpuTypeId.
pod_id: Option<String>The Pod ID when grouping by Pod ID.
Only populated when using BillingGrouping::PodId.
time: StringThe start timestamp of the period for which this billing record applies. Formatted as an ISO 8601 datetime string (e.g., “2023-01-01T00:00:00Z”).
time_billed_ms: Option<i64>The total time billed for the billing period, in milliseconds. Only applicable to time-based billing (e.g., compute resources). Omitted for storage-only resources.
Trait Implementations§
Source§impl Clone for BillingRecord
impl Clone for BillingRecord
Source§fn clone(&self) -> BillingRecord
fn clone(&self) -> BillingRecord
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more