| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "urn:OCPP:Cp:1.6:2020:3:GetLog.req", |
| 4 | "definitions": { |
| 5 | "LogEnumType": { |
| 6 | "type": "string", |
| 7 | "additionalProperties": false, |
| 8 | "enum": ["DiagnosticsLog", "SecurityLog"] |
| 9 | }, |
| 10 | "LogParametersType": { |
| 11 | "type": "object", |
| 12 | "additionalProperties": false, |
| 13 | "properties": { |
| 14 | "remoteLocation": { |
| 15 | "type": "string", |
| 16 | "maxLength": 512 |
| 17 | }, |
| 18 | "oldestTimestamp": { |
| 19 | "type": "string", |
| 20 | "format": "date-time" |
| 21 | }, |
| 22 | "latestTimestamp": { |
| 23 | "type": "string", |
| 24 | "format": "date-time" |
| 25 | } |
| 26 | }, |
| 27 | "required": ["remoteLocation"] |
| 28 | } |
| 29 | }, |
| 30 | "type": "object", |
| 31 | "additionalProperties": false, |
| 32 | "properties": { |
| 33 | "log": { |
| 34 | "$ref": "#/definitions/LogParametersType" |
| 35 | }, |
| 36 | "logType": { |
| 37 | "$ref": "#/definitions/LogEnumType" |
| 38 | }, |
| 39 | "requestId": { |
| 40 | "type": "integer" |
| 41 | }, |
| 42 | "retries": { |
| 43 | "type": "integer" |
| 44 | }, |
| 45 | "retryInterval": { |
| 46 | "type": "integer" |
| 47 | } |
| 48 | }, |
| 49 | "required": ["logType", "requestId", "log"] |
| 50 | } |