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
39
40
41
42
/*
* 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 serde::{Deserialize, Serialize};
/// RemoteStoreTranslogUploadTotalUploadsStats
/// The number of syncs to the remote translog store.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RemoteStoreTranslogUploadTotalUploadsStats {
/// The number of successful upload syncs to the remote translog store.
#[serde(rename = "succeeded")]
pub succeeded: u32,
/// The number of failed upload syncs to the remote translog store.
#[serde(rename = "failed")]
pub failed: u32,
/// The number of upload syncs to the remote translog store that have started.
#[serde(rename = "started")]
pub started: u32,
}
impl RemoteStoreTranslogUploadTotalUploadsStats {
/// The number of syncs to the remote translog store.
pub fn new(
succeeded: u32,
failed: u32,
started: u32,
) -> RemoteStoreTranslogUploadTotalUploadsStats {
RemoteStoreTranslogUploadTotalUploadsStats {
succeeded,
failed,
started,
}
}
}