Debian Codegraph @

ocpp/v201/schemas/SetVariableMonitoringRequest.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\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 "SetMonitoringDataType": {
82 "description": "Class to hold parameters of SetVariableMonitoring request.\r\n",
83 "javaType": "SetMonitoringData",
84 "type": "object",
85 "additionalProperties": false,
86 "properties": {
87 "customData": {
88 "$ref": "#/definitions/CustomDataType"
89 },
90 "id": {
91 "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",
92 "type": "integer"
93 },
94 "transaction": {
95 "description": "Monitor only active when a transaction is ongoing on a component relevant to this transaction. Default = false.\r\n\r\n",
96 "type": "boolean",
97 "default": false
98 },
99 "value": {
100 "description": "Value for threshold or delta monitoring.\r\nFor Periodic or PeriodicClockAligned this is the interval in seconds.\r\n\r\n",
101 "type": "number"
102 },
103 "type": {
104 "$ref": "#/definitions/MonitorEnumType"
105 },
106 "severity": {
107 "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",
108 "type": "integer"
109 },
110 "component": {
111 "$ref": "#/definitions/ComponentType"
112 },
113 "variable": {
114 "$ref": "#/definitions/VariableType"
115 }
116 },
117 "required": [
118 "value",
119 "type",
120 "severity",
121 "component",
122 "variable"
123 ]
124 },
125 "VariableType": {
126 "description": "Reference key to a component-variable.\r\n",
127 "javaType": "Variable",
128 "type": "object",
129 "additionalProperties": false,
130 "properties": {
131 "customData": {
132 "$ref": "#/definitions/CustomDataType"
133 },
134 "name": {
135 "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",
136 "type": "string",
137 "maxLength": 50
138 },
139 "instance": {
140 "description": "Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case.\r\n",
141 "type": "string",
142 "maxLength": 50
143 }
144 },
145 "required": [
146 "name"
147 ]
148 }
149 },
150 "type": "object",
151 "additionalProperties": false,
152 "properties": {
153 "customData": {
154 "$ref": "#/definitions/CustomDataType"
155 },
156 "setMonitoringData": {
157 "type": "array",
158 "additionalItems": false,
159 "items": {
160 "$ref": "#/definitions/SetMonitoringDataType"
161 },
162 "minItems": 1
163 }
164 },
165 "required": [
166 "setMonitoringData"
167 ]
168 }