Skip to main content

1E 8.1 (on-premises)

Device.GetCriticality

Method

GetCriticality

Module

Device

Library

Core

Action

Gets the user-defined criticality level for this device.

Parameters

(None)

Return values

Value (integer): The (numeric) criticality value for this device (zero if undefined).

Example

@c = Device.GetCriticality();

@c = SELECT * FROM @c WHERE Value < 5;

IF (@c)
    // Perform action on devices with a criticality
    // rating lower than five.
ENDIF;

Platforms

  • Windows

  • Linux

  • MacOS

Notes

Use Device.SetCriticality to set the criticality value.