dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 1 | // Copyright (c) 2020 Open Networking Foundation |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at: |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | syntax = "proto3"; |
| 15 | |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 16 | option go_package = "github.com/opencord/voltha-protos/v4/go/ext/config"; |
dpaul | 2b52e71 | 2020-06-23 13:02:28 +0530 | [diff] [blame] | 17 | |
| 18 | package config; |
| 19 | |
| 20 | option java_package = "org.opencord.voltha"; |
| 21 | |
| 22 | message AlarmConfig { |
| 23 | oneof config { |
| 24 | OnuItuPonAlarm onu_itu_pon_alarm_config = 1; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | message OnuItuPonAlarm { |
| 29 | enum AlarmID { |
| 30 | RDI_ERRORS = 0; // RDI errors |
| 31 | } |
| 32 | |
| 33 | enum AlarmReportingCondition { |
| 34 | RATE_THRESHOLD = 0; // The alarm is triggered if the stats delta value between samples crosses the configured threshold boundary |
| 35 | RATE_RANGE = 1; // The alarm is triggered if the stats delta value between samples deviates from the configured range |
| 36 | VALUE_THRESHOLD = 2; // The alarm is raised if the stats sample value becomes greater than this level. The alarm is cleared when the host read the stats |
| 37 | } |
| 38 | |
| 39 | message SoakTime { |
| 40 | fixed32 active_soak_time = 1; |
| 41 | fixed32 clear_soak_time = 2; |
| 42 | } |
| 43 | |
| 44 | message RateThresholdConfig { |
| 45 | fixed64 rate_threshold_rising = 1; |
| 46 | fixed64 rate_threshold_falling = 2; |
| 47 | SoakTime soak_time = 3; |
| 48 | } |
| 49 | |
| 50 | message RateRangeConfig { |
| 51 | fixed64 rate_range_lower = 1; |
| 52 | fixed64 rate_range_upper = 2; |
| 53 | SoakTime soak_time = 3; |
| 54 | } |
| 55 | |
| 56 | message ValueThresholdConfig { |
| 57 | fixed64 threshold_limit = 1; |
| 58 | SoakTime soak_time = 2; |
| 59 | } |
| 60 | |
| 61 | fixed32 pon_ni = 1; |
| 62 | fixed32 onu_id = 2; |
| 63 | AlarmID alarm_id = 3; |
| 64 | AlarmReportingCondition alarm_reporting_condition = 4; |
| 65 | oneof config { |
| 66 | RateThresholdConfig rate_threshold_config = 5; |
| 67 | RateRangeConfig rate_range_config = 6; |
| 68 | ValueThresholdConfig value_threshold_config = 7; |
| 69 | } |
| 70 | } |