From 0faacb09b2c835407c71b64541c663043265917b Mon Sep 17 00:00:00 2001 From: sjana Date: Fri, 20 Mar 2020 01:19:01 -0400 Subject: [PATCH] Schemas used by HWxpp Issue-ID: RICAPP-63 Signed-off-by: sjana Change-Id: Id47341268a83ba2512039c3f06d5de144713fa79 --- schemas/hwxapp-policy.json | 22 ++++++++++++++++++++++ schemas/hwxapp-ves.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 schemas/hwxapp-policy.json create mode 100644 schemas/hwxapp-ves.json diff --git a/schemas/hwxapp-policy.json b/schemas/hwxapp-policy.json new file mode 100644 index 0000000..6f322ea --- /dev/null +++ b/schemas/hwxapp-policy.json @@ -0,0 +1,22 @@ +{ + "downstream_policy_message": { + "policy_type_id":21000, + "operation":"CREATE", + "policy_instance_id":"Hello-world", + "payload":{ + "class":12, + "enforce":true, + "window_length":20, + "blocking_rate":20, + "trigger_threshold":10 + } + }, + + "notify_policy_message": { + "policy_instance_id":"Hello-world", + "policy_type_id":21000, + "status":"OK", + "handler_id":"HWxAPP1234" + } +} + diff --git a/schemas/hwxapp-ves.json b/schemas/hwxapp-ves.json new file mode 100644 index 0000000..7bbf969 --- /dev/null +++ b/schemas/hwxapp-ves.json @@ -0,0 +1,30 @@ +{ + + "metrics": { + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1542231546086613, + "eventId": "HW Requests", + "eventType": "HW Request Rate", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "HW xAPP", + "sequence": 0, + "domain": "measurement", + "lastEpochMicrosec": 1542231556086613, + "eventName": "Measurement_vGMUX", + "sourceName": "hw-xapp", + "vesEventListenerVersion": "7.0.1" + }, + "measurementFields": { + "additionalFields":{ + "Class Id":1, + "HW Request Count":"100", + "HW Accept Count":"10" + }, + "measurementInterval":60, + "measurementFieldsVersion":"4.0" + } + } + } +} -- 2.16.6