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
14
15
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct ModelStats {  /// The executing task count.
18    #[serde(rename = "ml_executing_task_count", default, skip_serializing_if = "Option::is_none")]
19    pub ml_executing_task_count: Option<u32>,  /// The request count.
20    #[serde(rename = "ml_action_request_count", default, skip_serializing_if = "Option::is_none")]
21    pub ml_action_request_count: Option<u32>,  /// The failure count.
22    #[serde(rename = "ml_action_failure_count", default, skip_serializing_if = "Option::is_none")]
23    pub ml_action_failure_count: Option<u32>,
24}
25
26impl ModelStats {
27    
28    pub fn new() -> ModelStats {
29        ModelStats {
30            ml_executing_task_count: None,
31            ml_action_request_count: None,
32            ml_action_failure_count: None,
33        }
34    }
35}