blob: dc33120cdc87a3ef7a043a46cf019af49cc78a09 [file] [log] [blame]
dpaul2b52e712020-06-23 13:02:28 +05301// 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.
14syntax = "proto3";
15
khenaidoo5fc5cea2021-08-11 17:39:16 -040016option go_package = "github.com/opencord/voltha-protos/v5/go/ext/config";
dpaul2b52e712020-06-23 13:02:28 +053017
18package config;
19
20option java_package = "org.opencord.voltha";
21
22message AlarmConfig {
23 oneof config {
24 OnuItuPonAlarm onu_itu_pon_alarm_config = 1;
25 }
26}
27
28message 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}