Skip to main content

openapi_service_fabric/models/
code_package_entry_point_statistics.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/// CodePackageEntryPointStatistics : Statistics about setup or main entry point  of a code package deployed on a Service Fabric node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CodePackageEntryPointStatistics {
17    /// The last exit code of the entry point.
18    #[serde(rename = "LastExitCode", skip_serializing_if = "Option::is_none")]
19    pub last_exit_code: Option<String>,
20    /// The last time (in UTC) when Service Fabric attempted to run the entry point.
21    #[serde(rename = "LastActivationTime", skip_serializing_if = "Option::is_none")]
22    pub last_activation_time: Option<String>,
23    /// The last time (in UTC) when the entry point finished running.
24    #[serde(rename = "LastExitTime", skip_serializing_if = "Option::is_none")]
25    pub last_exit_time: Option<String>,
26    /// The last time (in UTC) when the entry point ran successfully.
27    #[serde(
28        rename = "LastSuccessfulActivationTime",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub last_successful_activation_time: Option<String>,
32    /// The last time (in UTC) when the entry point finished running gracefully.
33    #[serde(
34        rename = "LastSuccessfulExitTime",
35        skip_serializing_if = "Option::is_none"
36    )]
37    pub last_successful_exit_time: Option<String>,
38    /// Number of times the entry point has run.
39    #[serde(rename = "ActivationCount", skip_serializing_if = "Option::is_none")]
40    pub activation_count: Option<String>,
41    /// Number of times the entry point failed to run.
42    #[serde(
43        rename = "ActivationFailureCount",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub activation_failure_count: Option<String>,
47    /// Number of times the entry point continuously failed to run.
48    #[serde(
49        rename = "ContinuousActivationFailureCount",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub continuous_activation_failure_count: Option<String>,
53    /// Number of times the entry point finished running.
54    #[serde(rename = "ExitCount", skip_serializing_if = "Option::is_none")]
55    pub exit_count: Option<String>,
56    /// Number of times the entry point failed to exit gracefully.
57    #[serde(rename = "ExitFailureCount", skip_serializing_if = "Option::is_none")]
58    pub exit_failure_count: Option<String>,
59    /// Number of times the entry point continuously failed to exit gracefully.
60    #[serde(
61        rename = "ContinuousExitFailureCount",
62        skip_serializing_if = "Option::is_none"
63    )]
64    pub continuous_exit_failure_count: Option<String>,
65}
66
67impl CodePackageEntryPointStatistics {
68    /// Statistics about setup or main entry point  of a code package deployed on a Service Fabric node.
69    pub fn new() -> CodePackageEntryPointStatistics {
70        CodePackageEntryPointStatistics {
71            last_exit_code: None,
72            last_activation_time: None,
73            last_exit_time: None,
74            last_successful_activation_time: None,
75            last_successful_exit_time: None,
76            activation_count: None,
77            activation_failure_count: None,
78            continuous_activation_failure_count: None,
79            exit_count: None,
80            exit_failure_count: None,
81            continuous_exit_failure_count: None,
82        }
83    }
84}