5.13.3 ModifyMonitoredItems

5.13.3.1 Description

This Service is used to modify MonitoredItems of a Subscription. Changes to the MonitoredItem settings shall be applied immediately by the Server. They take effect as soon as practical but not later than twice the new revisedSamplingInterval.

The return diagnostic info setting in the request header of the CreateMonitoredItems or the last ModifyMonitoredItems Service is applied to the Monitored Items and is used as the diagnostic information settings when sending Notifications in the Publish response.

Illegal request values for parameters that can be revised do not generate errors. Instead the Server will choose default values and indicate them in the corresponding revised parameter.

5.13.3.2 Parameters

Table 66 defines the parameters for the Service.

Table 66 – ModifyMonitoredItems Service Parameters
NameTypeDescription
Request

requestHeader

RequestHeaderCommon request parameters (see 7.32 for RequestHeader definition).

subscriptionId

IntegerIdThe Server-assigned identifier for the Subscription used to qualify the monitoredItemId (see 7.19 for IntegerId definition).

timestampsToReturn

Enum

Timestamps ToReturn

An enumeration that specifies the timestamp Attributes to be transmitted for each MonitoredItem to be modified. The TimestampsToReturn enumeration is defined in 7.39. When monitoring Events, this applies only to Event fields that are of type DataValue.

itemsToModify []

MonitoredItemModifyRequestThe list of MonitoredItems to modify. This structure is defined in-line with the following indented items.

monitoredItemId

IntegerId Server-assigned id for the MonitoredItem.

requestedParameters

Monitoring Parameters

The requested values for the monitoring parameters. The MonitoringParameters type is defined in 7.21.

If the number of notifications in the queue exceeds the new queue size, the notifications exceeding the size shall be discarded following the configured discard policy.

Response

responseHeader

Response HeaderCommon response parameters (see 7.33 for ResponseHeader definition).

results []

MonitoredItemModifyResultList of results for the MonitoredItems to modify. The size and order of the list matches the size and order of the itemsToModify request parameter. This structure is defined in-line with the following indented items.

statusCode

StatusCode StatusCode for the MonitoredItem to be modified (see 7.38 for StatusCode definition).

revisedSampling

Interval

Duration

The actual sampling interval that the Server will use. The Server returns the value it will actually use for the sampling interval. This value is based on a number of factors, including capabilities of the underlying system.

The Server shall always return a revisedSamplingInterval that is equal or higher than the requested samplingInterval. If the requested samplingInterval is higher than the maximum sampling interval supported by the Server, the maximum sampling interval is returned.

revisedQueueSize

CounterThe actual queue size that the Server will use.

filterResult

Extensible Parameter

MonitoringFilter Result

Contains any revised parameter values or error results associated with the MonitoringFilter specified in the request. This parameter may be null if no errors occurred. The MonitoringFilterResult parameter type is an extensible parameter type specified in 7.22.

diagnosticInfos []

DiagnosticInfoList of diagnostic information for the MonitoredItems to modify (see 7.12 for DiagnosticInfo definition). The size and order of the list matches the size and order of the itemsToModify request 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.
5.13.3.3 Service results

Table 67 defines the Service results specific to this Service. Common StatusCodes are defined in Table 178.

Table 67 – ModifyMonitoredItems Service Result Codes
Symbolic IdDescription
Bad_NothingToDoSee Table 178 for the description of this result code.
Bad_TooManyOperationsSee Table 178 for the description of this result code.
Bad_TimestampsToReturnInvalidSee Table 178 for the description of this result code.
Bad_SubscriptionIdInvalidSee Table 178 for the description of this result code.
5.13.3.4 StatusCodes

Table 68 defines values for the operation level statusCode parameter that are specific to this Service. Common StatusCodes are defined in Table 179.

Table 68 – ModifyMonitoredItems Operation Level Result Codes
Symbolic IdDescription
Bad_MonitoredItemIdInvalidSee Table 179 for the description of this result code.
Bad_MonitoredItemFilterInvalidSee Table 179 for the description of this result code.
Bad_MonitoredItemFilterUnsupportedSee Table 179 for the description of this result code.
Bad_FilterNotAllowedSee Table 178 for the description of this result code.