blob: 940a84456d1c847db249cf1e03531783498c075e [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001//
2// Copyright 2018 - present the original author or authors.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16syntax = "proto3";
17
khenaidoo5fc5cea2021-08-11 17:39:16 -040018option go_package = "github.com/opencord/voltha-protos/v5/go/omci";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030019option java_package = "org.opencord.voltha.omci";
Zack Williams52209662019-02-07 10:15:31 -070020
William Kurkian12fc0af2019-04-18 14:27:45 -040021package omci;
Zack Williams52209662019-02-07 10:15:31 -070022
Zack Williams52209662019-02-07 10:15:31 -070023
24message AlarmAttributeData {
khenaidoo4c6543e2021-10-19 17:25:58 -040025 string name = 1;
Zack Williams52209662019-02-07 10:15:31 -070026 string value = 2;
27}
28
29message AlarmInstanceData {
khenaidoo4c6543e2021-10-19 17:25:58 -040030 uint32 instance_id = 1;
Zack Williams52209662019-02-07 10:15:31 -070031 string created = 2;
32 string modified = 3;
33
khenaidoo4c6543e2021-10-19 17:25:58 -040034 repeated AlarmAttributeData attributes = 4;
Zack Williams52209662019-02-07 10:15:31 -070035}
36
37message AlarmClassData {
khenaidoo4c6543e2021-10-19 17:25:58 -040038 uint32 class_id = 1;
Zack Williams52209662019-02-07 10:15:31 -070039
khenaidoo4c6543e2021-10-19 17:25:58 -040040 repeated AlarmInstanceData instances= 2;
Zack Williams52209662019-02-07 10:15:31 -070041}
42
43message AlarmManagedEntity {
khenaidoo4c6543e2021-10-19 17:25:58 -040044 uint32 class_id = 1;
45 string name = 2;
Zack Williams52209662019-02-07 10:15:31 -070046}
47
48message AlarmMessageType {
khenaidoo4c6543e2021-10-19 17:25:58 -040049 uint32 message_type = 1;
Zack Williams52209662019-02-07 10:15:31 -070050}
51
52message AlarmDeviceData {
khenaidoo4c6543e2021-10-19 17:25:58 -040053 string device_id = 1;
Zack Williams52209662019-02-07 10:15:31 -070054 string created = 2;
55 uint32 last_alarm_sequence = 3;
56 string last_sync_time = 4;
57 uint32 version = 5;
58
59
khenaidoo4c6543e2021-10-19 17:25:58 -040060 repeated AlarmClassData classes = 6;
Zack Williams52209662019-02-07 10:15:31 -070061
62 repeated AlarmManagedEntity managed_entities = 7;
63 repeated AlarmMessageType message_types = 8;
64}
65
66message AlarmOpenOmciEventType {
67 enum OpenOmciEventType {
68 state_change = 0; // A state machine has transitioned to a new state
69 }
70}
71
72message AlarmOpenOmciEvent {
73 AlarmOpenOmciEventType.OpenOmciEventType type = 1;
74
75 string data = 2; // associated data, in json format
76}