200 |
TODO |
|
application/json
model |
example
{
"title": "log content with delivery date",
"id": "schemas/common/logContent",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.common.LogContent200",
"type": "object",
"required": [
"deliveryDate",
"surveyDate",
"log"
],
"properties": {
"deliveryDate": {
"id": "schemas/common/deliveryDate",
"description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
"type": "string",
"format": "date-time"
},
"surveyDate": {
"id": "schemas/common/surveyDate_p",
"description": "Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
"type": "string",
"format": "date-time"
},
"log": {
"id": "schemas/common/logContent",
"javaType": "com.sos.joc.model.common.LogContent",
"type": "object",
"description": "The parameter 'mime' can specify if the content is plain or html. Either 'plain' or 'html' is required. 'plain' is default.",
"properties": {
"plain": {
"type": "string"
},
"html": {
"type": "string"
}
}
}
}
}
{ "deliveryDate": "2016-05-05T21:14:56Z", "surveyDate": "2016-05-05T21:12:00Z", "log": { "plain": "2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) SCHEDULER-842 Task is going to process Order test/set:c:\\temp\\a\\Neues Textdokument.txt, state=100, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>', Order's Process_class test/agent4447-oh\n2016-06-20 15:57:46.565+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=loading\n2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) \n2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) Task test/set:3718124 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/scheduler.1.10/logs/task.test,set.log\n2016-06-20 15:57:46.582+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=waiting_for_process\n2016-06-20 15:57:46.865+0200 [info] (Task test/set:3718124) SCHEDULER-726 Task runs on remote scheduler <a class='log' href='http://oh.sos:4447' target='_blank'>http://oh.sos:4447</a>\n2016-06-20 15:57:46.866+0200 [info] (Task test/set:3718124) SCHEDULER-918 state=starting (at=never)\n2016-06-20 15:57:47.292+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=running_remote_process\n2016-06-20 15:57:47.300+0200 [info] (Task test/set:3718124) [stdout] SCHEDULER_PARAM_SCRIPTROOTDIR = \n2016-06-20 15:57:47.307+0200 [info] (Task test/set:3718124) [stderr] Das System kann den angegebenen Pfad nicht finden.\n2016-06-20 15:57:47.334+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=release\n2016-06-20 15:57:47.346+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=killing\n2016-06-20 15:57:47.346+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=ended\n2016-06-20 15:57:47.348+0200 [ERROR] (Task test/set:3718124) SCHEDULER-280 Process terminated with exit code 3 (0x3)\n2016-06-20 15:57:47.348+0200 [info] (Task test/set:3718124) SCHEDULER-843 Task has ended processing of Order test/set:c:\temp\a\Neues Textdokument.txt, state=100, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:47.363+0200 [info] set_state error, Job /scheduler_file_order_sink\n2016-06-20 15:57:48.033+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-842 Task is going to process Order test/set:c:\temp\a\Neues Textdokument.txt, state=error, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>', Order's Process_class test/agent4447-oh\n2016-06-20 15:57:48.038+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=loading\n2016-06-20 15:57:48.039+0200 [info] (Task scheduler_file_order_sink:3718125) \n2016-06-20 15:57:48.039+0200 [info] (Task scheduler_file_order_sink:3718125) Task scheduler_file_order_sink:3718125 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/scheduler.1.10/logs/task.scheduler_file_order_sink.log\n2016-06-20 15:57:48.041+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-726 Task runs on this JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:48.042+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=starting (at=never)\n2016-06-20 15:57:48.075+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=opening\n2016-06-20 15:57:48.076+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=running\n2016-06-20 15:57:48.109+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-979 Removing file c:\temp\a\Neues Textdokument.txt\n2016-06-20 15:57:48.119+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-843 Task has ended processing of Order test/set:c:\temp\a\Neues Textdokument.txt, state=error, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:48.126+0200 [debug3] SCHEDULER-341 Order has been set on the blacklist and is removed as soon as the Agent confirms the file removal\n2016-06-20 15:57:48.166+0200 [info] SCHEDULER-981 File has been removed\n2016-06-20 15:57:48.166+0200 [info] SCHEDULER-940 Removing order from job chain" } }
{
"deliveryDate": "2016-05-05T21:14:56Z",
"surveyDate": "2016-05-05T21:12:00Z",
"log": {
"plain": "2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) SCHEDULER-842 Task is going to process Order test/set:c:\\temp\\a\\Neues Textdokument.txt, state=100, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>', Order's Process_class test/agent4447-oh\n2016-06-20 15:57:46.565+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=loading\n2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) \n2016-06-20 15:57:46.565+0200 [info] (Task test/set:3718124) Task test/set:3718124 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/scheduler.1.10/logs/task.test,set.log\n2016-06-20 15:57:46.582+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=waiting_for_process\n2016-06-20 15:57:46.865+0200 [info] (Task test/set:3718124) SCHEDULER-726 Task runs on remote scheduler <a class='log' href='http://oh.sos:4447' target='_blank'>http://oh.sos:4447</a>\n2016-06-20 15:57:46.866+0200 [info] (Task test/set:3718124) SCHEDULER-918 state=starting (at=never)\n2016-06-20 15:57:47.292+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=running_remote_process\n2016-06-20 15:57:47.300+0200 [info] (Task test/set:3718124) [stdout] SCHEDULER_PARAM_SCRIPTROOTDIR = \n2016-06-20 15:57:47.307+0200 [info] (Task test/set:3718124) [stderr] Das System kann den angegebenen Pfad nicht finden.\n2016-06-20 15:57:47.334+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=release\n2016-06-20 15:57:47.346+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=killing\n2016-06-20 15:57:47.346+0200 [debug9] (Task test/set:3718124) SCHEDULER-918 state=ended\n2016-06-20 15:57:47.348+0200 [ERROR] (Task test/set:3718124) SCHEDULER-280 Process terminated with exit code 3 (0x3)\n2016-06-20 15:57:47.348+0200 [info] (Task test/set:3718124) SCHEDULER-843 Task has ended processing of Order test/set:c:\temp\a\Neues Textdokument.txt, state=100, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:47.363+0200 [info] set_state error, Job /scheduler_file_order_sink\n2016-06-20 15:57:48.033+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-842 Task is going to process Order test/set:c:\temp\a\Neues Textdokument.txt, state=error, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>', Order's Process_class test/agent4447-oh\n2016-06-20 15:57:48.038+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=loading\n2016-06-20 15:57:48.039+0200 [info] (Task scheduler_file_order_sink:3718125) \n2016-06-20 15:57:48.039+0200 [info] (Task scheduler_file_order_sink:3718125) Task scheduler_file_order_sink:3718125 - Protocol starts in C:/ProgramData/sos-berlin.com/jobscheduler/scheduler.1.10/logs/task.scheduler_file_order_sink.log\n2016-06-20 15:57:48.041+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-726 Task runs on this JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:48.042+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=starting (at=never)\n2016-06-20 15:57:48.075+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=opening\n2016-06-20 15:57:48.076+0200 [debug9] (Task scheduler_file_order_sink:3718125) SCHEDULER-918 state=running\n2016-06-20 15:57:48.109+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-979 Removing file c:\temp\a\Neues Textdokument.txt\n2016-06-20 15:57:48.119+0200 [info] (Task scheduler_file_order_sink:3718125) SCHEDULER-843 Task has ended processing of Order test/set:c:\temp\a\Neues Textdokument.txt, state=error, on JobScheduler '<a class='log' href='http://OH:4410' target='_blank'>http://OH:4410</a>'\n2016-06-20 15:57:48.126+0200 [debug3] SCHEDULER-341 Order has been set on the blacklist and is removed as soon as the Agent confirms the file removal\n2016-06-20 15:57:48.166+0200 [info] SCHEDULER-981 File has been removed\n2016-06-20 15:57:48.166+0200 [info] SCHEDULER-940 Removing order from job chain"
}
}
|
401 |
Unauthorized! |
|
application/json
model |
example
{
"title": "security",
"id": "schemas/user/security",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"hasRole": {
"type": "boolean",
"default": false
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "Oops!", "hasRole": false, "isAuthenticated": false, "isPermitted": false }
{
"user": "root",
"message": "Oops!",
"hasRole": false,
"isAuthenticated": false,
"isPermitted": false
}
|
403 |
Forbidden! The user doesn't have sufficient permissions for 'log' |
|
application/json
model |
example
{
"title": "security",
"id": "schemas/user/security",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"hasRole": {
"type": "boolean",
"default": false
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "You don't have sufficient permissions for ...", "hasRole": false, "isAuthenticated": true, "isPermitted": false }
{
"user": "root",
"message": "You don't have sufficient permissions for ...",
"hasRole": false,
"isAuthenticated": true,
"isPermitted": false
}
|
420 |
'log' failed! |
|
application/json
model |
example
{
"title": "error object with delivery date",
"id": "schemas/common/error420",
"$schema": "http://json-schema.org/draft-04/schema#",
"javaType": "com.sos.joc.model.common.Err420",
"type": "object",
"required": [
"deliveryDate",
"error"
],
"properties": {
"deliveryDate": {
"id": "schemas/common/deliveryDate",
"description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
"type": "string",
"format": "date-time"
},
"surveyDate": {
"description": "is also required for permanent or volatile requests",
"type": "string",
"format": "date-time"
},
"error": {
"id": "schemas/common/error",
"javaType": "com.sos.joc.model.common.Err",
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
{ "deliveryDate": "2016-05-05T21:13:35Z", "surveyDate": "2016-05-05T21:13:33Z", "error": { "code": "JOC-420", "message": "log failed!" } }
{
"deliveryDate": "2016-05-05T21:13:35Z",
"surveyDate": "2016-05-05T21:13:33Z",
"error": {
"code": "JOC-420",
"message": "log failed!"
}
}
|
440 |
Login Timeout! The client's session has expired and must log in again. |
|
application/json
model |
example
{
"title": "security",
"id": "schemas/user/security",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": [
"isAuthenticated"
],
"properties": {
"user": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"message": {
"type": "string"
},
"hasRole": {
"type": "boolean",
"default": false
},
"isAuthenticated": {
"type": "boolean"
},
"isPermitted": {
"type": "boolean",
"default": false
},
"sessionTimeout": {
"type": "integer",
"default": 1800
},
"enableTouch": {
"type": "boolean",
"default": true
}
}
}
{ "user": "root", "message": "Session has expired. Please log in again", "hasRole": false, "isAuthenticated": false, "isPermitted": false }
{
"user": "root",
"message": "Session has expired. Please log in again",
"hasRole": false,
"isAuthenticated": false,
"isPermitted": false
}
|