Skip to main content
Element Software
A newer release of this product is available.

ListEvents

Contributors netapp-pcarriga netapp-dbagwell

You can use the ListEvents method to list events detected on the cluster, sorted from oldest to newest.

Parameters

This method has the following input parameters:

Name Description Type Default value Required

driveID

Specifies that only events with this drive ID will be returned.

integer

0

No

endEventID

Identifies the end of a range of event IDs to return.

integer

(unlimited)

No

endPublishTime

Specifies that only events published earlier than this time will be returned.

string

0

No

endReportTime

Specifies that only events reported earlier than this time will be returned.

string

0

No

eventType

Specifies the type of events to return. See event for possible event types.

string

0

No

maxEvents

Specifies the maximum number of events to return.

integer

(unlimited)

No

nodeID

Specifies that only events with this node ID will be returned.

integer

serviceID

Specifies that only events with this service ID will be returned.

startEventID

Identifies the beginning of a range of events to return.

integer

0

No

startPublishTime

Specifies that only events published after this time will be returned.

string

0

No

startReportTime

Specifies that only events reported after this time will be returned.

string

0

No

Return value

This method has the following return value:

Name

Description

Type

events

List of events.

event array

Request example

Requests for this method are similar to the following example:

{
   "method": "ListEvents",
   "params": {
   },
   "id" : 1
}

Response example

This method returns a response similar to the following example:

{
  "id":1,
  "result":{
    "events":[
       {
          "details":
            {
              "paramGCGeneration":1431550800,
              "paramServiceID":2
            },
          "driveID":0,
          "eventID":2131,
          "eventInfoType":"gcEvent",
          "message":"GC Cluster Coordination Complete",
          "nodeID":0,
          "serviceID":2,
          "severity":0,
          "timeOfPublish":"2015-05-13T21:00:02.361354Z",
          "timeOfReport":"2015-05-13T21:00:02.361269Z"
       },{
          "details":
               {
                  "eligibleBS":[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,40,41,42,43,44,45,46,47,52,53,54,55,56,57,58,59,60],
                  "generation":1431550800,
                  "participatingSS":[23,35,39,51]
               },
          "driveID":0,
          "eventID":2130,
          "eventInfoType":"gcEvent",
          "message":"GCStarted",
          "nodeID":0,
          "serviceID":2,
          "severity":0,
          "timeOfPublish":"2015-05-13T21:00:02.354128Z",
          "timeOfReport":"2015-05-13T21:00:02.353894Z"
       },{
          "details":"",
          "driveID":0,
          "eventID":2129,
          "eventInfoType":"tSEvent",
          "message":"return code:2 t:41286 tt:41286 qcc:1 qd:1 qc:1 vrc:1 tt:2 ct:Write etl:524288",
          "nodeID":0,
          "serviceID":0,
          "severity":0,
          "timeOfPublish":"2015-05-13T20:45:21.586483Z",
          "timeOfReport":"2015-05-13T20:45:21.586311Z"
       }
     ]
   }
}

New since version

9.6