UNPKG

ocpp-messages

Version:

TypeScript definitions for Open Charge Point Protocol (OCPP)

133 lines 3 kB
{ "$schema": "http://json-schema.org/draft-06/schema#", "$id": "urn:OCPP:Cp:2:2018:4:SetVariableMonitoringResponse", "comment": "OCPP 2.0 - v1p0", "definitions": { "MonitorEnumType": { "type": "string", "additionalProperties": true, "enum": [ "UpperThreshold", "LowerThreshold", "Delta", "Periodic", "PeriodicClockAligned" ] }, "SetMonitoringStatusEnumType": { "type": "string", "additionalProperties": true, "enum": [ "Accepted", "UnknownComponent", "UnknownVariable", "UnsupportedMonitorType", "Rejected", "OutOfRange", "Duplicate" ] }, "ComponentType": { "javaType": "Component", "type": "object", "additionalProperties": true, "properties": { "evse": { "$ref": "#/definitions/EVSEType" }, "name": { "type": "string", "maxLength": 50 }, "instance": { "type": "string", "maxLength": 50 } }, "required": [ "name" ] }, "EVSEType": { "javaType": "EVSE", "type": "object", "additionalProperties": true, "properties": { "id": { "type": "integer" }, "connectorId": { "type": "integer" } }, "required": [ "id" ] }, "SetMonitoringResultType": { "javaType": "SetMonitoringResult", "type": "object", "additionalProperties": true, "properties": { "id": { "type": "integer" }, "type": { "$ref": "#/definitions/MonitorEnumType" }, "severity": { "type": "integer" }, "status": { "$ref": "#/definitions/SetMonitoringStatusEnumType" }, "component": { "$ref": "#/definitions/ComponentType" }, "variable": { "$ref": "#/definitions/VariableType" } }, "required": [ "type", "severity", "status", "component", "variable" ] }, "VariableType": { "javaType": "Variable", "type": "object", "additionalProperties": true, "properties": { "name": { "type": "string", "maxLength": 50 }, "instance": { "type": "string", "maxLength": 50 } }, "required": [ "name" ] } }, "type": "object", "additionalProperties": true, "properties": { "setMonitoringResult": { "type": "array", "additionalItems": false, "items": { "$ref": "#/definitions/SetMonitoringResultType" }, "minItems": 1 } }, "required": [ "setMonitoringResult" ] }