|
Virima API Specification - TimescaleService Services
The requests documented in this section are directed to
TimescaleService resources, which represent .
getAllTimescales GET Interface
Method: GET Relative URL: timescale/get-all/module Request Headers: Accept, Authorization Response Headers: Content-Length, Content-Type. Response Structure: Field Name | Type | Description |
---|
resp | TimescaleList | |
Example Request: Example Response: {
"id":162371937,
"responseList":[
{
"id":2147483647,
"priority":"?",
"responseTime":"?",
"resolutionTime":"?",
"firstLevelSupport":"?",
"secondLevelSupport":"?",
"thirdLevelSupport":"?"
} ],
"timescaleNotifications":[
{
"id":2147483647,
"customTimeScale":?,
"customTimescaleId": {
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
},
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
"notifyRoles":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyUsers":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyGroups":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyDepartments":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyProperties":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ]
} ]
}
editTimescales POST Interface
Method: POST Relative URL: timescale/edit/module Request Headers: Accept, Authorization Response Headers: Content-Length, Content-Type. Request Structure: Field Name | Type | Description |
---|
editIncidentTimescaleList | EditTimescaleList | |
Response Structure: Field Name | Type | Description |
---|
response | TimescaleList | |
Example Request: EDITTIMESCALES
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
"editIncidentTimescaleList":[
{
"responseTime":"?",
"resolutionTime":"?",
"firstLevelSupport":"?",
"secondLevelSupport":"?",
"thirdLevelSupport":"?",
"timescaleNotifications":[
{
"customTimeScale":?,
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
} ]
} ],
"timescaleNotifications":[
{
"customTimeScale":?,
"customTimescaleId": {
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
},
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
"notifyRoles":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyUsers":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyGroups":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyDepartments":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyProperties":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ]
} ]
}
Example Response: {
"id":2147483647,
"responseList":[
{
"id":2147483647,
"priority":"?",
"responseTime":"?",
"resolutionTime":"?",
"firstLevelSupport":"?",
"secondLevelSupport":"?",
"thirdLevelSupport":"?"
} ],
"timescaleNotifications":[
{
"id":2147483647,
"customTimeScale":?,
"customTimescaleId": {
"id":783149860,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
},
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
"notifyRoles":[
{
"id":2131690436,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyUsers":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyGroups":[
{
"id":500106744,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyDepartments":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyProperties":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ]
} ]
}
addCustomTimescale POST Interface
Method: POST Relative URL: timescale/add/entity-id/module Request Headers: Accept, Authorization Response Headers: Content-Length, Content-Type. Request Structure: Field Name | Type | Description |
---|
editIncidentTimescaleList | EditTimescale | |
Response Structure: Field Name | Type | Description |
---|
response | Response | |
Example Request: ADDCUSTOMTIMESCALE
Host: example.com
Authorization: Basic xxxxxxxxxxxxxxxxxxx
Content-Type : nnn
{
"responseTime":"?",
"resolutionTime":"?",
"firstLevelSupport":"?",
"secondLevelSupport":"?",
"thirdLevelSupport":"?",
"timescaleNotifications":[
{
"customTimeScale":?,
"customTimescaleId": {
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
},
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
"notifyRoles":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyUsers":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyGroups":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyDepartments":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyProperties":[
{
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ]
} ]
}
Example Response: {
"id":2147483647,
"response":"?"
}
getCustomTimescale GET Interface
Method: GET Relative URL: timescale/get/entity-id/module Request Headers: Accept, Authorization Response Headers: Content-Length, Content-Type. Response Structure: Field Name | Type | Description |
---|
resp | EditTimescale | |
Example Request: Example Response: {
"id":2147483647,
"responseTime":"?",
"resolutionTime":"?",
"firstLevelSupport":"?",
"secondLevelSupport":"?",
"thirdLevelSupport":"?",
"timescaleNotifications":[
{
"id":2147483647,
"customTimeScale":?,
"customTimescaleId": {
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
},
"action":"?",
"timing":"?",
"minutes":"?",
"module":"?",
"notifyRoles":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyUsers":[
{
"id":1539047332,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyGroups":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyDepartments":[
{
"id":2140409193,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ],
"notifyProperties":[
{
"id":2147483647,
"stringobj":"?",
"shortName":"?",
"s3Name":"?",
"uniqueId":"?",
"lineType":"?",
} ]
} ]
}
|