Debian Codegraph @

ocpp/v201/schemas/NotifyMonitoringReportRequest.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-06/schema#",
3 "comment": "OCPP 2.0.1 FINAL",
4 "definitions": {
5 "CustomDataType": {
6 "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
7 "javaType": "CustomData",
8 "type": "object",
9 "properties": {
10 "vendorId": {
11 "type": "string",
12 "maxLength": 255
13 }
14 },
15 "required": [
16 "vendorId"
17 ]
18 },
19 "MonitorEnumType": {
20 "description": "The type of this monitor, e.g. a threshold, delta or periodic monitor. \r\n",
21 "javaType": "MonitorEnum",
22 "type": "string",
23 "additionalProperties": false,
24 "enum": [
25 "UpperThreshold",
26 "LowerThreshold",
27 "Delta",
28 "Periodic",
29 "PeriodicClockAligned"
30 ]
31 },
32 "ComponentType": {
33 "description": "A physical or logical component\r\n",
34 "javaType": "Component",
35 "type": "object",
36 "additionalProperties": false,
37 "properties": {
38 "customData": {
39 "$ref": "#/definitions/CustomDataType"
40 },
41 "evse": {
42 "$ref": "#/definitions/EVSEType"
43 },
44 "name": {
45 "description": "Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
46 "type": "string",
47 "maxLength": 50
48 },
49 "instance": {
50 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
51 "type": "string",
52 "maxLength": 50
53 }
54 },
55 "required": [
56 "name"
57 ]
58 },
59 "EVSEType": {
60 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
61 "javaType": "EVSE",
62 "type": "object",
63 "additionalProperties": false,
64 "properties": {
65 "customData": {
66 "$ref": "#/definitions/CustomDataType"
67 },
68 "id": {
69 "description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nEVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station.\r\n",
70 "type": "integer"
71 },
72 "connectorId": {
73 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
74 "type": "integer"
75 }
76 },
77 "required": [
78 "id"
79 ]
80 },
81 "MonitoringDataType": {
82 "description": "Class to hold parameters of SetVariableMonitoring request.\r\n",
83 "javaType": "MonitoringData",
84 "type": "object",
85 "additionalProperties": false,
86 "properties": {
87 "customData": {
88 "$ref": "#/definitions/CustomDataType"
89 },
90 "component": {
91 "$ref": "#/definitions/ComponentType"
92 },
93 "variable": {
94 "$ref": "#/definitions/VariableType"
95 },
96 "variableMonitoring": {
97 "type": "array",
98 "additionalItems": false,
99 "items": {
100 "$ref": "#/definitions/VariableMonitoringType"
101 },
102 "minItems": 1
103 }
104 },
105 "required": [
106 "component",
107 "variable",
108 "variableMonitoring"
109 ]
110 },
111 "VariableMonitoringType": {
112 "description": "A monitoring setting for a variable.\r\n",
113 "javaType": "VariableMonitoring",
114 "type": "object",
115 "additionalProperties": false,
116 "properties": {
117 "customData": {
118 "$ref": "#/definitions/CustomDataType"
119 },
120 "id": {
121 "description": "Identifies the monitor.\r\n",
122 "type": "integer"
123 },
124 "transaction": {
125 "description": "Monitor only active when a transaction is ongoing on a component relevant to this transaction. \r\n",
126 "type": "boolean"
127 },
128 "value": {
129 "description": "Value for threshold or delta monitoring.\r\nFor Periodic or PeriodicClockAligned this is the interval in seconds.\r\n",
130 "type": "number"
131 },
132 "type": {
133 "$ref": "#/definitions/MonitorEnumType"
134 },
135 "severity": {
136 "description": "The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level.\r\n\r\nThe severity levels have the following meaning: +\r\n*0-Danger* +\r\nIndicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. +\r\n*1-Hardware Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. +\r\n*2-System Failure* +\r\nIndicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. +\r\n*3-Critical* +\r\nIndicates a critical error. Action is required. +\r\n*4-Error* +\r\nIndicates a non-urgent error. Action is required. +\r\n*5-Alert* +\r\nIndicates an alert event. Default severity for any type of monitoring event. +\r\n*6-Warning* +\r\nIndicates a warning event. Action may be required. +\r\n*7-Notice* +\r\nIndicates an unusual event. No immediate action is required. +\r\n*8-Informational* +\r\nIndicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. +\r\n*9-Debug* +\r\nIndicates information useful to developers for debugging, not useful during operations.\r\n",
137 "type": "integer"
138 }
139 },
140 "required": [
141 "id",
142 "transaction",
143 "value",
144 "type",
145 "severity"
146 ]
147 },
148 "VariableType": {
149 "description": "Reference key to a component-variable.\r\n",
150 "javaType": "Variable",
151 "type": "object",
152 "additionalProperties": false,
153 "properties": {
154 "customData": {
155 "$ref": "#/definitions/CustomDataType"
156 },
157 "name": {
158 "description": "Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case.\r\n",
159 "type": "string",
160 "maxLength": 50
161 },
162 "instance": {
163 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
164 "type": "string",
165 "maxLength": 50
166 }
167 },
168 "required": [
169 "name"
170 ]
171 }
172 },
173 "type": "object",
174 "additionalProperties": false,
175 "properties": {
176 "customData": {
177 "$ref": "#/definitions/CustomDataType"
178 },
179 "monitor": {
180 "type": "array",
181 "additionalItems": false,
182 "items": {
183 "$ref": "#/definitions/MonitoringDataType"
184 },
185 "minItems": 1
186 },
187 "requestId": {
188 "description": "The id of the GetMonitoringRequest that requested this report.\r\n\r\n",
189 "type": "integer"
190 },
191 "tbc": {
192 "description": "“to be continued” indicator. Indicates whether another part of the monitoringData follows in an upcoming notifyMonitoringReportRequest message. Default value when omitted is false.\r\n",
193 "type": "boolean",
194 "default": false
195 },
196 "seqNo": {
197 "description": "Sequence number of this message. First message starts at 0.\r\n",
198 "type": "integer"
199 },
200 "generatedAt": {
201 "description": "Timestamp of the moment this message was generated at the Charging Station.\r\n",
202 "type": "string",
203 "format": "date-time"
204 }
205 },
206 "required": [
207 "requestId",
208 "seqNo",
209 "generatedAt"
210 ]
211 }