No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

eSight V300R010C00SPC200, 300, and 500 Self-Service Integration Guide 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Alarm Change Message

Alarm Change Message

This section describes the alarm change message interface.

Message Subscription Interface

Function

This interface subscribes to the alarm change message based on the third-party system ID, openID of the interface for receiving third-party system messages, URL of the interface for receiving third-party system messages, and subscription operation description. An alarm change message can be sent when an alarm is added, an event is added, an alarm is acknowledged or unacknowledged, the alarm severity is changed, an alarm is cleared, or the alarm comments are modified.

URI

/rest/openapi/notification/common/alarm

Access Method

PUT

Parameter Description

Parameter

Mandatory/Optional

Location

Value Type

Description

openid

Mandatory

Request header parameter list

String

Indicates the session identifier. It is used for open API authentication.

NOTE:

A third-party invokes the login interface (section Log In to the eSight) for security management to obtain this parameter.

systemID

Mandatory

Request entity parameter list

String

Indicates the third-party system ID.

NOTE:

The value can be an IP address of 1 to 64 characters, including digits (0-9), lowercase letters (a-z), uppercase letters (A-Z), and the following special characters: @ _ - ( ) , . ^ $ ~ ` !

openID

Mandatory

Request entity parameter list

String

Indicates the credential used by eSight to proactively connect to a third-party system. Third-party systems assign credentials and use credentials for authentication.

NOTE:

The value consists of 1 to1024 characters, including digits (0-9), lowercase letters (a-z), uppercase letters (A-Z), and the following special characters: @ _ - ( ) , . ^ $ ~ ` !

url

Mandatory

Request entity parameter list

String

eSight sends a notification message to the URL in POST mode.

NOTE:

For example, http://10.10.10.1:8080/device. The URL correctness must be ensured by the notification message subscriber. The IP address is specified in the OpenAPI whitelist. The value consists of 1 to 1024 characters complying with the HTTP URL encoding specification.

dataType

Optional

Request entity parameter list

String

Indicates the value type of the data field in the notification packet.

NOTE:

Currently, only the JSON value type is supported. The default value is JSON.

desc

Optional

Request entity parameter list

String

Indicates the description of a third-party system.

NOTE:

The default value is null, indicating that the parameter is not specified. The value consists of 0 to 1024 characters. The character set is not restricted.

filterInfos

Optional

Request entity parameter list

List<String>

Indicates the message filter criteria sent from third-party systems.

NOTE:
  • The default value is null, indicating that the parameter is not specified. String indicates the JSON string converted from filterInfo objects.
  • If the value of filterInfos is not null, the setting of Alarm Filter configured on the Third-party System Setting page remains unchanged. However, the alarm filtering function uses the value of filterInfos as the filtering criteria.

FilterInfo objects contain the following filter criteria fields. All of the configured filter criteria must be met (AND relationship).

Parameter

Mandatory/Optional

Location

Value Type

Description

alarmType

Optional

Request entity parameter list

String

Indicates the types of reported alarms.

NOTE:

Value 1 indicates events, and 2 indicates alarms. If you want to select both alarm types, set this field to 1,2.

alarmLevel

Optional

Request entity parameter list

String

Indicates the severities of reported alarms.

NOTE:

This field is equivalent to perceivedSeverity. Value 1 indicates critical; 2 indicates major; 3 indicates minor; 4 indicates warning. If you want to select multiple alarm severities, configure multiple values and separate them with a comma. For example, 1, 2 indicates that critical and major alarms are reported.

alarmSource

Optional

Request entity parameter list

String

Indicates AlarmSourceInfo objects.

NOTE:

The default value is null, indicating that the parameter is not specified.

AlarmSourceInfo objects contain the following filter criteria fields. All of the configured filter criteria must be met (AND relationship).

Parameter

Mandatory/Optional

Location

Value Type

Description

AlarmSourceTypes

Optional

Request entity parameter list

List<String>

Indicates alarm source types.

NOTE:

This field is equivalent to neType. For example,

["{RedHat}RedHatLinux","OMS","NE10TE"] indicates that alarms generated on these three NE types are reported.

alarmSourceInstance

Optional

Request entity parameter list

List<AlarmSourceInstance>

Indicates AlarmSourceInstance objects.

NOTE:

The default value is null, indicating that the parameter is not specified.

modns

Optional

Request entity parameter list

List<String>

Indicates the distinguished names (DNs) of MOs on which alarms are reported.

AlarmSourceInstance objects contain the following fields, which provide DN and locating information about alarm sources.

Parameter

Mandatory/Optional

Location

Value Type

Description

alarmSourceDn

Optional

Request entity parameter list

List<String>

Indicates the DNs of alarm sources.

NOTE:

This parameter is equivalent to neDN. Example,

NE=34606011.

positions

Optional

Request entity parameter list

List<String>

Indicates locating information about alarm sources.

NOTE:

This field is equivalent to objectInstance. Example, ["id-host:HOSTID", "(id-vm:*(az:az1.dc1)"].

You can use wildcard pattern matching in this field. The default pattern is **xxx**.

Result

Field

Value Type

Description

code

int

Indicates the operation return code. The options are as follows:

  • 0: successful
  • Others: failed Value 1001 indicates that the license is invalid, 1002 indicates that the license cannot invoke OpenAPI, 1204 indicates that the authentication fails, 1501 indicates that no system ID is provided, 1502 indicates that the system ID is invalid, 1503 indicates that third-party system openID for authentication is not provided, 1504 indicates that third-party system openID for authentication is invalid, 1505 indicates that the data type is not supported, 1506 indicates that the URL for receiving third-party messages is not provided, 1507 indicates that the URL for receiving third-party messages is invalid, 1508 indicates that the URL for receiving third-party messages is not in the OpenAPI whitelist, 1509 indicates that the description provided is invalid, 1510 indicates that the requested resourceURI does not exist (that is, the resource corresponding to the entire request URL does not exist), and 1511 indicates that the subscription is invalid because the request URL is invalid.

data

String

The field is displayed as null.

description

String

Indicates the description of the interface invoking result.

Precautions

None

Invocation Example

Data Segment

Value

Request URL

PUT https://eSightIP: port/rest/openapi/notification/common/alarm HTTP/1.1

Request header

openid: 775c47f9-9a1b-43f9-a24b-2c3db1a55622;

Request entity

systemID=example%40system&openID=1b7a6992-5d5f-4091-a49f-ec2e09640a05&url=http%3A%2F%2FdemoIP%3AdemoPort%2Fnotification&dataType=JSON&desc=eSight+DesignIn+Demo

Response entity

{"code":0,"data":null,"description":"Operation success."}

Usage Example

package com.huawei.nms.openapi.demo.integrated;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpResponse;
import org.apache.http.message.BasicNameValuePair;

import com.huawei.nms.openapi.demo.global.GlobalVar;
import com.huawei.nms.openapi.demo.global.NewHttpsAccess;
import com.huawei.nms.openapi.demo.sm.Login;

public class SubscribeTrandtion {

?public static void main(String[] args) throws Exception {
??Login.login();
??put();
?}
?
?public static void put() throws Exception {
??//set the URL and method
        final String openidURL = "/rest/openapi/notification/common/alarm";
        final String method = "PUT";

        List<BasicNameValuePair> headers = new ArrayList<BasicNameValuePair>();
??headers.add(new BasicNameValuePair("openid", GlobalVar.globalOpenid));
??
        //set parameters
        final List<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>();
        parameters.add(new BasicNameValuePair("systemID", "tradition"));
        parameters.add(new BasicNameValuePair("openID", "aa"));
        parameters.add(new BasicNameValuePair("url", "http://1.2.3.4:8080/alarm"));
        parameters.add(new BasicNameValuePair("dataType", "JSON"));
        parameters.add(new BasicNameValuePair("desc", "desc"));
??
        //send the request
        final HttpResponse response = NewHttpsAccess.access(GlobalVar.GLOBAL_IP,
                GlobalVar.GLOBAL_PORT,
                openidURL,
                method,
                headers,
                parameters);
        //get the result
        final String ret = NewHttpsAccess.getResult(response);
        System.out.println(ret);
?}
?
?public static void delete() throws Exception {
??//set the URL and method
        final String openidURL = "/rest/openapi/notification/common/alarm";
        final String method = "DELETE";

        List<BasicNameValuePair> headers = new ArrayList<BasicNameValuePair>();
??headers.add(new BasicNameValuePair("openid", GlobalVar.globalOpenid));
??
        //set parameters
        final List<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>();
        parameters.add(new BasicNameValuePair("systemID", "tradition"));
??
        //send the request
        final HttpResponse response = NewHttpsAccess.access(GlobalVar.GLOBAL_IP,
                GlobalVar.GLOBAL_PORT,
                openidURL,
                method,
                headers,
                parameters);
        //get the result
        final String ret = NewHttpsAccess.getResult(response);
        System.out.println(ret);
?}

The returned result is as follows:

{
    "code": 0, 
    "data": null, 
    "description": "Operation success."
}

Message Unsubscription Interface

Function

This interface unsubscribes from the alarm change message based on the description of third-party system ID unsubscription operations.

URI

/rest/openapi/notification/common/alarm

Access Method

DELETE

Parameter Description

Parameter

Mandatory/Optional

Location

Value Type

Description

openid

Mandatory

Message header parameter list

String

Indicates the session identifier. It is used for open API authentication.

NOTE:

A third-party invokes the login interface (section Log In to the eSight) for security management to obtain this parameter.

systemID

Mandatory

URL parameter list

String

Indicates the third-party system ID.

NOTE:

The value can be an IP address of 1 to 64 characters, including digits (0-9), lowercase letters (a-z), uppercase letters (A-Z), and the following special characters: @ _ - ( ) , . ^ $ ~ ` !

desc

Optional

URL parameter list

String

Indicates the description of a third-party system.

NOTE:

The default value is null, indicating that the parameter is not specified. The value consists of 0 to 1024 characters. The character set is not restricted.

Result

Field

Value Type

Description

code

int

Indicates the operation return code. The options are as follows:

  • 0: successful
  • Others: failed Value 1001 indicates that the license is invalid, 1002 indicates that the license cannot invoke OpenAPI, 1204 indicates that the authentication fails, 1501 indicates that no system ID is provided, 1502 indicates that the system ID is invalid, and 1512 indicates that the unsubscription is invalid because the request URL is invalid.

data

String

The field is displayed as null.

description

String

Indicates the description of the interface invoking result.

Precautions

In the requests whose MIME type is application/x-www-form-urlencoded, space characters are encoded as plus signs, and plus signs are encoded as %2B.

Invocation Example

Data Segment

Value

Request URL

DELETE https://eSightIP:port/rest/openapi/notification/common/alarm?systemID=example%40system&desc=eSight+DesignIn+Demo+Unsubscription. HTTP/1.1

Request header

openid: 775c47f9-9a1b-43f9-a24b-2c3db1a55622;

Request entity

N/A

Response entity

{"code":0,"data":null,"description":"Operation success."}

Usage Example

package com.huawei.nms.openapi.demo.integrated;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpResponse;
import org.apache.http.message.BasicNameValuePair;

import com.huawei.nms.openapi.demo.global.GlobalVar;
import com.huawei.nms.openapi.demo.global.NewHttpsAccess;
import com.huawei.nms.openapi.demo.sm.Login;

public class SubscribeTrandtion {

?public static void main(String[] args) throws Exception {
??Login.login();
??put();
?}
?
?public static void put() throws Exception {
??//set the URL and method
        final String openidURL = "/rest/openapi/notification/common/alarm";
        final String method = "PUT";

        List<BasicNameValuePair> headers = new ArrayList<BasicNameValuePair>();
??headers.add(new BasicNameValuePair("openid", GlobalVar.globalOpenid));
??
        //set parameters
        final List<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>();
        parameters.add(new BasicNameValuePair("systemID", "tradition"));
        parameters.add(new BasicNameValuePair("openID", "aa"));
        parameters.add(new BasicNameValuePair("url", "http://1.2.3.4:8080/alarm"));
        parameters.add(new BasicNameValuePair("dataType", "JSON"));
        parameters.add(new BasicNameValuePair("desc", "desc"));
??
        //send the request
        final HttpResponse response = NewHttpsAccess.access(GlobalVar.GLOBAL_IP,
                GlobalVar.GLOBAL_PORT,
                openidURL,
                method,
                headers,
                parameters);
        //get the result
        final String ret = NewHttpsAccess.getResult(response);
        System.out.println(ret);
?}
?
?public static void delete() throws Exception {
??//set the URL and method
        final String openidURL = "/rest/openapi/notification/common/alarm";
        final String method = "DELETE";

        List<BasicNameValuePair> headers = new ArrayList<BasicNameValuePair>();
??headers.add(new BasicNameValuePair("openid", GlobalVar.globalOpenid));
??
        //set parameters
        final List<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>();
        parameters.add(new BasicNameValuePair("systemID", "tradition"));
??
        //send the request
        final HttpResponse response = NewHttpsAccess.access(GlobalVar.GLOBAL_IP,
                GlobalVar.GLOBAL_PORT,
                openidURL,
                method,
                headers,
                parameters);
        //get the result
        final String ret = NewHttpsAccess.getResult(response);
        System.out.println(ret);
?}

The returned result is as follows:

{
    "code": 0, 
    "data": null, 
    "description": "Operation success."
}

Message Sending Interface

Message Data

Field

Value Type

Description

resourceURI

String

Indicates the resource type URI. For an alarm change message notification, the URI is /rest/openapi/notification/common/alarm.

msgType

Int

Indicates the message type. The options are as follows:

  • 1: create
  • 2: delete
  • 3: modify

data

List

Indicates the data object described in JSON data array format.

NOTE:

If the message receiving address uses HTTP, the value of data is an encrypted string. The third-party system must decrypt the value using the values of KEY and IV in the configuration file and then parse the data object. For details about the decryption method, see Decryption Example.

extendedData

String

Indicates the additional data object described in JSON format. Here, the value is the null object {}.

description

String

Indicates the message notification description.

timestamp

String

Indicates the timestamp when a message is sent. The eSight server determines the value format.

The data field contains the following information.

Field

Value Type

Description

optType

Int

Indicates the alarm operation type. The options are as follows:

  • 1: add an alarm
  • 2: clear an alarm
  • 3: acknowledge an alarm
  • 4: unacknowledge an alarm
  • 5: change an alarm
  • 6: add an event

systemID

String

Indicates the eSight system ID, which can be changed in the configuration file. For details, see section Preparation Using Open APIs.

ackTime

Long

Indicates the time when an alarm is acknowledged.

ackUser

String

Indicates the user who acknowledges an alarm.

acked

Boolean

Indicates whether an alarm has been acknowledged.

additionalInformation

String

Indicates additional information.

additionalText

String

Indicates additional text.

alarmId

Int

Indicates the alarm ID.

alarmName

String

Indicates the alarm name.

alarmSN

Int

Indicates the alarm sequence number.

arrivedTime

Long

Indicates the UTC time when an alarm reaches eSight.

clearUser

String

Indicates the user who clears an alarm.

cleared

Boolean

Indicates whether an alarm is cleared.

clearedTime

Long

Indicates the UTC time when an alarm is cleared. The value can be null.

clearedType

Int

Indicates the alarm clearance type. The options are as follows:

  • 1: Automatically Detected and Automatically Cleared (ADAC)
  • 2: Automatically Detected and Manually Cleared (ADMC)

commentTime

Long

Indicates the commenting time.

commentUser

String

Indicates the commenting user.

comments

String

Indicates the comments.

devCsn

Long

Indicates the device sequence number.

eventTime

Long

Indicates the millisecond in the UTC time when an alarm is generated.

NOTE:

This field specifies the time when the first alarm is generated. The value will not be updated when a new alarm is generated or when an alarm is cleared or acknowledged.

eventType

Int

Indicates the alarm or event type. The options are as follows:

  • 1: communications alarm
  • 2: equipment alarm
  • 3: processing error alarm
  • 4: quality of service alarm
  • 5: environmental alarm
  • 6: integrity violation
  • 7: operational violation
  • 8: physical violation
  • 9: security service or mechanism violation
  • 10: time domain violation
  • 11: The MO attribute value changes.
  • 12: The MO instance is created.
  • 13: The MO instance is deleted.
  • 14: The MO relationship attribute changes.
  • 15: The MO status attribute changes.
  • 16: The route changes.
  • 17: protection switching
  • 18: threshold-crossing
  • 19: file transmission status
  • 20: backup status
  • 21: heartbeat

moDN

String

Indicates the management object ID.

moName

String

Indicates the name of the managed object.

neDN

String

Indicates the alarm source ID.

neName

String

Indicates the NE name.

neType

String

Indicates the device type.

objectInstance

String

Indicates location information.

perceivedSeverity

Int

Indicates the alarm severity. The options are as follows:

  • 0: unknown
  • 1: critical
  • 2: major
  • 3: minor
  • 4: suggestion
  • 5: cleared

probableCause

Int

Indicates the possible alarm cause. The value can be null.

proposedRepairActions

String

Indicates the troubleshooting suggestions.

alarmEvent

String

Indicates the alarm or event ID.The options are as follows:

  • Alarms: alarm
  • Event: event

moType

String

Indicates the managed object type. The field corresponds to objectClass of the original alarm.

Field Rule

In different alarm notifications, the values of the data field are different. In the following table, the fields marked with √ are carried by the corresponding alarm event, and the fields marked with X use default values and do not need to be read. The alarm event depends on the value of optType.

Field

Add Standard Alarm

Add Security Alarm

Add Standard Event

Acknowledge Alarm

Change Alarm Severity

Clear Alarm

Clear Alarm

(Without Original Alarm)

Modify Alarm Comments

ackTime

X

X

X

X

X

X

X

ackUser

X

X

X

X

X

X

X

acked

X

X

X

X

X

additionalInformation

X

X

X

additionalText

X

X

X

X

X

alarmId

X

alarmName

X

X

X

alarmSN

arrivedTime

clearUser

X

X

X

X

X

X

cleared

X

X

X

X

X

X

clearedTime

X

X

X

X

X

X

clearedType

X

X

X

X

commentTime

X

X

X

X

X

X

X

commentUser

X

X

X

X

X

X

X

comments

X

X

X

X

X

devCsn

eventTime

eventType

moDN

moName

neDN

neName

neType

objectInstance

perceivedSeverity

X

X

probableCause

X

X

proposedRepairActions

X

X

X

X

X

X

X

alarmEvent

Decryption Example

private static String decrypt(String data){
  String result = "";

  // Note: The following two key strings are added by referring to fetc/oms.ros/ros.web.notification.xml and must be in plaintext.
  String decryptedKey = "E5DF96DE53ED56CBAE25368624DC25Ef";
  String decryptedIv = "E2CDBCA5693654EF2E6F38693653564E";
  // Obtain the result, KEY and IV values.
  final byte[] key = strToBytes( decryptedKey.toUpperCase() );
  final byte[] iv = strToBytes( decryptedIv.toUpperCase() );
  try {
   // Obtain the key generator.
   KeyGenerator kgen = KeyGenerator.getInstance("AES", "SunJCE");

   SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG", "SUN");
   secureRandom.setSeed( key );
   // Initialize the key generator.
   kgen.init( 128, secureRandom );
   // Algorithm parameters.
   AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
   // Generate the key.
   SecretKey secretKey = kgen.generateKey();
   // Encipher.
   Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding", "SunJCE");
   // Initialize the encipher.
   cipher.init( Cipher.DECRYPT_MODE, secretKey, paramSpec);
   // Obtain the decryption result.
   byte[] res = cipher.doFinal(strToBytes(data));
   try {
    result = new String( res,"UTF-8" );
   } catch (UnsupportedEncodingException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
   }
  } catch( final GeneralSecurityException e ) {
   e.printStackTrace();
   result = null;
  }
  return result;
 }
 public static byte[] strToBytes(final String str)
    {
        // Verify parameters.
        if (null == str || str.isEmpty() || !str.matches("[0-9a-zA-Z]{1,}"))
        {
            return null;
        }

        // Convert parameter characters to uppercase characters.
        final String upperCaseString = str.toUpperCase(Locale.US);

        // String length.
        final int strLen = upperCaseString.length();

        // Encrypted arrays.
        final byte[] bytes = new byte[16];

        // Compute encrypted arrays in a cyclic manner.
        for (int i = 0; i < (strLen / 2); i++)
        {
            // High and low bits.
            int high = charToHex(upperCaseString.charAt(i * 2));
            int low = charToHex(upperCaseString.charAt(i * 2 + 1));
            // Obtain the result.
            bytes[i] = (byte) ((high << 4) | low);
        }

        return bytes;
    }
/**
     * Convert the char into hexadecimal characters and enter the characters that only contain [0-9A-Z].
     * 
     * @param ch Characters.
     * @return Return the array represented by the characters.
     */
    private static int charToHex(final char ch)
    {
        if (Character.isUpperCase(ch))
        {
            // Return the uppercase characters.
            return ch - 'A' + 10;
        }
        else
        {
            // Return numbers.
            return ch - '0';
        }
    }

Example

The following provides an example of adding an alarm:

{
    "timestamp":"2014-12-19 17:31:24",
    "extendedData":{},
    "resourceURI":"/rest/openapi/notification/common/alarm",
    "description":"Alarm related notification.",
    "data":
    [
        {
            "proposedRepairActions":"null",
            "additionalText":"null",
            "eventType":-1,
            "neDN":"NE=34603111",
            "moName":"E200E-F-64",
            "perceivedSeverity":2,
            "moDN":"NE=34603111",
            "clearUser":"",
            "commentUser":"",
            "neName":"E200E-F-64",
            "alarmName":"BGP Status Degrade",
            "alarmId":1100840,
            "ackUser":"",
            "optType":1,
            "cleared":false,
            "commentTime":0,
            "alarmSN":146,
            "probableCause":51569,
            "neType":"{Huawei}Eudemon200E-X5",
            "objectInstance":"null",
            "systemID":"HuaweiPlatform",
            "additionalInformation":"null",
            "acked":false,
            "eventTime":1418981484000,
            "clearedType":0,
            "arrivedTime":1418981484465,
            "clearedTime":0,
            "ackTime":0,
            "comments":"",
            "devCsn":0,
            "alarmEvent":"Alarms"
        }
    ],
    "msgType":1
}

The following provides an example of acknowledging an alarm:

{
    "timestamp":"2014-12-19 17:33:14",
    "extendedData":{},
    "resourceURI":"/rest/openapi/notification/common/alarm",
    "description":"Alarm related notification.",
    "data":
    [
        {
            "proposedRepairActions":"",
            "additionalText":"",
            "eventType":-1,
            "neDN":"NE=34603111",
            "moName":"E200E-F-64",
            "perceivedSeverity":2,
            "moDN":"NE=34603111",
            "clearUser":"",
            "commentUser":"",
            "neName":"E200E-F-64",
            "alarmName":"",
            "alarmId":1100840,
            "ackUser":"admin",
            "optType":3,
            "cleared":false,
            "commentTime":0,
            "alarmSN":146,
            "probableCause":51569,
            "neType":"{Huawei}Eudemon200E-X5",
            "objectInstance":"null",
            "systemID":"HuaweiPlatform",
            "additionalInformation":"",
            "acked":true,
            "eventTime":1418981593000,
            "clearedType":0,
            "arrivedTime":1418981484465,
            "clearedTime":0,
            "ackTime":1418981593000,
            "comments":"",
            "devCsn":0,
            "alarmEvent":"Alarms"
        }
    ],
    "msgType":3
}

The following provides an example of clearing an alarm:

{
    "timestamp":"2014-12-19 16:25:11",
    "extendedData":{},
    "resourceURI":"/rest/openapi/notification/common/alarm",
    "description":"Alarm related notification.",
    "data":
    [
        {
            "proposedRepairActions":"",
            "additionalText":"",
            "eventType":-1,
            "neDN":"NE=34603109",
            "moName":"E200E-F-64",
            "perceivedSeverity":5,
            "moDN":"NE=34603109",
            "clearUser":"System User",
            "commentUser":"",
            "neName":"E200E-F-64",
            "alarmName":"Optical Fiber Connection Error",
            "alarmId":2100095,
            "ackUser":"",
            "optType":2,
            "cleared":true,
            "commentTime":0,
            "alarmSN":122,
            "probableCause":50225,
            "neType":"{Huawei}Eudemon200E-X5",
            "objectInstance":"",
            "systemID":"HuaweiPlatform",
            "additionalInformation":"null",
            "acked":true,
            "eventTime":1418977509000,
            "clearedType":1,
            "arrivedTime":1418977313529,
            "clearedTime":1418977509000,
            "ackTime":0,
            "comments":"",
            "devCsn":0,
            "alarmEvent":"Alarms"
        }
    ],
    "msgType":2
}

The following provides an example of commenting on an alarm:

{
    "timestamp":"2014-12-19 17:34:48",
    "extendedData":{},
    "resourceURI":"/rest/openapi/notification/common/alarm",
    "description":"Alarm related notification.",
    "data":
    [
        {
            "proposedRepairActions":"",
            "additionalText":"",
            "eventType":-1,
            "neDN":"NE=34603111",
            "moName":"E200E-F-64",
            "perceivedSeverity":2,
            "moDN":"NE=34603111",
            "clearUser":"",
            "commentUser":"admin",
            "neName":"E200E-F-64",
            "alarmName":"",
            "alarmId":-1,
            "ackUser":"",
            "optType":7,
            "cleared":false,
            "commentTime":1418981688025,
            "alarmSN":145,
            "probableCause":50335,
            "neType":"{Huawei}Eudemon200E-X5",
            "objectInstance":"",
            "systemID":"HuaweiPlatform",
            "additionalInformation":"",
            "acked":false,
            "eventTime":1418981688000,
            "clearedType":0,
            "arrivedTime":1418981483477,
            "clearedTime":0,
            "ackTime":0,
            "comments":"This is added comments long long long test string...",
            "devCsn":0,
            "alarmEvent":"Alarms"
        }
    ],
    "msgType":3
}
Translation
Download
Updated: 2019-10-30

Document ID: EDOC1100044386

Views: 17644

Downloads: 87

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next