API

If you would like to check system status from your own applications, we provide a basic JSON API.

GET /iceland/iceland.json

returns a json with status information about the business process iceland

{
    "processes": [
        {
            "status": 0, 
            "process_name": "environment", 
            "display_name": "Environment and Natural disasters", 
            "human_friendly_status": "normal", 
            "process_type": "businessprocess"
        }, 
        {
            "status": 0, 
            "process_name": "transportation", 
            "display_name": "Transportation in Iceland", 
            "human_friendly_status": "normal", 
            "process_type": "businessprocess"
        }, 
        {
            "status": 0, 
            "process_name": "finance", 
            "display_name": "Financial Sector", 
            "human_friendly_status": "normal", 
            "process_type": "businessprocess"
        }, 
        {
            "status": 0, 
            "process_name": "healthcare", 
            "display_name": "Health Care", 
            "human_friendly_status": "normal", 
            "process_type": "businessprocess"
        }, 
        {
            "status": 0, 
            "process_name": "internet-infrastructure", 
            "display_name": "Icelandic Internet Infrastructure", 
            "human_friendly_status": "normal", 
            "process_type": "businessprocess"
        }
    ], 
    "display_name": "Iceland", 
    "name": "iceland", 
    "tags": "", 
    "rules": [
        [
            "mission critical", 
            1, 
            "major"
        ], 
        [
            "not critical", 
            1, 
            "minor"
        ]
    ], 
    "notes": "This is a real-time monitor of various metrics important to Icelandic society. Metrics include everything from radiation levels, status of public transport and availability of important on-line services. The purpose of the site is to develop a business intelligence module in Adagios which is the monitoring engine under the hood.", 
    "status_method": "use_business_rules", 
    "graphs": [
        {
            "graph_type": "pnp", 
            "notes": "Patients in ER (emergency room)", 
            "service_description": "Landspitali Counters", 
            "host_name": "landspitali.is", 
            "metric_name": "patients-er"
        }, 
        {
            "host_name": "www.loft.rvk.is", 
            "graph_type": "pnp", 
            "notes": "Radiation levels in Reykjavik", 
            "metric_name": "max_value", 
            "service_description": "Radiation levels"
        }, 
        {
            "graph_type": "pnp", 
            "notes": "Average response time of Icelandic web servers", 
            "service_description": "HTTP Servers monitored", 
            "metric_name": "average_value", 
            "host_name": "status.adagios.org"
        }, 
        {
            "graph_type": "pnp", 
            "notes": "Number of web servers monitored", 
            "metric_name": "number_of_metrics", 
            "host_name": "status.adagios.org", 
            "service_description": "HTTP Servers monitored"
        }, 
        {
            "graph_type": "pnp", 
            "notes": "Relative value of the icelandic krona", 
            "service_description": "Aggregated Exchange rates", 
            "host_name": "status.adagios.org", 
            "metric_name": "average_value"
        }, 
        {
            "graph_type": "pnp", 
            "notes": "Particulate Matter polution", 
            "metric_name": "max_value", 
            "host_name": "www.loft.rvk.is", 
            "service_description": "Particulate Matter"
        }
    ], 
    "state_1": "minor problems", 
    "state_0": "normal", 
    "state_3": "unknown", 
    "state_2": "major problems"
}

GET /iceland/graphs.json

Returns a json with link to all the graphs of the "iceland" business process.

[
    {
        "end": 1374358803, 
        "title": "4 Hours", 
        "notes": "Patients in ER (emergency room)", 
        "ds_name": "patients-er", 
        "start": 1374344403, 
        "image_url": "host=landspitali.is&srv=Landspitali_Counters&source=7&view=0.png", 
        "last_value": "18 "
    }, 
    {
        "end": 1374358803, 
        "title": "25 Hours", 
        "notes": "Patients in ER (emergency room)", 
        "ds_name": "patients-er", 
        "start": 1374268803, 
        "image_url": "host=landspitali.is&srv=Landspitali_Counters&source=7&view=1.png", 
        "last_value": "18 "
    }, 
    {