This Serviceis used to set the monitoring mode for one or more MonitoredItemsof a Subscription. Setting the mode to DISABLED causes all queued Notificationsto be deleted.

Table 75defines the parameters for the Service.

Table 75– SetMonitoringMode Service Parameters

Name

Type

Description

Request

requestHeader

RequestHeader

Common request parameters (see 7.33for RequestHeaderdefinition).

subscriptionId

IntegerId

The Server-assigned identifier for the Subscriptionused to qualify the monitoredItemIds(see 7.19for IntegerIddefinition).

monitoringMode

Enum

MonitoringMode

The monitoring mode to be set for the MonitoredItems. The MonitoringModeenumeration is defined in 7.23.

monitoredItemIds []

IntegerId

List of Server-assigned ids for the MonitoredItems.

Response

responseHeader

Response Header

Common response parameters (see 7.34for ResponseHeaderdefinition).

results []

StatusCode

List of StatusCodesfor the MonitoredItemsto enable/disable (see 7.39for StatusCodedefinition). The size and order of the list matches the size and order of the monitoredItemIdsrequest parameter.

diagnosticInfos []

DiagnosticInfo

List of diagnostic information for the MonitoredItemsto enable/disable (see 7.12for DiagnosticInfo definition). The size and order of the list matches the size and order of the monitoredItemIdsrequest parameter. This list is empty if diagnostics information was not requested in the request header or if no diagnostic information was encountered in processing of the request.

Table 76defines the Serviceresults specific to this Service. Common StatusCodesare defined in Table 182.

Table 76– SetMonitoringMode Service Result Codes

Symbolic Id

Description

Bad_NothingToDo

See Table 182for the description of this result code.

Bad_TooManyOperations

See Table 182for the description of this result code.

Bad_SubscriptionIdInvalid

See Table 182for the description of this result code.

Bad_MonitoringModeInvalid

See Table 183for the description of this result code.

Table 77defines values for the operation level resultsparameter that are specific to this Service. Common StatusCodesare defined in Table 183.

Table 77– SetMonitoringMode Operation Level Result Codes

Symbolic Id

Description

Bad_MonitoredItemIdInvalid

See Table 183for the description of this result code.