adapating series overwrite
parent
a261e38283
commit
cfe9e2140a
|
|
@ -184,7 +184,7 @@ def get_DataExplorerTile_SingleValue(customName, metricSelector, remoteEnvironme
|
||||||
"bounds": bounds,
|
"bounds": bounds,
|
||||||
"tileFilter": { "timeframe": timeframe },
|
"tileFilter": { "timeframe": timeframe },
|
||||||
"remoteEnvironmentUri": remoteEnvironmentUrl,
|
"remoteEnvironmentUri": remoteEnvironmentUrl,
|
||||||
"customName": customName,
|
"customName": metricSelector,
|
||||||
"queries": [
|
"queries": [
|
||||||
{
|
{
|
||||||
"id": "A",
|
"id": "A",
|
||||||
|
|
@ -199,7 +199,7 @@ def get_DataExplorerTile_SingleValue(customName, metricSelector, remoteEnvironme
|
||||||
|
|
||||||
"visualConfig": {
|
"visualConfig": {
|
||||||
"type": "SINGLE_VALUE", "global": { "seriesType": "LINE", "hideLegend": "true" },
|
"type": "SINGLE_VALUE", "global": { "seriesType": "LINE", "hideLegend": "true" },
|
||||||
"rules": [ { "matcher": "A:", "properties": { "color": "DEFAULT", "seriesType": "LINE", "alias": "SLO" }, "seriesOverrides": [{"name": customName, "color": "#ffffff"}] } ],
|
"rules": [ { "matcher": "A:", "properties": { "color": "DEFAULT", "seriesType": "LINE", "alias": "SLO" }, "seriesOverrides": [{"name": metricSelector, "color": "#ffffff"}] } ],
|
||||||
"axes": { "xAxis": { "visible": "true" }, "yAxes": [] },
|
"axes": { "xAxis": { "visible": "true" }, "yAxes": [] },
|
||||||
"heatmapSettings": {},
|
"heatmapSettings": {},
|
||||||
"singleValueSettings": { "showTrend": "false", "showSparkLine": "false", "linkTileColorToThreshold": "true" },
|
"singleValueSettings": { "showTrend": "false", "showSparkLine": "false", "linkTileColorToThreshold": "true" },
|
||||||
|
|
@ -219,7 +219,7 @@ def get_DataExplorerTile_Graph(customName, metricSelector, remoteEnvironmentUrl,
|
||||||
"bounds": bounds,
|
"bounds": bounds,
|
||||||
"tileFilter": { "timeframe": timeframe },
|
"tileFilter": { "timeframe": timeframe },
|
||||||
"remoteEnvironmentUri": remoteEnvironmentUrl,
|
"remoteEnvironmentUri": remoteEnvironmentUrl,
|
||||||
"customName": customName,
|
"customName": metricSelector,
|
||||||
"queries": [
|
"queries": [
|
||||||
{
|
{
|
||||||
"id": "A",
|
"id": "A",
|
||||||
|
|
@ -234,7 +234,7 @@ def get_DataExplorerTile_Graph(customName, metricSelector, remoteEnvironmentUrl,
|
||||||
|
|
||||||
"visualConfig": {
|
"visualConfig": {
|
||||||
"type": "GRAPH_CHART", "global": { "seriesType": "LINE", "hideLegend": "true" },
|
"type": "GRAPH_CHART", "global": { "seriesType": "LINE", "hideLegend": "true" },
|
||||||
"rules": [ { "matcher": "A:", "properties": { "color": "DEFAULT", "seriesType": "LINE", "alias": "SLO" }, "seriesOverrides": [{"name": customName, "color": "#ffffff"}] } ],
|
"rules": [ { "matcher": "A:", "properties": { "color": "DEFAULT", "seriesType": "LINE", "alias": "SLO" }, "seriesOverrides": [{"name": metricSelector, "color": "#ffffff"}] } ],
|
||||||
"axes": { "xAxis": { "visible": "true" }, "yAxes": [{ "displayName": "", "visible": "true", "min": axisTargetMin, "max": axisTargetMax, "position": "LEFT", "queryIds": [ "A" ], "defaultAxis": "true" }] },
|
"axes": { "xAxis": { "visible": "true" }, "yAxes": [{ "displayName": "", "visible": "true", "min": axisTargetMin, "max": axisTargetMax, "position": "LEFT", "queryIds": [ "A" ], "defaultAxis": "true" }] },
|
||||||
"heatmapSettings": {},
|
"heatmapSettings": {},
|
||||||
"singleValueSettings": { "showTrend": "false", "showSparkLine": "false", "linkTileColorToThreshold": "true" },
|
"singleValueSettings": { "showTrend": "false", "showSparkLine": "false", "linkTileColorToThreshold": "true" },
|
||||||
|
|
@ -314,8 +314,6 @@ def main(slo_path):
|
||||||
if(args.rows is not None):
|
if(args.rows is not None):
|
||||||
rowcount = args.rows
|
rowcount = args.rows
|
||||||
for slo_name, configuration in slo_doc.items():
|
for slo_name, configuration in slo_doc.items():
|
||||||
if "TP_" + args.touchpoint in slo_name:
|
|
||||||
print (slo_name + " eq " + args.touchpoint)
|
|
||||||
if "TP_" + args.touchpoint in slo_name:
|
if "TP_" + args.touchpoint in slo_name:
|
||||||
slo_index = configuration["index"]
|
slo_index = configuration["index"]
|
||||||
currindex = slo_index
|
currindex = slo_index
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue