Service status information may be integrated with other websites and devices using 5 APIs shown below.
Get current and upcoming service status events.
The main feed for the service status website, returns upcoming service events as well as current and recent ones.
http://<serviceview_url>/index.php?AP=service_ap&ACT=ajax_get_events
<service_id>† | Specify the ID of the service. Omitting this parameter will return events for all services |
<public_fg>† | Set to yes to only show public events. |
<from_dt>† | Date to show events from format YYYY-MM-DD |
<show_after_date>† | If set to yes events after |
<dt>† | Only show events on this date, format YYYY-MM-DD |
<page>† | The events can be paginated using the <page> and <num_per_page> parameters, otherwise 100 events are returned if not specified. |
<num_per_page>† | Number of events to return in each page. See <page> |
<secret> | The value of the SECRET option set in the options setup section. |
† Optional parameter
Data is returned JSON encoded in a format suitable for the Datatables jQuery plugin but can be used for other purposes:
sEcho | Used internally by Datatables |
iTotalRecords | Used internally by Datatables |
iTotalDisplayRecords | Used internally by Datatables |
aaData | The returned data with the following fields: |
event_id | ID of event used when subscribing to events. |
service_name | Service name |
description | Event description |
service_availability_cd |
Code indicating whether service was available during the event: 1 - Service NOT available during period 2 - Reduced service delivery during period 3 - No impact on service during period |
event_group_id |
Internal reference to type of event. 2 - Unscheduled Outage 3 - Unscheduled Service Reduction 4 - Scheduled Service Maintenance 5 - Scheduled Service Outage 9 - For Information |
start_dt | Date & time event started |
end_dt | Date & time event finished |
service_id | Internal reference of affected service |
event_status_id |
Current status of event: 1 - Open event 2 - Resolved event |
event_name | Event title |
public_fg | If event public or internal only, set to yes for public |
event_group_name | Type of event |
The current and upcoming status of service can be viewed using LEDs giving a quick at a glance view of overall service status. This information may be integrated with other websites and devices using the API shown below.
http://<serviceview_url>/index.php?AP=service_ap&ACT=ajax_list_public_service_status
<future_hours>† | The number represents the number of hours to look ahead by for reporting showing future planned outages for services. |
<secret> | The value of the SECRET option set in the options setup section. |
† Optional parameter
Returns
Data is returned JSON encoded in a format suitable for the Datatables jQuery plugin but can be used for other purposes:
service_group_id | ID of the service group. |
service_id | ID of the service. |
service_name | Service name |
service_group_name | Service category or group name |
service_description | Description of service |
status | Current status containing: |
color |
Color for LED light: Red - outage Orange - Service reduction Yellow - Upcoming outage Green - Service okay |
comment | Comment for status. i.e. Outage in 5 hours |
event_id | The event_id causing the non green status |
event_name | The name of the event |
This API is used to pull more details on a specific event.
http://<serviceview_url>/index.php?AP=service_ap&ACT=ajax_get_event&event_id=<event_id>&secret=<secret>
<event_id> | The unique ID of the event. |
<secret> | The value of the SECRET option set in the options setup section. |
event_details: { event_id: "16165", service_id: "137", event_status_id: "1", service_name: "Oracle General Purpose and Web Database Servers (Infrastructure)", description: "Migrating and upgrading Headshot production database from 11g to 12c.", service_availability_cd: "1", event_group_id: "4", event_group_name: "Scheduled", start_dt: "2016-02-29 17:05:00", end_dt: "2016-02-29 19:35:00", event_name: "Headshot production database 12c upgrade", public_fg: "yes", service_availability: "Service NOT available during period" }, event_annotations: [ ] }
Comments
The HTTP request can either be sent using a HTTP GET or POST request. Given the description section may be long a HTTP POST is recommended.
ServiceView has the ability for people to follow or subscribe to a service status event, informing them when the event is over.
https://<serviceview_url>/get_event.php?ACT=follow_event&secret=<SECRET>&event_id=<EVENTID>&first_name=<FIRSTNAME>&last_name=<LASTNAME>&email_address=<EMAIL>&username=<USERNAME>&mobile=<MOBILE>
<event_id> | ID of the event. This parameter is returned from the step 1 API. |
<secret> | The value of the SECRET. |
<first_name> | Users first name. |
<last_name> | Users last name. |
<email_address> | Email address of the user. |
<username> | Username of the user. |
<mobile> | Mobile number of the user, used for SMS alerts. |
The HTTP request can either be sent using a HTTP GET or POST request.
If successsful you will get a message saying:
[true,"Successfully Added Follow Event Notification for Service '' and Incident Client <USERNAME> "]
Service availability information can be retrieved from ServiceView using a HTTP request:
http://<serviceview_url>/index.php?AP=service_ap&ACT=ajax_get_service_availability_period&service_code=<service>&start_dt=<start_dt>&end_dt=<end_dt>&secret=<secret>
<service_code> | The unique code associated with each service entered from the add or edit service dialog. Alternatrely a service ID can be used by passing in service_id= |
<start_dt> | Period start date in the format YYYY-MM-DD |
<end_dt> | Period end date in the format YYYY-MM-DD |
<secret> | The value of the SECRET option set in the options setup section. |
JSON encoded nulti-dimentional array containing service availabity details and events affecting service availability: