Create IP SLA dashboard for CSR2

POST {{baseUrl}}/api/dashboards/db

Request Body

{"dashboard"=>{"annotations"=>{"list"=>[{"builtIn"=>1, "datasource"=>"-- Grafana --", "enable"=>true, "hide"=>true, "iconColor"=>"rgba(0, 211, 255, 1)", "name"=>"Annotations & Alerts", "type"=>"dashboard"}]}, "editable"=>true, "gnetId"=>nil, "graphTooltip"=>0, "panels"=>[{"bars"=>false, "dashLength"=>10, "dashes"=>false, "datasource"=>"Docker InfluxDB", "fill"=>0, "gridPos"=>{"h"=>9, "w"=>12, "x"=>0, "y"=>0}, "id"=>101, "legend"=>{"avg"=>false, "current"=>false, "max"=>false, "min"=>false, "show"=>true, "total"=>false, "values"=>false}, "lines"=>true, "linewidth"=>1, "nullPointMode"=>"connected", "percentage"=>false, "pointradius"=>2, "points"=>true, "renderer"=>"flot", "spaceLength"=>10, "stack"=>false, "steppedLine"=>false, "targets"=>[{"alias"=>"RTT", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"A", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/rtt/sla_time_values/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"101"}]}, {"alias"=>"Jitter", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"B", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/jitter/sd/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"101"}]}, {"alias"=>"Latency", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}, {"params"=>["null"], "type"=>"fill"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"C", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/oneway_latency/sd/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"101"}]}], "timeFrom"=>nil, "timeShift"=>nil, "title"=>"CSR2 to CSR1", "tooltip"=>{"shared"=>true, "sort"=>0, "value_type"=>"individual"}, "type"=>"graph", "xaxis"=>{"buckets"=>nil, "mode"=>"time", "name"=>nil, "show"=>true}, "yaxes"=>[{"format"=>"short", "label"=>"ms", "logBase"=>1, "max"=>nil, "min"=>nil, "show"=>true}, {"format"=>"short", "label"=>nil, "logBase"=>1, "max"=>nil, "min"=>nil, "show"=>true}], "yaxis"=>{"align"=>false, "alignLevel"=>nil}}, {"bars"=>false, "dashLength"=>10, "dashes"=>false, "datasource"=>"Docker InfluxDB", "fill"=>0, "gridPos"=>{"h"=>9, "w"=>12, "x"=>0, "y"=>0}, "id"=>102, "legend"=>{"avg"=>false, "current"=>false, "max"=>false, "min"=>false, "show"=>true, "total"=>false, "values"=>false}, "lines"=>true, "linewidth"=>1, "nullPointMode"=>"connected", "percentage"=>false, "pointradius"=>2, "points"=>true, "renderer"=>"flot", "spaceLength"=>10, "stack"=>false, "steppedLine"=>false, "targets"=>[{"alias"=>"RTT", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"A", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/rtt/sla_time_values/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"102"}]}, {"alias"=>"Jitter", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"B", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/jitter/sd/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"102"}]}, {"alias"=>"Latency", "groupBy"=>[{"params"=>["$__interval"], "type"=>"time"}, {"params"=>["null"], "type"=>"fill"}], "measurement"=>"Cisco-IOS-XE-ip-sla-oper:ip-sla-stats/sla-oper-entry", "orderByTime"=>"ASC", "policy"=>"default", "refId"=>"C", "resultFormat"=>"time_series", "select"=>[[{"params"=>["stats/oneway_latency/sd/avg"], "type"=>"field"}, {"type"=>"mean"}]], "tags"=>[{"key"=>"source", "operator"=>"=", "value"=>"CSR2"}, {"condition"=>"AND", "key"=>"oper_id", "operator"=>"=", "value"=>"102"}]}], "timeFrom"=>nil, "timeShift"=>nil, "title"=>"CSR2 to CSR2", "tooltip"=>{"shared"=>true, "sort"=>0, "value_type"=>"individual"}, "type"=>"graph", "xaxis"=>{"buckets"=>nil, "mode"=>"time", "name"=>nil, "show"=>true}, "yaxes"=>[{"format"=>"short", "label"=>"ms", "logBase"=>1, "max"=>nil, "min"=>nil, "show"=>true}, {"format"=>"short", "label"=>nil, "logBase"=>1, "max"=>nil, "min"=>nil, "show"=>true}], "yaxis"=>{"align"=>false, "alignLevel"=>nil}}], "schemaVersion"=>18, "style"=>"dark", "tags"=>["nsla"], "time"=>{"from"=>"now-1h", "to"=>"now"}, "timepicker"=>{"refresh_intervals"=>["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"], "time_options"=>["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]}, "timezone"=>"", "title"=>"CSR2 SLA Performance", "version"=>1}}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring

RESPONSES

status: OK

{"id":8,"slug":"csr2-sla-performance","status":"success","uid":"WSnY6qAGk","url":"/d/WSnY6qAGk/csr2-sla-performance","version":1}