pub struct UsageBreakdownJob {
pub amount_cents: i64,
pub cpu_count: i64,
pub disk_gb: i64,
pub duration_seconds: Option<i64>,
pub finished_at: Option<DateTime<Utc>>,
pub job_id: Option<Uuid>,
pub job_name: Option<String>,
pub memory_gb: i64,
pub started_at: DateTime<Utc>,
pub step_key: Option<String>,
pub vm_handle: Option<String>,
}Expand description
A single job’s VM lease: the VM that ran it, its shape, how long it ran, and what it cost.
JSON schema
{
"title": "UsageBreakdownJob",
"description": "A single job's VM lease: the VM that ran it, its shape,
how long it ran, and what it cost.",
"type": "object",
"required": [
"amount_cents",
"cpu_count",
"disk_gb",
"memory_gb",
"started_at"
],
"properties": {
"amount_cents": {
"description": "The debit for this lease, in cents (negative).",
"type": "integer"
},
"cpu_count": {
"description": "vCPUs leased.",
"type": "integer"
},
"disk_gb": {
"description": "GB of disk leased.",
"type": "integer"
},
"duration_seconds": {
"description": "Lease duration in seconds (null while still
running).",
"type": [
"integer",
"null"
]
},
"finished_at": {
"description": "When the lease finished (null if still running).",
"type": [
"string",
"null"
],
"format": "date-time"
},
"job_id": {
"description": "The job's id.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"job_name": {
"description": "The job's human-readable name.",
"type": [
"string",
"null"
]
},
"memory_gb": {
"description": "GB of RAM leased.",
"type": "integer"
},
"started_at": {
"description": "When the lease started.",
"type": "string",
"format": "date-time"
},
"step_key": {
"description": "The job's DAG step key.",
"type": [
"string",
"null"
]
},
"vm_handle": {
"description": "The backend VM identifier that ran the job.",
"type": [
"string",
"null"
]
}
}
}Fields§
§amount_cents: i64The debit for this lease, in cents (negative).
cpu_count: i64vCPUs leased.
disk_gb: i64GB of disk leased.
duration_seconds: Option<i64>Lease duration in seconds (null while still running).
finished_at: Option<DateTime<Utc>>When the lease finished (null if still running).
job_id: Option<Uuid>The job’s id.
job_name: Option<String>The job’s human-readable name.
memory_gb: i64GB of RAM leased.
started_at: DateTime<Utc>When the lease started.
step_key: Option<String>The job’s DAG step key.
vm_handle: Option<String>The backend VM identifier that ran the job.
Trait Implementations§
Source§impl Clone for UsageBreakdownJob
impl Clone for UsageBreakdownJob
Source§fn clone(&self) -> UsageBreakdownJob
fn clone(&self) -> UsageBreakdownJob
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 UsageBreakdownJob
impl Debug for UsageBreakdownJob
Source§impl<'de> Deserialize<'de> for UsageBreakdownJob
impl<'de> Deserialize<'de> for UsageBreakdownJob
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UsageBreakdownJob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UsageBreakdownJob, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UsageBreakdownJob
impl Serialize for UsageBreakdownJob
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UsageBreakdownJob
impl RefUnwindSafe for UsageBreakdownJob
impl Send for UsageBreakdownJob
impl Sync for UsageBreakdownJob
impl Unpin for UsageBreakdownJob
impl UnsafeUnpin for UsageBreakdownJob
impl UnwindSafe for UsageBreakdownJob
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