Skip to main content

opensearch_client/ml/
model_stats.rs

1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct ModelStats {
15    /// The executing task count.
16    #[serde(
17        rename = "ml_executing_task_count",
18        default,
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub ml_executing_task_count: Option<u32>,
22    /// The request count.
23    #[serde(
24        rename = "ml_action_request_count",
25        default,
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub ml_action_request_count: Option<u32>,
29    /// The failure count.
30    #[serde(
31        rename = "ml_action_failure_count",
32        default,
33        skip_serializing_if = "Option::is_none"
34    )]
35    pub ml_action_failure_count: Option<u32>,
36}
37
38impl ModelStats {
39    pub fn new() -> ModelStats {
40        ModelStats {
41            ml_executing_task_count: None,
42            ml_action_request_count: None,
43            ml_action_failure_count: None,
44        }
45    }
46}