Fixes to OCA OCPP 2.0.1 JSON schemas
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / SetVariableMonitoringRequest.json
CommitLineData
d270cc87 1{
98fc1389 2 "$schema": "http://json-schema.org/draft-07/schema#",
d270cc87 3 "$id": "urn:OCPP:Cp:2:2020:3:SetVariableMonitoringRequest",
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 "ComponentType": {
26 "description": "A physical or logical component\r\n",
27 "javaType": "Component",
28 "type": "object",
29 "additionalProperties": false,
30 "properties": {
31 "customData": {
32 "$ref": "#/definitions/CustomDataType"
33 },
34 "evse": {
35 "$ref": "#/definitions/EVSEType"
36 },
37 "name": {
38 "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",
39 "type": "string",
40 "maxLength": 50
41 },
42 "instance": {
43 "description": "Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
44 "type": "string",
45 "maxLength": 50
46 }
47 },
48 "required": ["name"]
49 },
50 "EVSEType": {
51 "description": "EVSE\r\nurn:x-oca:ocpp:uid:2:233123\r\nElectric Vehicle Supply Equipment\r\n",
52 "javaType": "EVSE",
53 "type": "object",
54 "additionalProperties": false,
55 "properties": {
56 "customData": {
57 "$ref": "#/definitions/CustomDataType"
58 },
59 "id": {
60 "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",
61 "type": "integer"
62 },
63 "connectorId": {
64 "description": "An id to designate a specific connector (on an EVSE) by connector index number.\r\n",
65 "type": "integer"
66 }
67 },
68 "required": ["id"]
69 },
70 "SetMonitoringDataType": {
71 "description": "Class to hold parameters of SetVariableMonitoring request.\r\n",
72 "javaType": "SetMonitoringData",
73 "type": "object",
74 "additionalProperties": false,
75 "properties": {
76 "customData": {
77 "$ref": "#/definitions/CustomDataType"
78 },
79 "id": {
80 "description": "An id SHALL only be given to replace an existing monitor. The Charging Station handles the generation of id's for new monitors.\r\n\r\n",
81 "type": "integer"
82 },
83 "transaction": {
84 "description": "Monitor only active when a transaction is ongoing on a component relevant to this transaction. Default = false.\r\n\r\n",
85 "type": "boolean",
86 "default": false
87 },
88 "value": {
89 "description": "Value for threshold or delta monitoring.\r\nFor Periodic or PeriodicClockAligned this is the interval in seconds.\r\n\r\n",
90 "type": "number"
91 },
92 "type": {
93 "$ref": "#/definitions/MonitorEnumType"
94 },
95 "severity": {
96 "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",
97 "type": "integer"
98 },
99 "component": {
100 "$ref": "#/definitions/ComponentType"
101 },
102 "variable": {
103 "$ref": "#/definitions/VariableType"
104 }
105 },
106 "required": ["value", "type", "severity", "component", "variable"]
107 },
108 "VariableType": {
109 "description": "Reference key to a component-variable.\r\n",
110 "javaType": "Variable",
111 "type": "object",
112 "additionalProperties": false,
113 "properties": {
114 "customData": {
115 "$ref": "#/definitions/CustomDataType"
116 },
117 "name": {
118 "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",
119 "type": "string",
120 "maxLength": 50
121 },
122 "instance": {
123 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
124 "type": "string",
125 "maxLength": 50
126 }
127 },
128 "required": ["name"]
129 }
130 },
131 "type": "object",
132 "additionalProperties": false,
133 "properties": {
134 "customData": {
135 "$ref": "#/definitions/CustomDataType"
136 },
137 "setMonitoringData": {
138 "type": "array",
139 "additionalItems": false,
140 "items": {
141 "$ref": "#/definitions/SetMonitoringDataType"
142 },
143 "minItems": 1
144 }
145 },
146 "required": ["setMonitoringData"]
147}