/*
* CrowdStrike API Specification
*
* Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and examples, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation). To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`. Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests.
*
* The version of the OpenAPI document: rolling
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItautomationTaskExecutionHostStatus {
/// Timestamp when execution completed on this host. Example: 2025-01-23T18:49:26.785778Z
#[serde(rename = "end_time")]
pub end_time: String,
/// Unique identifier of the target host. Example: fc0f24b0754c488fb2139334abe2c1a3
#[serde(rename = "host_id")]
pub host_id: String,
/// Hostname of the target system. Example: I-93TM-PC2
#[serde(rename = "hostname")]
pub hostname: String,
/// Operating system platform of the host. Example: Windows
#[serde(rename = "platform")]
pub platform: String,
/// Reason for the current status. Example: In progress
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
/// Current execution stage for this host. Example: query
#[serde(rename = "stage")]
pub stage: String,
/// Timestamp when execution started on this host. Example: 2025-01-23T18:11:20.148439Z
#[serde(rename = "start_time")]
pub start_time: String,
/// Current status of the task execution on this host. Example: Running
#[serde(rename = "status")]
pub status: String,
/// Unique identifier for this task execution. Example: f64b95555ef54ea682619ce880d267cc
#[serde(rename = "task_execution_id")]
pub task_execution_id: String,
/// Total number of results returned from this host
#[serde(rename = "total_results", skip_serializing_if = "Option::is_none")]
pub total_results: Option<i64>,
}
impl ItautomationTaskExecutionHostStatus {
pub fn new(
end_time: String,
host_id: String,
hostname: String,
platform: String,
stage: String,
start_time: String,
status: String,
task_execution_id: String,
) -> ItautomationTaskExecutionHostStatus {
ItautomationTaskExecutionHostStatus {
end_time,
host_id,
hostname,
platform,
reason: None,
stage,
start_time,
status,
task_execution_id,
total_results: None,
}
}
}