GetLog OCPP 1.6
Der Simulator antwortet mit NotSupported, prüft die Nachricht aber gegen das Schema.
Auch in: OCPP 2.0.1, OCPP 2.1
Request
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
log | object | Pflicht | |
log.remoteLocation | string | Pflicht | maxLength 512 |
log.oldestTimestamp | string | format date-time | |
log.latestTimestamp | string | format date-time | |
logType | string | Pflicht | enum: DiagnosticsLog, SecurityLog |
requestId | integer | Pflicht | |
retries | integer | ||
retryInterval | integer |
JSON-Schema (Request)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:GetLog.req",
"definitions": {
"LogEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"DiagnosticsLog",
"SecurityLog"
]
},
"LogParametersType": {
"type": "object",
"additionalProperties": false,
"properties": {
"remoteLocation": {
"type": "string",
"maxLength": 512
},
"oldestTimestamp": {
"type": "string",
"format": "date-time"
},
"latestTimestamp": {
"type": "string",
"format": "date-time"
}
},
"required": [
"remoteLocation"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"log": {
"$ref": "#/definitions/LogParametersType"
},
"logType": {
"$ref": "#/definitions/LogEnumType"
},
"requestId": {
"type": "integer"
},
"retries": {
"type": "integer"
},
"retryInterval": {
"type": "integer"
}
},
"required": [
"logType",
"requestId",
"log"
]
}Response
| Feld | Typ | Einschränkungen / Beschreibung | |
|---|---|---|---|
status | string | Pflicht | enum: Accepted, Rejected, AcceptedCanceled |
filename | string | maxLength 255 |
JSON-Schema (Response)
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "urn:OCPP:Cp:1.6:2020:3:GetLog.conf",
"definitions": {
"LogStatusEnumType": {
"type": "string",
"additionalProperties": false,
"enum": [
"Accepted",
"Rejected",
"AcceptedCanceled"
]
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/definitions/LogStatusEnumType"
},
"filename": {
"type": "string",
"maxLength": 255
}
},
"required": [
"status"
]
}Quelle: Open Charge Alliance, OCPP 1.6 – JSON-Schemas, unverändert wiedergegeben. © Open Charge Alliance. Lizenz: CC BY-ND 4.0. Die vollständige Spezifikation gibt es bei der Open Charge Alliance. ocpp-sim ist nicht mit der OCA verbunden.