/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

[
  {
    "id": "General-Service",
    "configuration": {
      "children": [
        {
          "x": 0,
          "y": 0,
          "w": 24,
          "h": 52,
          "i": "4",
          "type": "Tab",
          "widget": {
            "title": "Title"
          },
          "graph": {},
          "metrics": [
            ""
          ],
          "metricTypes": [
            ""
          ],
          "activedTabIndex": 0,
          "children": [
            {
              "name": "Overview",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 8,
                  "h": 5,
                  "i": "0",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Apdex"
                  },
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center"
                  },
                  "metrics": [
                    "service_apdex"
                  ],
                  "metricTypes": [
                    "readMetricsValue"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "apdex"
                    }
                  ]
                },
                {
                  "x": 8,
                  "y": 0,
                  "w": 8,
                  "h": 5,
                  "i": "1",
                  "type": "Widget",
                  "widget": {
                    "title": "Success Rate"
                  },
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "metrics": [
                    "service_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValue"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage",
                      "unit": "%"
                    }
                  ]
                },
                {
                  "x": 16,
                  "y": 0,
                  "w": 8,
                  "h": 5,
                  "i": "2",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Load (calls / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min)"
                  },
                  "graph": {
                    "type": "Card",
                    "fontSize": 14,
                    "textAlign": "center",
                    "showUnit": true
                  },
                  "metrics": [
                    "service_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValue"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "unit": "calls / min"
                    }
                  ]
                },
                {
                  "x": 0,
                  "y": 5,
                  "w": 6,
                  "h": 11,
                  "i": "3",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Avg Response Time (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {}
                  ]
                },
                {
                  "x": 6,
                  "y": 5,
                  "w": 6,
                  "h": 11,
                  "i": "4",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Apdex"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_apdex"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "apdex"
                    }
                  ]
                },
                {
                  "x": 12,
                  "y": 5,
                  "w": 6,
                  "h": 11,
                  "i": "5",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Response Time Percentile (ms)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_percentile"
                  ],
                  "metricTypes": [
                    "readLabeledMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "label": "P50, P75, P90, P95, P99",
                      "labelsIndex": "0, 1, 2, 3, 4"
                    }
                  ]
                },
                {
                  "x": 18,
                  "y": 5,
                  "w": 6,
                  "h": 11,
                  "i": "6",
                  "type": "Widget",
                  "widget": {
                    "title": "Success Rate (%)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_sla"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage"
                    }
                  ]
                },
                {
                  "x": 0,
                  "y": 16,
                  "w": 8,
                  "h": 11,
                  "i": "7",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Load (calls / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_cpm"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 8,
                  "y": 16,
                  "w": 8,
                  "h": 11,
                  "i": "9",
                  "type": "Widget",
                  "widget": {
                    "title": "Message Queue Consuming Count"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_mq_consume_count"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 16,
                  "w": 8,
                  "h": 11,
                  "i": "10",
                  "type": "Widget",
                  "widget": {
                    "title": "Message Queue Avg Consuming Latency (ms)",
                    "tips": "The avg latency of message consuming. Latency = timestamp(received) - timestamp(producing)"
                  },
                  "graph": {
                    "type": "Line",
                    "step": false,
                    "smooth": false,
                    "showSymbol": false,
                    "showXAxis": true,
                    "showYAxis": true
                  },
                  "metrics": [
                    "service_mq_consume_latency"
                  ],
                  "metricTypes": [
                    "readMetricsValues"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 27,
                  "w": 8,
                  "h": 14,
                  "i": "11",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instances Load (calls / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min),"
                  },
                  "graph": {
                    "type": "TopList"
                  },
                  "metrics": [
                    "service_instance_cpm"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "metricConfig": [
                    {
                      "sortOrder": "DES",
                      "calculation": "percentage"
                    }
                  ],
                  "moved": false
                },
                {
                  "x": 8,
                  "y": 27,
                  "w": 8,
                  "h": 14,
                  "i": "12",
                  "type": "Widget",
                  "widget": {
                    "title": "Slow Service Instance (ms)"
                  },
                  "graph": {
                    "type": "TopList",
                    "topN": "10"
                  },
                  "metrics": [
                    "service_instance_resp_time"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "metricConfig": [
                    {
                      "sortOrder": "DES",
                      "calculation": "percentage"
                    }
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 27,
                  "w": 8,
                  "h": 14,
                  "i": "13",
                  "type": "Widget",
                  "widget": {
                    "title": "Service Instance Success Rate (%)"
                  },
                  "graph": {
                    "type": "TopList",
                    "topN": "10"
                  },
                  "metrics": [
                    "service_instance_sla"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "metricConfig": [
                    {
                      "sortOrder": "ASC",
                      "calculation": "percentage"
                    }
                  ],
                  "moved": false
                },
                {
                  "x": 16,
                  "y": 41,
                  "w": 8,
                  "h": 13,
                  "i": "20",
                  "type": "Widget",
                  "widget": {
                    "title": "Success Rate in Current Service (%)"
                  },
                  "graph": {
                    "type": "TopList",
                    "topN": "10"
                  },
                  "metrics": [
                    "endpoint_sla"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "calculation": "percentage"
                    }
                  ]
                },
                {
                  "x": 8,
                  "y": 41,
                  "w": 8,
                  "h": 13,
                  "i": "21",
                  "type": "Widget",
                  "widget": {
                    "title": "Slow Endpoints in Current Service (ms)"
                  },
                  "graph": {
                    "type": "TopList",
                    "topN": "10"
                  },
                  "standard": {},
                  "metrics": [
                    "endpoint_resp_time"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 41,
                  "w": 8,
                  "h": 13,
                  "i": "22",
                  "type": "Widget",
                  "widget": {
                    "title": "Endpoint Load in Current Service (calls / min)",
                    "tips": "For HTTP 1/2, gRPC, RPC services, this means Calls Per Minute (calls / min), for TCP services"
                  },
                  "graph": {
                    "type": "TopList",
                    "topN": "10"
                  },
                  "metrics": [
                    "endpoint_cpm"
                  ],
                  "metricTypes": [
                    "sortMetrics"
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "Instance",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 49,
                  "i": "0",
                  "type": "Widget",
                  "widget": {
                    "title": ""
                  },
                  "graph": {
                    "type": "InstanceList",
                    "dashboardName": "General-Instance",
                    "fontSize": 12
                  },
                  "metrics": [
                    "service_instance_cpm",
                    "service_instance_sla",
                    "service_instance_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "label": "Load",
                      "unit": "calls / min",
                      "calculation": "average"
                    },
                    {
                      "calculation": "percentageAvg",
                      "unit": "%",
                      "label": "Success Rate"
                    },
                    {
                      "calculation": "average",
                      "label": "Latency",
                      "unit": "ms"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Endpoint",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 49,
                  "i": "0",
                  "type": "Widget",
                  "widget": {
                    "title": ""
                  },
                  "graph": {
                    "type": "EndpointList",
                    "dashboardName": "General-Endpoint",
                    "fontSize": 12,
                    "showXAxis": false,
                    "showYAxis": false
                  },
                  "metrics": [
                    "endpoint_cpm",
                    "endpoint_sla",
                    "endpoint_resp_time"
                  ],
                  "metricTypes": [
                    "readMetricsValues",
                    "readMetricsValues",
                    "readMetricsValues"
                  ],
                  "moved": false,
                  "metricConfig": [
                    {
                      "label": "Load",
                      "unit": "calls / min",
                      "calculation": "average"
                    },
                    {
                      "calculation": "percentageAvg",
                      "unit": "%",
                      "label": "Success Rate"
                    },
                    {
                      "calculation": "average",
                      "label": "Latency",
                      "unit": "ms"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Topology",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 48,
                  "i": "0",
                  "type": "Topology",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {
                    "showDepth": true
                  },
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false,
                  "linkDashboard": "General-Service-Relation",
                  "nodeDashboard": [
                    {
                      "scope": "Service",
                      "dashboard": "General-Service"
                    },
                    {
                      "scope": "ServiceInstance",
                      "dashboard": "General-Instance"
                    },
                    {
                      "scope": "Endpoint",
                      "dashboard": "General-Endpoint"
                    }
                  ],
                  "linkServerMetrics": [
                    "service_relation_server_resp_time",
                    "service_relation_server_cpm"
                  ],
                  "linkClientMetrics": [
                    "service_relation_client_cpm",
                    "service_relation_client_resp_time"
                  ],
                  "nodeMetrics": [
                    "service_cpm",
                    "service_sla",
                    "service_resp_time"
                  ],
                  "legend": [
                    {
                      "name": "service_sla",
                      "condition": "<",
                      "value": "9500"
                    },
                    {
                      "name": "service_cpm",
                      "condition": ">",
                      "value": "1"
                    }
                  ],
                  "description": {
                    "healthy": "Healthy",
                    "unhealthy": "Success Rate < 95% and Traffic > 1 call/min"
                  },
                  "nodeMetricConfig": [
                    {
                      "unit": "calls / min",
                      "label": "Load"
                    },
                    {
                      "calculation": "percentage",
                      "unit": "%",
                      "label": "Success Rate"
                    },
                    {
                      "unit": "ms",
                      "label": "Latency"
                    }
                  ],
                  "linkServerMetricConfig": [
                    {
                      "unit": "ms",
                      "label": "Server Latency"
                    },
                    {
                      "unit": "calls / min",
                      "label": "Server Load"
                    }
                  ],
                  "linkClientMetricConfig": [
                    {
                      "unit": "calls / min",
                      "label": "Client Load"
                    },
                    {
                      "unit": "ms",
                      "label": "Client Latency"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Trace",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 48,
                  "i": "0",
                  "type": "Trace",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                }
              ]
            },
            {
              "name": "Trace Profiling",
              "children": [
                {
                  "x": 0,
                  "y": 2,
                  "w": 24,
                  "h": 47,
                  "i": "0",
                  "type": "Profile",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 2,
                  "i": "2",
                  "type": "Text",
                  "metricTypes": [
                    ""
                  ],
                  "metrics": [
                    ""
                  ],
                  "graph": {
                    "fontColor": "white",
                    "backgroundColor": "blue",
                    "content": "Trace Profiling supported services written in Java or Python with SkyWalking native agents installed.",
                    "fontSize": 14,
                    "textAlign": "left",
                    "url": ""
                  },
                  "moved": false
                }
              ]
            },
            {
              "name": "eBPF Profiling",
              "children": [
                {
                  "x": 0,
                  "y": 2,
                  "w": 24,
                  "h": 47,
                  "i": "1",
                  "type": "Ebpf",
                  "metricTypes": [
                    ""
                  ],
                  "metrics": [
                    ""
                  ],
                  "moved": false
                },
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 2,
                  "i": "3",
                  "type": "Text",
                  "metricTypes": [
                    ""
                  ],
                  "metrics": [
                    ""
                  ],
                  "graph": {
                    "fontColor": "white",
                    "backgroundColor": "blue",
                    "content": "eBPF Profiling support services written in C, C++, Golang, and Rust. SkyWalking Rover provides this profiling capability. ",
                    "fontSize": 14,
                    "textAlign": "left",
                    "url": "https://skywalking.apache.org/docs/skywalking-rover/latest/readme/"
                  },
                  "moved": false
                }
              ]
            },
            {
              "name": "Log",
              "children": [
                {
                  "x": 0,
                  "y": 0,
                  "w": 24,
                  "h": 48,
                  "i": "0",
                  "type": "Log",
                  "widget": {
                    "title": "Title"
                  },
                  "graph": {},
                  "metrics": [
                    ""
                  ],
                  "metricTypes": [
                    ""
                  ],
                  "moved": false
                }
              ]
            }
          ],
          "moved": false
        }
      ],
      "layer": "GENERAL",
      "entity": "Service",
      "name": "General-Service",
      "id": "General-Service"
    }
  }
]