Update nf_pm serializer in vnflcm
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf_pm / counst.py
1 # Copyright (c) 2019, CMCC Technologies Co., Ltd.
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
15 from lcm.pub.utils.jobutil import enum
16
17 NOTIFICATION_TYPE = enum(
18     ThresholdCrossedNotification="ThresholdCrossedNotification",
19     PerformanceInformationAvailableNotification="PerformanceInformationAvailableNotification"
20 )
21
22 AUTH_TYPE = enum(
23     BASIC="BASIC",
24     OAUTH2_CLIENT_CREDENTIALS="OAUTH2_CLIENT_CREDENTIALS",
25     TLS_CERT="TLS_CERT"
26 )
27
28 CrossingDirectionType = enum(
29     UP="UP",
30     DOWN="DOWN"
31 )
32
33 THRESHOLDTYPE = enum(
34     SIMPLE="SIMPLE"
35 )