/*
* 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
*/
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ClientQueryResultMetadata {
#[serde(rename = "costs")]
pub costs: Box<models::ClientCosts>,
#[serde(rename = "digestFlow")]
pub digest_flow: Box<models::ClientDigestFlow>,
#[serde(rename = "eventCount")]
pub event_count: i32,
#[serde(rename = "extraData")]
pub extra_data: serde_json::Value,
#[serde(rename = "fieldOrder")]
pub field_order: Vec<String>,
#[serde(rename = "isAggregate")]
pub is_aggregate: bool,
#[serde(rename = "pollAfter")]
pub poll_after: i32,
#[serde(rename = "processedBytes")]
pub processed_bytes: i32,
#[serde(rename = "processedEvents")]
pub processed_events: i32,
#[serde(rename = "queryEnd")]
pub query_end: i64,
#[serde(rename = "querySpent")]
pub query_spent: Box<models::ClientSpent>,
#[serde(rename = "queryStart")]
pub query_start: i64,
#[serde(rename = "quotaTotalSpent")]
pub quota_total_spent: Box<models::ClientSpent>,
#[serde(rename = "responderVHost")]
pub responder_v_host: i32,
#[serde(rename = "resultBufferSize")]
pub result_buffer_size: i32,
#[serde(rename = "timeMillis")]
pub time_millis: i32,
#[serde(rename = "totalWork")]
pub total_work: i32,
#[serde(rename = "warnings")]
pub warnings: Vec<serde_json::Value>,
#[serde(rename = "workDone")]
pub work_done: i32,
}
impl ClientQueryResultMetadata {
pub fn new(
costs: models::ClientCosts,
digest_flow: models::ClientDigestFlow,
event_count: i32,
extra_data: serde_json::Value,
field_order: Vec<String>,
is_aggregate: bool,
poll_after: i32,
processed_bytes: i32,
processed_events: i32,
query_end: i64,
query_spent: models::ClientSpent,
query_start: i64,
quota_total_spent: models::ClientSpent,
responder_v_host: i32,
result_buffer_size: i32,
time_millis: i32,
total_work: i32,
warnings: Vec<serde_json::Value>,
work_done: i32,
) -> ClientQueryResultMetadata {
ClientQueryResultMetadata {
costs: Box::new(costs),
digest_flow: Box::new(digest_flow),
event_count,
extra_data,
field_order,
is_aggregate,
poll_after,
processed_bytes,
processed_events,
query_end,
query_spent: Box::new(query_spent),
query_start,
quota_total_spent: Box::new(quota_total_spent),
responder_v_host,
result_buffer_size,
time_millis,
total_work,
warnings,
work_done,
}
}
}