rust_ocpp/v2_0_1/messages/
get_monitoring_report.rs

1//! GetMonitoringReport
2use crate::v2_0_1::datatypes::component_variable_type::ComponentVariableType;
3use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
4use crate::v2_0_1::enumerations::generic_device_model_status_enum_type::GenericDeviceModelStatusEnumType;
5use crate::v2_0_1::enumerations::monitoring_criterion_enum_type::MonitoringCriterionEnumType;
6
7/// GetMonitoringReportRequest, sent by the CSMS to the Charging Station.
8#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
9#[serde(rename_all = "camelCase")]
10pub struct GetMonitoringReportRequest {
11    /// The Id of the request.
12    pub request_id: i32,
13    ///  This field contains criteria for components forwhich a monitoring report is requested.
14    #[serde(skip_serializing_if = "Option::is_none")]
15    pub monitoring_criteria: Option<Vec<MonitoringCriterionEnumType>>,
16    /// This field specifies the components andvariables for which a monitoring report is requested.
17    #[serde(skip_serializing_if = "Option::is_none")]
18    pub component_variable: Option<Vec<ComponentVariableType>>,
19}
20
21/// GetMonitoringReportResponse, sent by the Charging Station to the CSMS.
22#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
23#[serde(rename_all = "camelCase")]
24pub struct GetMonitoringReportResponse {
25    /// This field indicates whether the ChargingStation was able to accept the request.
26    pub status: GenericDeviceModelStatusEnumType,
27    /// Detailed status information.
28    #[serde(skip_serializing_if = "Option::is_none")]
29    pub status_info: Option<StatusInfoType>,
30}