1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use crate::common;
use serde::{Deserialize, Serialize};
/// RemoteStoreDownloadStats
/// Statistics related to downloads to the remote segment store.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RemoteStoreDownloadStats { /// A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and
/// `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
#[serde(rename = "total_time_spent", default, skip_serializing_if = "Option::is_none")]
pub total_time_spent: Option<String>,
#[serde(rename = "total_time_spent_in_millis")]
pub total_time_spent_in_millis: String, /// The amount of data, in bytes, uploaded or downloaded to/from the remote segment store.
#[serde(rename = "total_download_size")]
pub total_download_size: common::RemoteStoreUploadDownloadStats,
}
impl RemoteStoreDownloadStats {
/// Statistics related to downloads to the remote segment store.
pub fn new(total_time_spent_in_millis: String, total_download_size: common::RemoteStoreUploadDownloadStats) -> RemoteStoreDownloadStats {
RemoteStoreDownloadStats {
total_time_spent: None,
total_time_spent_in_millis,
total_download_size,
}
}
}