pub struct UsageBreakdownBuild {
pub build_external_id: Option<Uuid>,
pub build_id: Option<Uuid>,
pub build_number: Option<i64>,
pub finished_at: Option<DateTime<Utc>>,
pub job_count: i64,
pub jobs: Vec<UsageBreakdownJob>,
pub pipeline_id: Option<Uuid>,
pub pipeline_name: Option<String>,
pub pipeline_slug: Option<String>,
pub started_at: DateTime<Utc>,
pub total_cents: i64,
}Expand description
All VM usage attributed to one build, rolled up and broken down per job.
JSON schema
{
"title": "UsageBreakdownBuild",
"description": "All VM usage attributed to one build, rolled up and
broken down per job.",
"type": "object",
"required": [
"job_count",
"jobs",
"started_at",
"total_cents"
],
"properties": {
"build_external_id": {
"description": "The build's public external id.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"build_id": {
"description": "The build's id (null for leases with no build).",
"type": [
"string",
"null"
],
"format": "uuid"
},
"build_number": {
"description": "The per-pipeline build number.",
"type": [
"integer",
"null"
]
},
"finished_at": {
"description": "Latest finish among the build's completed leases
(null only if no lease has finished yet).",
"type": [
"string",
"null"
],
"format": "date-time"
},
"job_count": {
"description": "Number of job leases in the build.",
"type": "integer"
},
"jobs": {
"description": "Per-job leases, oldest first.",
"type": "array",
"items": {
"$ref": "#/components/schemas/UsageBreakdownJob"
}
},
"pipeline_id": {
"description": "The pipeline's id.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"pipeline_name": {
"description": "The pipeline's name.",
"type": [
"string",
"null"
]
},
"pipeline_slug": {
"description": "The pipeline's routing slug (for linking).",
"type": [
"string",
"null"
]
},
"started_at": {
"description": "Earliest lease start in the build.",
"type": "string",
"format": "date-time"
},
"total_cents": {
"description": "Sum of this build's lease debits, in cents
(negative).",
"type": "integer"
}
}
}Fields§
§build_external_id: Option<Uuid>The build’s public external id.
build_id: Option<Uuid>The build’s id (null for leases with no build).
build_number: Option<i64>The per-pipeline build number.
finished_at: Option<DateTime<Utc>>Latest finish among the build’s completed leases (null only if no lease has finished yet).
job_count: i64Number of job leases in the build.
jobs: Vec<UsageBreakdownJob>Per-job leases, oldest first.
pipeline_id: Option<Uuid>The pipeline’s id.
pipeline_name: Option<String>The pipeline’s name.
pipeline_slug: Option<String>The pipeline’s routing slug (for linking).
started_at: DateTime<Utc>Earliest lease start in the build.
total_cents: i64Sum of this build’s lease debits, in cents (negative).
Trait Implementations§
Source§impl Clone for UsageBreakdownBuild
impl Clone for UsageBreakdownBuild
Source§fn clone(&self) -> UsageBreakdownBuild
fn clone(&self) -> UsageBreakdownBuild
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 UsageBreakdownBuild
impl Debug for UsageBreakdownBuild
Source§impl<'de> Deserialize<'de> for UsageBreakdownBuild
impl<'de> Deserialize<'de> for UsageBreakdownBuild
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 UsageBreakdownBuild
impl RefUnwindSafe for UsageBreakdownBuild
impl Send for UsageBreakdownBuild
impl Sync for UsageBreakdownBuild
impl Unpin for UsageBreakdownBuild
impl UnsafeUnpin for UsageBreakdownBuild
impl UnwindSafe for UsageBreakdownBuild
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