fix: fix permissions
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / SetVariableMonitoringResponse.json
CommitLineData
d270cc87 1{
98fc1389 2 "$schema": "http://json-schema.org/draft-07/schema#",
d270cc87 3 "$id": "urn:OCPP:Cp:2:2020:3:SetVariableMonitoringResponse",
98fc1389 4 "$comment": "OCPP 2.0.1 FINAL",
d270cc87
JB
5 "definitions": {
6 "CustomDataType": {
7 "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.",
8 "javaType": "CustomData",
9 "type": "object",
10 "properties": {
11 "vendorId": {
12 "type": "string",
13 "maxLength": 255
14 }
15 },
16 "required": ["vendorId"]
17 },
18 "MonitorEnumType": {
19 "description": "The type of this monitor, e.g. a threshold, delta or periodic monitor. \r\n\r\n",
20 "javaType": "MonitorEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": ["UpperThreshold", "LowerThreshold", "Delta", "Periodic", "PeriodicClockAligned"]
24 },
25 "SetMonitoringStatusEnumType": {
26 "description": "Status is OK if a value could be returned. Otherwise this will indicate the reason why a value could not be returned.\r\n",
27 "javaType": "SetMonitoringStatusEnum",
28 "type": "string",
29 "additionalProperties": false,
30 "enum": [
31 "Accepted",
32 "UnknownComponent",
33 "UnknownVariable",
34 "UnsupportedMonitorType",
35 "Rejected",
36 "Duplicate"
37 ]
38 },
39 "ComponentType": {
40 "description": "A physical or logical component\r\n",
41 "javaType": "Component",
42 "type": "object",
43 "additionalProperties": false,
44 "properties": {
45 "customData": {
46 "$ref": "#/definitions/CustomDataType"
47 },
48 "evse": {
49 "$ref": "#/definitions/EVSEType"
50 },
51 "name": {
52 "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",
53 "type": "string",
54 "maxLength": 50
55 },
56 "instance": {
57 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
58 "type": "string",
59 "maxLength": 50
60 }
61 },
62 "required": ["name"]
63 },
64 "EVSEType": {
65 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
66 "javaType": "EVSE",
67 "type": "object",
68 "additionalProperties": false,
69 "properties": {
70 "customData": {
71 "$ref": "#/definitions/CustomDataType"
72 },
73 "id": {
74 "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",
75 "type": "integer"
76 },
77 "connectorId": {
78 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
79 "type": "integer"
80 }
81 },
82 "required": ["id"]
83 },
84 "SetMonitoringResultType": {
85 "description": "Class to hold result of SetVariableMonitoring request.\r\n",
86 "javaType": "SetMonitoringResult",
87 "type": "object",
88 "additionalProperties": false,
89 "properties": {
90 "customData": {
91 "$ref": "#/definitions/CustomDataType"
92 },
93 "id": {
94 "description": "Id given to the VariableMonitor by the Charging Station. The Id is only returned when status is accepted. Installed VariableMonitors should have unique id's but the id's of removed Installed monitors should have unique id's but the id's of removed monitors MAY be reused.\r\n",
95 "type": "integer"
96 },
97 "statusInfo": {
98 "$ref": "#/definitions/StatusInfoType"
99 },
100 "status": {
101 "$ref": "#/definitions/SetMonitoringStatusEnumType"
102 },
103 "type": {
104 "$ref": "#/definitions/MonitorEnumType"
105 },
106 "component": {
107 "$ref": "#/definitions/ComponentType"
108 },
109 "variable": {
110 "$ref": "#/definitions/VariableType"
111 },
112 "severity": {
113 "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\r\n",
114 "type": "integer"
115 }
116 },
117 "required": ["status", "type", "severity", "component", "variable"]
118 },
119 "StatusInfoType": {
120 "description": "Element providing more information about the status.\r\n",
121 "javaType": "StatusInfo",
122 "type": "object",
123 "additionalProperties": false,
124 "properties": {
125 "customData": {
126 "$ref": "#/definitions/CustomDataType"
127 },
128 "reasonCode": {
129 "description": "A predefined code for the reason why the status is returned in this response. The string is case-insensitive.\r\n",
130 "type": "string",
131 "maxLength": 20
132 },
133 "additionalInfo": {
134 "description": "Additional text to provide detailed information.\r\n",
135 "type": "string",
136 "maxLength": 512
137 }
138 },
139 "required": ["reasonCode"]
140 },
141 "VariableType": {
142 "description": "Reference key to a component-variable.\r\n",
143 "javaType": "Variable",
144 "type": "object",
145 "additionalProperties": false,
146 "properties": {
147 "customData": {
148 "$ref": "#/definitions/CustomDataType"
149 },
150 "name": {
151 "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",
152 "type": "string",
153 "maxLength": 50
154 },
155 "instance": {
156 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
157 "type": "string",
158 "maxLength": 50
159 }
160 },
161 "required": ["name"]
162 }
163 },
164 "type": "object",
165 "additionalProperties": false,
166 "properties": {
167 "customData": {
168 "$ref": "#/definitions/CustomDataType"
169 },
170 "setMonitoringResult": {
171 "type": "array",
172 "additionalItems": false,
173 "items": {
174 "$ref": "#/definitions/SetMonitoringResultType"
175 },
176 "minItems": 1
177 }
178 },
179 "required": ["setMonitoringResult"]
180}