Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is an  complete example Snapshot Report Schedule in JSON form:

Code Block
{
    "active" : false,
    "description": "an example weekly snapshot report",
    "type": "snapshot",
    "outputdir" : "/usr/local/omk/var/reports",
    "start" : "mon 00:00",
    "end" : "sun: 24:00",
    "frequency" : "weekly",
    "formats" : {
        "csv" : true,
        "xlsx" : true,
        "html" : true
    },
    "options": {
        "peak_type": "combined",
        "capacity_type": "combined"
    },
    "pages" : [ {{
        "business_services" : [ "first service", "second service" ],
        "options" : {
            "title" : "this is page one",
            "graph_order" : "same_row",
            "graph" : "abits",
            "summary_title" : "this is summary one",
            "column_heading" : "Links on page one",
            "levels" : {
                "low": {
                    "color": "green",
                    "description" : "low util",
                    "threshold": -1
                },
                "high" : {
                    "color": "red",
                    "description" : "high util",
                    "threshold": 50
                }
            }
        }
    }, {
        "options" : {
            "graph" : "autil",
            "summary_title" : "this is summary two",
            "column_heading" : "Other Intfs",
            "title" : "page two",
            "graph_order" : "same_column",
            "levels" : {
                "boring" : {
                    "color" : "#00ff00",
                    "description" : "30-60%",
                    "threshold" : 30
                },
                "third" : {
                    "description" : "1-30%",
                    "color" : "#008000",
                    "threshold" : 1
                },
                "attic" : {
                    "color" : "#ffa31a",
                    "description" : "above 80%",
                    "threshold" : 80
                },
                "ground" : {
                    "color" : "#004d00",
                    "description" : "under 1%",
                    "threshold" : -1
                },
                "balcony" : {
                    "threshold" : 60,
                    "color" : "#c6ff1a",
                    "description" : "60-80%"
                }
            }
        },
        "business_services" : [ "another business service" , "and one more with more intfs", "and maybe a last one, too"]
   ] } ] 
}