pub struct NetworkVolumeBillingQuery {
pub bucket_size: Option<BucketSize>,
pub end_time: Option<String>,
pub network_volume_id: Option<String>,
pub start_time: Option<String>,
}Expand description
Query parameters for retrieving Network Volume billing history.
Network Volume billing is typically based on storage capacity and duration, with simpler filtering options compared to compute resources.
§Default Behavior
When fields are omitted:
bucket_size: Defaults toBucketSize::Day- Time range: Returns recent billing data (API-defined default period)
§Examples
use runpod_sdk::model::{NetworkVolumeBillingQuery, BucketSize};
// Query monthly billing for a specific Network Volume
let query = NetworkVolumeBillingQuery {
bucket_size: Some(BucketSize::Month),
network_volume_id: Some("agv6w2qcg7".to_string()),
start_time: Some("2023-01-01T00:00:00Z".to_string()),
end_time: Some("2023-12-31T23:59:59Z".to_string()),
};Fields§
§bucket_size: Option<BucketSize>The length of each billing time bucket. Determines how billing data is aggregated over time.
end_time: Option<String>The end date of the billing period to retrieve. Must be in ISO 8601 format (e.g., “2023-01-31T23:59:59Z”). If omitted, uses API default (typically current time).
network_volume_id: Option<String>Filter to a specific Network Volume by its unique identifier. When specified, only billing data for this Network Volume is returned.
start_time: Option<String>The start date of the billing period to retrieve. Must be in ISO 8601 format (e.g., “2023-01-01T00:00:00Z”). If omitted, uses API default (typically 30 days ago).
Trait Implementations§
Source§impl Clone for NetworkVolumeBillingQuery
impl Clone for NetworkVolumeBillingQuery
Source§fn clone(&self) -> NetworkVolumeBillingQuery
fn clone(&self) -> NetworkVolumeBillingQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more