pub struct Task {
pub healthy: Option<bool>,
pub host: Ipv4Addr,
pub last_update: Option<i64>,
pub logs: Option<String>,
pub staged_at: DateTime<Utc>,
pub started_at: DateTime<Utc>,
pub state: TaskState,
pub stopped_at: Option<DateTime<Utc>>,
}Expand description
Task
JSON schema
{
"examples": [
{
"healthy": true,
"host": "10.0.2.36",
"lastUpdate": 1638980430,
"stagedAt": "2017-12-07T10:53:46.643Z",
"startedAt": "2017-12-07T10:55:41.765Z",
"state": "RUNNING",
"stoppedAt": "2017-12-07T10:58:41.765Z"
}
],
"type": "object",
"required": [
"host",
"stagedAt",
"startedAt",
"state"
],
"properties": {
"healthy": {
"description": "false or true depending on health checks (empty if no health checks)\n",
"type": "boolean"
},
"host": {
"description": "The IP address of the host the task is running on (not the IP address of the task itself)\n",
"type": "string",
"format": "ipv4"
},
"lastUpdate": {
"description": "Timestamp of the last time the task was updated",
"type": "integer",
"format": "int64"
},
"logs": {
"description": "Optional link to the latest log dump for this task",
"type": "string",
"format": "url"
},
"stagedAt": {
"description": "Staging time of the task",
"type": "string",
"format": "date-time"
},
"startedAt": {
"description": "Start time of the task",
"type": "string",
"format": "date-time"
},
"state": {
"description": "The state the task is in",
"type": "string",
"enum": [
"DROPPED",
"ERROR",
"FAILED",
"FINISHED",
"GONE",
"GONE_BY_OPERATOR",
"KILLED",
"KILLING",
"LOST",
"RUNNING",
"STAGING",
"STARTING",
"UNKNOWN",
"UNREACHABLE"
]
},
"stoppedAt": {
"description": "Stopped time of the task",
"type": "string",
"format": "date-time"
}
}
}Fields§
§healthy: Option<bool>false or true depending on health checks (empty if no health checks)
host: Ipv4AddrThe IP address of the host the task is running on (not the IP address of the task itself)
last_update: Option<i64>Timestamp of the last time the task was updated
logs: Option<String>Optional link to the latest log dump for this task
staged_at: DateTime<Utc>Staging time of the task
started_at: DateTime<Utc>Start time of the task
state: TaskStateThe state the task is in
stopped_at: Option<DateTime<Utc>>Stopped time of the task
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more