pub struct CreateMonitoredItem { /* private fields */ }
Expand description
Container for a request to create a single monitored item.
Implementations§
Source§impl CreateMonitoredItem
impl CreateMonitoredItem
Sourcepub fn handle(&self) -> MonitoredItemHandle
pub fn handle(&self) -> MonitoredItemHandle
Get the monitored item handle of this create request.
Sourcepub fn set_initial_value(&mut self, value: DataValue)
pub fn set_initial_value(&mut self, value: DataValue)
Set the initial value of the monitored item.
Sourcepub fn set_status(&mut self, status: StatusCode)
pub fn set_status(&mut self, status: StatusCode)
Set the status of the monitored item create request. If this is an error after all node managers have been evulated, the monitored item will not be created on the server.
Note: Only consider a monitored item to be created if this is set to a
Good
status code.
Sourcepub fn item_to_monitor(&self) -> &ParsedReadValueId
pub fn item_to_monitor(&self) -> &ParsedReadValueId
Attribute to monitor.
Sourcepub fn monitoring_mode(&self) -> MonitoringMode
pub fn monitoring_mode(&self) -> MonitoringMode
Requested monitoring mode.
Sourcepub fn sampling_interval(&self) -> f64
pub fn sampling_interval(&self) -> f64
Requested sampling interval in milliseconds.
Sourcepub fn queue_size(&self) -> usize
pub fn queue_size(&self) -> usize
Requested queue size.
Sourcepub fn revise_queue_size(&mut self, queue_size: usize)
pub fn revise_queue_size(&mut self, queue_size: usize)
Revise the queue size, setting it equal to the given queue_size
if it is smaller
or if the requested queue size is 0.
Sourcepub fn revise_sampling_interval(&mut self, sampling_interval: f64)
pub fn revise_sampling_interval(&mut self, sampling_interval: f64)
Revise the sampling interval, settign it equal to the given sampling_interval
if
it is larger.
Sourcepub fn timestamps_to_return(&self) -> TimestampsToReturn
pub fn timestamps_to_return(&self) -> TimestampsToReturn
Requested timestamps to return.
Sourcepub fn status_code(&self) -> StatusCode
pub fn status_code(&self) -> StatusCode
Get the current result status code.