diff options
author | j00302280 <j00101220@huawei.com> | 2016-08-15 15:10:41 +0800 |
---|---|---|
committer | j00302280 <j00101220@huawei.com> | 2016-08-15 15:10:41 +0800 |
commit | 86aeea2edb0dac0e049ec75ab6616e8d19e16e22 (patch) | |
tree | 9cc5c815ad440e96cd31021a9f19b1df090f8570 /umc-iui/src/main/resources/webroot/umc-pm/json | |
parent | 8c940f2ab540e62c139498c16596bd306eac60b4 (diff) |
upload the gso gui seed code
Change-Id: I7b91cadaf817d2c92280f9ff702a7ca679fa41eb
Signed-off-by: j00302280 <j00101220@huawei.com>
Diffstat (limited to 'umc-iui/src/main/resources/webroot/umc-pm/json')
15 files changed, 900 insertions, 0 deletions
diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/counters.json b/umc-iui/src/main/resources/webroot/umc-pm/json/counters.json new file mode 100644 index 00000000..5fd15914 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/counters.json @@ -0,0 +1,25 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "CruntimeInfo.averageCpuUsage",
+ "name": "平均CPU使用率%"
+ },
+ {
+ "id": "CruntimeInfo.averageMemoryUsage",
+ "name": "平均内存使用率%"
+ },
+ {
+ "id": "Cn.cscf.businesskpi.totalUsers",
+ "name": "总用户数"
+ },
+ {
+ "id": "Cn.ims.businesskpi.totalUsers",
+ "name": "总用户数"
+ },
+ {
+ "id": "C12001789",
+ "name": "总用户数"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/index.json b/umc-iui/src/main/resources/webroot/umc-pm/json/index.json new file mode 100644 index 00000000..c6a3f1a9 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/index.json @@ -0,0 +1,18 @@ +[
+ {
+ "id": "10000",
+ "name": "指标一",
+ "indexDes": "具体信息",
+ "strExpression": "a+b",
+ "resourceType":
+ {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "ns.cn.epc.metrictype",
+ "name": "性能KPI"
+ },
+ "dataType": "0"
+ }
+]
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/indexes.json b/umc-iui/src/main/resources/webroot/umc-pm/json/indexes.json new file mode 100644 index 00000000..332cced7 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/indexes.json @@ -0,0 +1,50 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "001",
+ "name": "test指标1",
+ "indexDes": "这是一个测试指标1",
+ "strExpresstion": "vnf.runtimeInfo.averageCpuUsage+1",
+ "dataType": "STRING",
+ "resourceType": {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI-3"
+ }
+ },
+ {
+ "id": "002",
+ "name": "test指标2",
+ "indexDes": "这是一个测试指标2",
+ "strExpresstion": "vnf.runtimeInfo.averageCpuUsage+2",
+ "dataType": "STRING",
+ "resourceType": {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI-3"
+ }
+ },
+ {
+ "id": "003",
+ "name": "test指标3",
+ "indexDes": "这是一个测试指标3",
+ "strExpresstion": "vnf.runtimeInfo.averageCpuUsage+3",
+ "dataType": "STRING",
+ "resourceType": {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI-3"
+ }
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/meatasks_content.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/meatasks_content.json new file mode 100644 index 00000000..aff1b08c --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/meatasks_content.json @@ -0,0 +1,97 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "10001",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": "vnf.cn.cscf"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.001",
+ "name": "cscf001",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1448067121729
+ },
+ {
+ "id": "10002",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": "vnf.cn.cscf"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.002",
+ "name": "cscf002",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 1,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1448067121729
+ },
+ {
+ "id": "003",
+ "name": "IMS性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.ims.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1448067121729
+ },
+ {
+ "id": "004",
+ "name": "EPC性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.epc.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.epc.002",
+ "name": "epc002",
+ "resType": "ns.cn.epc"
+ }
+ ],
+ "activeStatus": 1,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1448067121729
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType.json new file mode 100644 index 00000000..f1c71218 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType.json @@ -0,0 +1,25 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "ns.cn.ims.metrictype",
+ "name": "性能KPI-1"
+ },
+ {
+ "id": "ns.cn.ims.metrictype1",
+ "name": "性能KPI-2"
+ },
+ {
+ "id": "ns.cn.ims.metrictype2",
+ "name": "性能KPI-3"
+ },
+ {
+ "id": "ns.cn.ims.metrictype3",
+ "name": "性能KPI-4"
+ },
+ {
+ "id": "ns.cn.ims.metrictype4",
+ "name": "性能KPI-5"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType1.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType1.json new file mode 100644 index 00000000..ef3c88bc --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/moType1.json @@ -0,0 +1,9 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "nfv.cn.metrictype.none",
+ "name": "开发中"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resourceType.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resourceType.json new file mode 100644 index 00000000..97276268 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resourceType.json @@ -0,0 +1,29 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "ns.cn.ims",
+ "name": "IMS"
+ },
+ {
+ "id": "vnf.cn.hss",
+ "name": "HSS"
+ },
+ {
+ "id": "vnf.cn.xgw",
+ "name": "xGW"
+ },
+ {
+ "id": "vnf.cn.sss",
+ "name": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ {
+ "id": "ns.cn.epc",
+ "name": "EPC"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources.json new file mode 100644 index 00000000..0cfee218 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources.json @@ -0,0 +1,115 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "ns.cn.ims.000",
+ "name": "ims000",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.002",
+ "name": "ims002",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.003",
+ "name": "ims003",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.004",
+ "name": "ims004",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.005",
+ "name": "ims005",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.006",
+ "name": "ims006",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.007",
+ "name": "ims007",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.008",
+ "name": "ims008",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.009",
+ "name": "ims009",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.010",
+ "name": "ims010",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.011",
+ "name": "ims011",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.012",
+ "name": "ims012",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.013",
+ "name": "ims013",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.014",
+ "name": "ims014",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.015",
+ "name": "ims015",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.016",
+ "name": "ims016",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.017",
+ "name": "ims017",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.018",
+ "name": "ims018",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.019",
+ "name": "ims019",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.020",
+ "name": "ims020",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.021",
+ "name": "ims021",
+ "resType": "ns.cn.ims"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources1.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources1.json new file mode 100644 index 00000000..cb059d1c --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources1.json @@ -0,0 +1,35 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "ns.cn.ims.000",
+ "name": "ims000",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.002",
+ "name": "ims002",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.003",
+ "name": "ims003",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.004",
+ "name": "ims004",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.005",
+ "name": "ims005",
+ "resType": "ns.cn.ims"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources2.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources2.json new file mode 100644 index 00000000..c04d4b2f --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatask/resources2.json @@ -0,0 +1,30 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "ns.cn.ims.006",
+ "name": "ims006",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.007",
+ "name": "ims007",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.008",
+ "name": "ims008",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.009",
+ "name": "ims009",
+ "resType": "ns.cn.ims"
+ },
+ {
+ "id": "ns.cn.ims.010",
+ "name": "ims010",
+ "resType": "ns.cn.ims"
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks.json new file mode 100644 index 00000000..30b9e367 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks.json @@ -0,0 +1,97 @@ +{
+ "status": 0,
+ "content": [
+ {
+ "id": "10001",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.001",
+ "name": "cscf001",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "10002",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.002",
+ "name": "cscf002",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "003",
+ "name": "IMS性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.ims.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "004",
+ "name": "EPC性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.epc.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.epc.002",
+ "name": "epc002",
+ "resType": "ns.cn.epc"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ }
+ ]
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks_content.json b/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks_content.json new file mode 100644 index 00000000..e34073e0 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/meatasks_content.json @@ -0,0 +1,94 @@ +[
+ {
+ "id": "10001",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": "vnf.cn.cscf"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.001",
+ "name": "cscf001",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "10002",
+ "name": "CSCF性能任务",
+ "resourceType": {
+ "id": "",
+ "name": "vnf.cn.cscf"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.002",
+ "name": "cscf002",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "activeStatus": 1,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "003",
+ "name": "IMS性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.ims.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ }
+ ],
+ "activeStatus": 0,
+ "granularity": 300,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ },
+ {
+ "id": "004",
+ "name": "EPC性能任务",
+ "resourceType": {
+ "id": "",
+ "name": ""
+ },
+ "moType": {
+ "id": "ns.cn.epc.metrictype",
+ "name": "性能KPI"
+ },
+ "resources": [
+ {
+ "id": "ns.cn.epc.002",
+ "name": "epc002",
+ "resType": "ns.cn.epc"
+ }
+ ],
+ "activeStatus": 1,
+ "granularity": 900,
+ "beginTime": 1447980721729,
+ "endTime": 1447980721729
+ }
+]
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/resourceType.json b/umc-iui/src/main/resources/webroot/umc-pm/json/resourceType.json new file mode 100644 index 00000000..a22c72ad --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/resourceType.json @@ -0,0 +1,8 @@ +[
+{"id":"vnf.cn.cscf","name":"CSCF"},
+{"id":"ns.cn.epc","name":"EPC"},
+{"id":"vnf.cn.cscf1","name":"CSCF1"},
+{"id":"ns.cn.epc2","name":"EPC1"},
+{"id":"vnf.cn.cscf23","name":"CSCF2"},
+{"id":"ns.cn.epcf","name":"EPC2"}
+]
diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/test.json b/umc-iui/src/main/resources/webroot/umc-pm/json/test.json new file mode 100644 index 00000000..715fe80c --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/test.json @@ -0,0 +1,152 @@ +{
+ "10001":{
+ "id": "10001",
+ "name": "测试门限任务1",
+ "resourceType": {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "threshholdValue": {
+ "indexOrCounterId": "vnf.runtimeInfo.averageMemoryUsage",
+ "indexOrCounterName": "测试指标1",
+ "criticalValue": {
+ "value": "10",
+ "delta": "1"
+ },
+ "majorValue": {
+ "value": "20",
+ "delta": "2"
+ },
+ "minorValue": {
+ "value": "30",
+ "delta": "3"
+ },
+ "warnValue": {
+ "value": "40",
+ "delta": "4"
+ },
+ "alarmType": "0"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.001",
+ "name": "cscf001",
+ "value": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf.002",
+ "name": "cscf002",
+ "value": "TTT"
+ },
+ {
+ "id": "vnf.cn.cscf.003",
+ "name": "cscf003",
+ "value": "ZZZ"
+ },
+ {
+ "id": "vnf.cn.cscf.004",
+ "name": "cscf004",
+ "value": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf.005",
+ "name": "cscf005",
+ "value": "TTT"
+ },
+ {
+ "id": "vnf.cn.cscf.006",
+ "name": "cscf006",
+ "value": "ZZZ"
+ },
+ {
+ "id": "vnf.cn.cscf.007",
+ "name": "cscf007",
+ "value": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf.008",
+ "name": "cscf008",
+ "value": "TTT"
+ },
+ {
+ "id": "vnf.cn.cscf.009",
+ "name": "cscf009",
+ "value": "ZZZ"
+ },
+ {
+ "id": "vnf.cn.cscf.010",
+ "name": "cscf010",
+ "value": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf.011",
+ "name": "cscf011",
+ "value": "TTT"
+ },
+ {
+ "id": "vnf.cn.cscf.012",
+ "name": "cscf012",
+ "value": "ZZZ"
+ },
+ {
+ "id": "vnf.cn.cscf.013",
+ "name": "cscf013",
+ "value": "SSS"
+ },
+ {
+ "id": "vnf.cn.cscf.014",
+ "name": "cscf014",
+ "value": "TTT"
+ },
+ {
+ "id": "vnf.cn.cscf.015",
+ "name": "cscf015",
+ "value": "ZZZ"
+ }
+ ]
+ },
+ "10002": {
+ "id": "10002",
+ "name": "这是一个测试门限任务2",
+ "resourceType": {
+ "id": "vnf.cn.cscf",
+ "name": "CSCF"
+ },
+ "moType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "threshholdValue": {
+ "indexOrCounterId": "8000",
+ "indexOrCounterName": "测试指标2",
+ "criticalValue": {
+ "value": "10",
+ "delta": "1"
+ },
+ "majorValue": {
+ "value": "20",
+ "delta": "2"
+ },
+ "minorValue": {
+ "value": "30",
+ "delta": "3"
+ },
+ "warnValue": {
+ "value": "40",
+ "delta": "4"
+ },
+ "alarmType": "0"
+ },
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.002",
+ "name": "cscf002",
+ "value": "YYY"
+ }
+ ]
+ }
+}
\ No newline at end of file diff --git a/umc-iui/src/main/resources/webroot/umc-pm/json/thresholdList.json b/umc-iui/src/main/resources/webroot/umc-pm/json/thresholdList.json new file mode 100644 index 00000000..e2cb1cd5 --- /dev/null +++ b/umc-iui/src/main/resources/webroot/umc-pm/json/thresholdList.json @@ -0,0 +1,116 @@ +[
+ {
+ "id": "10000",
+ "name": "EPC性能任务",
+ "resources": [
+ {
+ "id": "ns.cn.epc.001",
+ "name": "epc001",
+ "resType": "ns.cn.epc"
+ }
+ ],
+ "threshholdValue": {
+ "direction": "up",
+ "warning": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "minor": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "major": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "critical": {
+ "threshold": "20",
+ "delta": "5"
+ }
+ },
+ "metricType": {
+ "id": "ns.cn.epc.metrictype",
+ "name": "性能KPI"
+ },
+ "status": 0,
+ "granularity": 900,
+ "beginTime": 1441036800000,
+ "endTime": 1577808000000
+ },
+ {
+ "id": "10001",
+ "name": "001",
+ "resources": [
+ {
+ "id": "ns.cn.ims.001",
+ "name": "ims001",
+ "resType": "ns.cn.ims"
+ }
+ ],
+ "threshholdValue": {
+ "direction": "up",
+ "warning": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "minor": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "major": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "critical": {
+ "threshold": "20",
+ "delta": "5"
+ }
+ },
+ "metricType": {
+ "id": "ns.cn.ims.metrictype",
+ "name": "性能KPI"
+ },
+ "status": 0,
+ "granularity": 900,
+ "beginTime": 1441036800000,
+ "endTime": 1577808000000
+ },
+ {
+ "id": "10002",
+ "name": "123",
+ "resources": [
+ {
+ "id": "vnf.cn.cscf.001",
+ "name": "cscf001",
+ "resType": "vnf.cn.cscf"
+ }
+ ],
+ "threshholdValue": {
+ "direction": "up",
+ "warning": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "minor": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "major": {
+ "threshold": "20",
+ "delta": "5"
+ },
+ "critical": {
+ "threshold": "20",
+ "delta": "5"
+ }
+ },
+ "metricType": {
+ "id": "vnf.cn.cscf.metrictype",
+ "name": "性能KPI"
+ },
+ "status": 0,
+ "granularity": 900,
+ "beginTime": 1441036800000,
+ "endTime": 1577808000000
+ }
+]
\ No newline at end of file |