Skip to main content

openapi_service_fabric/models/
replicator_queue_status.rs

1/*
2 * Service Fabric Client APIs
3 *
4 * Service Fabric REST Client APIs allows management of Service Fabric clusters, applications and services.
5 *
6 * The version of the OpenAPI document: 8.2
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ReplicatorQueueStatus : Provides various statistics of the queue used in the service fabric replicator. Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc. Depending on the role of the replicator, the properties in this type imply different meanings.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReplicatorQueueStatus {
17    /// Represents the utilization of the queue. A value of 0 indicates that the queue is empty and a value of 100 indicates the queue is full.
18    #[serde(
19        rename = "QueueUtilizationPercentage",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub queue_utilization_percentage: Option<i32>,
23    /// Represents the virtual memory consumed by the queue in bytes.
24    #[serde(rename = "QueueMemorySize", skip_serializing_if = "Option::is_none")]
25    pub queue_memory_size: Option<String>,
26    /// On a primary replicator, this is semantically the sequence number of the operation for which all the secondary replicas have sent an acknowledgement. On a secondary replicator, this is the smallest sequence number of the operation that is present in the queue.
27    #[serde(
28        rename = "FirstSequenceNumber",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub first_sequence_number: Option<String>,
32    /// On a primary replicator, this is semantically the highest sequence number of the operation for which all the secondary replicas have sent an acknowledgement. On a secondary replicator, this is semantically the highest sequence number that has been applied to the persistent state.
33    #[serde(
34        rename = "CompletedSequenceNumber",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub completed_sequence_number: Option<String>,
38    /// On a primary replicator, this is semantically the highest sequence number of the operation for which a write quorum of the secondary replicas have sent an acknowledgement. On a secondary replicator, this is semantically the highest sequence number of the in-order operation received from the primary.
39    #[serde(
40        rename = "CommittedSequenceNumber",
41        skip_serializing_if = "Option::is_none"
42    )]
43    pub committed_sequence_number: Option<String>,
44    /// Represents the latest sequence number of the operation that is available in the queue.
45    #[serde(rename = "LastSequenceNumber", skip_serializing_if = "Option::is_none")]
46    pub last_sequence_number: Option<String>,
47}
48
49impl ReplicatorQueueStatus {
50    /// Provides various statistics of the queue used in the service fabric replicator. Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc. Depending on the role of the replicator, the properties in this type imply different meanings.
51    pub fn new() -> ReplicatorQueueStatus {
52        ReplicatorQueueStatus {
53            queue_utilization_percentage: None,
54            queue_memory_size: None,
55            first_sequence_number: None,
56            completed_sequence_number: None,
57            committed_sequence_number: None,
58            last_sequence_number: None,
59        }
60    }
61}