kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 1 | /* |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * dcaegen2-collectors-veshv |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2018 NOKIA |
| 6 | * ================================================================================ |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * ============LICENSE_END========================================================= |
| 19 | */ |
| 20 | syntax = "proto3"; |
| 21 | package org.onap.ves; |
| 22 | |
| 23 | // Definition for RTPM, structure aligned with 3GPP PM format optimized for RTPM delivery pre-standard TS 28.550 V2.0.0 (2018-09). |
| 24 | // Some field details are taken from 3GPP TS 32.436 V15.0.0 (2018-06) ASN.1 file. |
| 25 | // Note (2018-09): work is in progress for 3GPP TS 28.550. Changes will be made, if needed, to align with final version. |
| 26 | // Differences/additions to 3GPP TS 28.550 are marked with "%%". |
| 27 | |
| 28 | message MeasDataCollection // top-level message |
| 29 | { |
| 30 | // %% Combined messageFileHeader, measData (single instance), messageFileFooter (not needed: timestamp = collectionBeginTime + granularityPeriod). |
| 31 | string formatVersion = 1; // required, current value "28.550 2.0" |
| 32 | uint32 granularityPeriod = 2; // required, duration in seconds, %% moved from MeasInfo (single reporting period per event) |
| 33 | string measuredEntityUserName = 3; // network function user definable name ("userLabel") defined for the measured entity in 3GPP TS 28.622 |
| 34 | string measuredEntityDn = 4; // DN as per 3GPP TS 32.300 |
| 35 | string measuredEntitySoftwareVersion = 5; |
| 36 | repeated string measObjInstIdList = 6; // %%: optional, monitored object LDNs as per 3GPP TS 32.300 and 3GPP TS 32.432 |
| 37 | repeated MeasInfo measInfo = 7; |
| 38 | } |
| 39 | |
| 40 | message MeasInfo |
| 41 | { |
| 42 | oneof MeasInfoId { // measurement group identifier |
| 43 | uint32 iMeasInfoId = 1; // identifier as integer (%%: more compact) |
kjaniak | e284409 | 2018-11-14 15:42:03 +0100 | [diff] [blame] | 44 | string sMeasInfoId = 2; // identifier as string (more generic) |
kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | oneof MeasTypes { // measurement identifiers associated with the measurement results |
| 48 | IMeasTypes iMeasTypes = 3; // identifiers as integers (%%: more compact) |
kjaniak | e284409 | 2018-11-14 15:42:03 +0100 | [diff] [blame] | 49 | SMeasTypes sMeasTypes = 4; // identifiers as strings (more generic) |
kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 50 | } |
| 51 | // Needed only because GPB does not support repeated fields directly inside 'oneof' |
| 52 | message IMeasTypes { repeated uint32 iMeasType = 1; } |
kjaniak | e284409 | 2018-11-14 15:42:03 +0100 | [diff] [blame] | 53 | message SMeasTypes { repeated string sMeasType = 1; } |
kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 54 | |
| 55 | string jobId = 5; |
| 56 | repeated MeasValue measValues = 6; // performance measurements grouped by measurement object |
| 57 | } |
| 58 | |
| 59 | message MeasValue |
| 60 | { |
| 61 | oneof MeasObjInstId { // monitored object LDN as per 3GPP TS 32.300 and 3GPP TS 32.432 |
kjaniak | e284409 | 2018-11-14 15:42:03 +0100 | [diff] [blame] | 62 | string sMeasObjInstId = 1; // LDN itself |
kjaniak | 6bf5834 | 2019-01-21 07:58:32 +0100 | [diff] [blame^] | 63 | uint32 measObjInstIdListIdx = 2; // %%: index into measObjInstIdList (1-based) |
kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 64 | } |
| 65 | repeated MeasResult measResults = 3; |
| 66 | bool suspectFlag = 4; |
| 67 | map<string, string> measObjAddlFlds = 5; // %%: optional per-object data (name/value HashMap) |
| 68 | } |
| 69 | |
| 70 | message MeasResult |
| 71 | { |
kjaniak | 6bf5834 | 2019-01-21 07:58:32 +0100 | [diff] [blame^] | 72 | uint32 p = 1; // Index in the MeasTypes array (1-based), needed only if measResults has fewer elements than MeasTypes |
kjaniak | 53ba170 | 2018-10-25 14:25:13 +0200 | [diff] [blame] | 73 | oneof xValue { |
| 74 | sint64 iValue = 2; |
| 75 | double rValue = 3; |
| 76 | bool isNull = 4; |
| 77 | } |
| 78 | } |