X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2Fves%2FCellStateChange.hpp;fp=src%2Fo1%2Fves%2FCellStateChange.hpp;h=071f54056cab7c746b599fccac734c576958a146;hb=0a4589de6e89782d734930a2a7648d5921b176d8;hp=0000000000000000000000000000000000000000;hpb=c9ee9d5360e8cad2cb2f807f5ebfabe9304d88c4;p=o-du%2Fl2.git diff --git a/src/o1/ves/CellStateChange.hpp b/src/o1/ves/CellStateChange.hpp new file mode 100755 index 000000000..071f54056 --- /dev/null +++ b/src/o1/ves/CellStateChange.hpp @@ -0,0 +1,65 @@ +/******************************************************************************* +################################################################################ +# Copyright (c) [2020-2022] [HCL Technologies Ltd.] # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ +*******************************************************************************/ + +#ifndef __CELL_STATE_CHANGE_HPP__ +#define __CELL_STATE_CHANGE_HPP__ + + +#include + +#include "VesEvent.hpp" +#include "AlarmMessages.h" +#include "Alarm.hpp" +#include "AlarmManager.hpp" +#include "Message.hpp" +#include "Notification.hpp" + +using namespace std; + +//macros +#define FAULT_FIELDS_VERSION "4.0" +#define ALARM_CONDITION "CELL Down" +#define ALARM_INTERFACE_A "Slot-0-CELL-1" +#define EVENT_SOURCE_TYPE "O_RAN_COMPONENT" +#define SPECIFIC_PROBLEM "CELL 1 Down" +#define EVENT_SEVERITY "MAJOR" +#define VF_STATUS "Active" +#define EQUIP_TYPE "O-RAN-DU" +#define VENDOR "Melacon" +#define MODEL "ODU Device" + +class CellStateChange : public Notification +{ + + public: + CellStateChange(); + ~CellStateChange(); + + std::string getISOEventTime(); + + protected: + bool prepareEventFields(const Message* msg = NULL); + +}; + + +#endif + +/********************************************************************** + End of file + **********************************************************************/