61f0fe81e9ee654e9a092375f5dd8efeb0abb8d9
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / GetLogRequest.json
1 {
2 "$schema": "http://json-schema.org/draft-06/schema#",
3 "$id": "urn:OCPP:Cp:2:2020:3:GetLogRequest",
4 "comment": "OCPP 2.0.1 FINAL",
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 "LogEnumType": {
19 "description": "This contains the type of log file that the Charging Station\r\nshould send.\r\n",
20 "javaType": "LogEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": ["DiagnosticsLog", "SecurityLog"]
24 },
25 "LogParametersType": {
26 "description": "Log\r\nurn:x-enexis:ecdm:uid:2:233373\r\nGeneric class for the configuration of logging entries.\r\n",
27 "javaType": "LogParameters",
28 "type": "object",
29 "additionalProperties": false,
30 "properties": {
31 "customData": {
32 "$ref": "#/definitions/CustomDataType"
33 },
34 "remoteLocation": {
35 "description": "Log. Remote_ Location. URI\r\nurn:x-enexis:ecdm:uid:1:569484\r\nThe URL of the location at the remote system where the log should be stored.\r\n",
36 "type": "string",
37 "maxLength": 512
38 },
39 "oldestTimestamp": {
40 "description": "Log. Oldest_ Timestamp. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569477\r\nThis contains the date and time of the oldest logging information to include in the diagnostics.\r\n",
41 "type": "string",
42 "format": "date-time"
43 },
44 "latestTimestamp": {
45 "description": "Log. Latest_ Timestamp. Date_ Time\r\nurn:x-enexis:ecdm:uid:1:569482\r\nThis contains the date and time of the latest logging information to include in the diagnostics.\r\n",
46 "type": "string",
47 "format": "date-time"
48 }
49 },
50 "required": ["remoteLocation"]
51 }
52 },
53 "type": "object",
54 "additionalProperties": false,
55 "properties": {
56 "customData": {
57 "$ref": "#/definitions/CustomDataType"
58 },
59 "log": {
60 "$ref": "#/definitions/LogParametersType"
61 },
62 "logType": {
63 "$ref": "#/definitions/LogEnumType"
64 },
65 "requestId": {
66 "description": "The Id of this request\r\n",
67 "type": "integer"
68 },
69 "retries": {
70 "description": "This specifies how many times the Charging Station must try to upload the log before giving up. If this field is not present, it is left to Charging Station to decide how many times it wants to retry.\r\n",
71 "type": "integer"
72 },
73 "retryInterval": {
74 "description": "The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charging Station to decide how long to wait between attempts.\r\n",
75 "type": "integer"
76 }
77 },
78 "required": ["logType", "requestId", "log"]
79 }