pub struct UsageResponse {
pub cpu_seconds: i64,
pub disk_gb_seconds: i64,
pub memory_gb_seconds: i64,
pub total_cents: i64,
}Expand description
Aggregated VM-lease usage for an organization over the requested [from, to) window: resource-seconds per dimension and the total billed cost in
cents.
JSON schema
{
"title": "UsageResponse",
"description": "Aggregated VM-lease usage for an organization over the
requested `[from, to)` window: resource-seconds per dimension and the
total billed cost in cents.",
"type": "object",
"required": [
"cpu_seconds",
"disk_gb_seconds",
"memory_gb_seconds",
"total_cents"
],
"properties": {
"cpu_seconds": {
"description": "Σ (cpu_count × duration_seconds) over leases in the
window.",
"type": "integer"
},
"disk_gb_seconds": {
"description": "Σ (disk_gb × duration_seconds) over leases in the
window.",
"type": "integer"
},
"memory_gb_seconds": {
"description": "Σ (memory_gb × duration_seconds) over leases in the
window.",
"type": "integer"
},
"total_cents": {
"description": "Σ rate-card cost of the leases in the window, in
cents.",
"type": "integer"
}
}
}Fields§
§cpu_seconds: i64Σ (cpu_count × duration_seconds) over leases in the window.
disk_gb_seconds: i64Σ (disk_gb × duration_seconds) over leases in the window.
memory_gb_seconds: i64Σ (memory_gb × duration_seconds) over leases in the window.
total_cents: i64Σ rate-card cost of the leases in the window, in cents.
Trait Implementations§
Source§impl Clone for UsageResponse
impl Clone for UsageResponse
Source§fn clone(&self) -> UsageResponse
fn clone(&self) -> UsageResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsageResponse
impl Debug for UsageResponse
Source§impl<'de> Deserialize<'de> for UsageResponse
impl<'de> Deserialize<'de> for UsageResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UsageResponse
impl RefUnwindSafe for UsageResponse
impl Send for UsageResponse
impl Sync for UsageResponse
impl Unpin for UsageResponse
impl UnsafeUnpin for UsageResponse
impl UnwindSafe for UsageResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more