Update Alert Rule

PUT {{baseUrl}}/v1/alert-rule/:alertRuleUid

Update one existing alert rule by alertRuleUid.

Parameters

FieldTypeRequiredDescription
alertRuleUidstringrequiredUnique Alert Rule Identification

Body

FieldTypeRequiredDescription
namestringoptionalNew name of the updated alert rule
descriptionstringoptionalNew description
alertTypestringoptionalAccepted values 'DEVICE', 'POLICY', 'APPLET'
organizationUidsarrayoptionalOrganizations which is checked against the rule
filterobjectoptionalPre-filter of devices which the alert will be checked against. It's used for percentage threshold of alert creation as base. The mandatory filter is organization set above. This is extended filter for example device applicationType (tizen, webos, etc.).
conditionsobjectoptionalSpecify all conditions which devices has to match to state alert as applicable.
thresholdobjectoptionalSpecify threshold of rule. It is comparing number of devices matched the conditions above relatively against the total number devices filtered by filter above
periodicityobjectoptionalSpecify how often the rule will be checked against the current state of devices.
actionobjectoptionalOptionally specify the action of alert rule. This action will happen when alert rule is creating an alert.

Filter

FieldTypeRequiredDescription
applicationTypestringoptionalType of application one of ('sssp', 'tizen', 'webos', 'android', 'chrome', 'brightsign', 'linux', 'windows', 'default' )
applicationVersionarrayoptionalSemver comparison of core app version [SemverOperator, string] - ([>, 3.12.0])
frontDisplayVersionarrayoptionalSemver comparison of internal front-display library version[SemverOperator, string] - ([>, 9.15.0])
firmwareTypestringoptionalPartial matching of string
firmwareVersionstringoptionalPartial matching of string
managementPackageVersionarrayoptionalSemver comparison of core management package version ([>, 3.12.0])
frontPackageVersionarrayoptionalSemver comparison of core front package version ([>, 3.12.0])
tagUidsstringoptionalList of tags. Device has match all tags in list
modelstringoptionalPartial matching of string
namestringoptionalPartial matching of string
extendedManagementbooleanoptionalFilter device with or without extended management
extendedManagementDateoptionalFilter only devices provisioned since the date
supportedResolutionsResolutionItemoptionalFilter only devices supporting specified resolution
locationUidsarrayoptionalFilter only devices in specified locations
locationTagsUidsarrayoptionalFilter only devices in specified location tags

Conditions

NumericOperator

Operators
>
<
<=
>=
=
!=

TimeRangeOperator

Operators
>
<

Conditions values types

Condition typeTypeExample
OCCURRENCES_IN_TIME_RANGE_TO_PASTarray[operator: NumericOperator, occurrences: number, rangeInPastMs: number] -([>, 12, 36000])
NUMERIC_RANGEarray[operator: NumericOperator, nmbr: number] - (>, 12)
STRING_OCCURRENCES_IN_TIME_RANGE_TO_PASTarray[str: string, operator: NumericOperator, occurrences: number, rangeInPastMs: number] - (action, > 12, 36000)
TIME_RANGE_TO_PASTarray[operator: TimeRangeOperator, rangeInPastMs: number] - (<, 36000)
PERCENTAGE_RANGEarray[operator: NumericOperator, percentage: number] - (<, 50)
NUMERIC_RANGEarray[operator: NumericOperator, nmbr: number] - (<, 50)
NUMERIC_RANGEstring'DEVICE'
MATCH_SEMVERarray[operator: SemverOperator, version: string] - (>, 3.12.0)
STRING_LISTarray[string1, string2]
POLICY_LISTstringOne of ('VOLUME', 'BRIGHTNESS', 'TIMERS', 'PROPRIETARYTIMERS', 'RESOLUTION', 'ORIENTATION', 'REMOTECONTROL', 'APPLICATIONVERSION', 'FIRMWAREVERSION', 'DEBUG', 'DATETIME', 'POWERACTIONSSCHEDULE', 'TEMPERATURE', 'BUNDLED_APPLET')
WIFI_OR_ETHERNETstringOne of ('wifi', 'ethernet')
INPUT_SOURCEstringOne of ('urlLauncher', 'hdmi1', 'hdmi2', 'hdmi3', 'hdmi4')
TIMERSarrayTimerSettings[]
RESOLUTIONobjectResolutionItem
ORIENTATIONobjectOrientationSettings

Device condition

ConditionCondition valuesDescription
INCORRECT_TIMEBOOLEANIs used when device has incorrect time based on current time & timezone of device
INVALID_SSL_CERTIFICATEBOOLEANIs used when device is detected having some problems with SSL certificates (it can be even time related)
FAILED_ACTIONSBOOLEANIs used when device performing/executing action has failed for amount of time in past
CONNECTIONSBOOLEANIs used when device performing/executing action has failed for amount of time in past
MODELarrayBOOLEAN if device has model or not
SERIAL_NUMBERBOOLEANCheck if device has serial number or not
NAMEstringCheck if device partially match some string
PIN_CODEbooleanCheck if device has PIN code reported
MANAGEMENT_PACKAGE_VERSIONMATCH_SEMVERCheck if device match semver version
FRONT_PACKAGE_VERSIONMATCH_SEMVERCheck if device match semver version
FRONT_DISPLAY_VERSIONMATCH_SEMVERCheck if device match semver version
FIRMWARE_TYPEstringCheck if device match semver version
TAG_UIDSSTRING_LISTCheck if device has selected tags
POLICIESPOLICY_LISTCheck if device has selected policy settings
LAST_PROVISION_ATTIMERANGETO_PASTCheck if device was provisioned in specified time range in past. Useful to detect new devices are provisioned
LAST_DEPROVISION_ATTIMERANGETO_PASTCheck if device was deprovisioned in specified time range in past. Useful to detect devices are re-provisioned
EXTENDED_MANAGEMENTBOOLEANCheck if device has access to extended management
ALIVE_ATTIMERANGETO_PASTCheck if device last ping in specified time range in past
NETWORK_INTERFACESWIFIORETHERNETCheck if device is connected using WiFi or Ethernet
BATTERY_STATUSPERCENTAGE_RANGECheck if device has enough or not enough battery
STORAGE_STATUSPERCENTAGE_RANGECheck if device has or has not enough free storage
CURRENT_TIMEZONEMATCH_STRINGCheck if timezone match the string
DISPLAY_SETTING_BACKLIGHTPERCENTAGE_RANGECheck if match expected value of display settings
DISPLAY_SETTING_CONTRASTPERCENTAGE_RANGECheck if match expected value of display settings
DISPLAY_SETTING_SHARPNESSPERCENTAGE_RANGECheck if match expected value of display settings
DISPLAY_SETTING_MAX_TEMPERATURENUMERIC_RANGEMax temperature in celsius
INPUT_SOURCEINPUT_SOURCECheck if current input source is set to specified source
VOLUMEPERCENTAGE_RANGECheck if current volume is expected
BRIGHTNESSPERCENTAGE_RANGECheck if current brightness is expected
TIMERSTIMERSCheck if current native timers are set as expected
PROPRIETARY_TIMERSTIMERSCheck if current proprietary timers are set as expected
RESOLUTIONRESOLUTIONCheck if current resolution is set as expected
ORIENTATIONORIENTATIONCheck if current orientation is set as expected
REMOTE_CONTROLBOOLEANCheck if current RC is locked or not
APPLICATION_VERSIONMATCH_SEMVERCheck if current core app version is correct
FIRMWARE_VERSIONMATCH_STRINGCheck if current FW version match some string
DEBUGBOOLEANCheck if debug is enabled or not
POWER_ACTIONS_SCHEDULESCHEDULEDPOWERACTIONSCheck if current scheduled power actions are correctly set
TEMPERATURENUMERIC_RANGECheck if current scheduled power actions are correctly set
INSTALLED_PACKAGEMATCH_STRINGCheck if specified package is installed
SCREENSHOTOCCURRENCESINTIMERANGETO_PASTCheck if number of screenshots was received in time
FEATURE_TESTSBOOLEANCheck if feature tests has passed

Policy condition

ConditionCondition valuesDescription
POLICY_VIOLATION_VOLUMEBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_BRIGHTNESSBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_TIMERSBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_PROPRIETARY_TIMERSBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_RESOLUTIONBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_ORIENTATIONBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_REMOTE_CONTROLBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_APPLICATION_VERSIONBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_FIRMWARE_VERSIONBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_DEBUGBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_DATETIMEBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_POWER_ACTIONS_SCHEDULEBOOLEANCheck violation of any of existing policy device settings type
POLICY_VIOLATION_TEMPERATUREBOOLEANCheck violation of any of existing policy device settings type

Applet condition

ConditionCondition valuesDescription
APPLET_COMMANDSTRINGOCCURRENCESINTIMERANGETOPASTIs used when to check custom user defined commands occurrences in time

Threshold

FieldTypeRequiredDescription
typestringrequiredCurrently only percentage implemented - percentage'
percentagenumberrequiredThe number of percent from 0 to 99 (100 is never matched)

Periodicity

FieldTypeRequiredDescription
intervalstringrequiredHow often alert will be checked against current state in SECONDS'
activeTimeWindowsarrayrequiredAlert rule won't be checked against current state out of specified active time windows when at least one specified. If no active time window specified, alert rule will be checked anytime.

Action

Account alert actions

Action typeTypeRequiredDescription
typestringrequiredAll specified accounts are notified using account notification settings' - (type: 'accounts')
accountIdsarray of accountIdsrequiredAccountIds in array, which will be notified about alert

Organization accounts alert actions

Action typeTypeRequiredDescription
typestringrequiredAll accounts assigned to organization of creating rule are notified using account notification settings' (type: 'organization_accounts')

Email alert actions

Action typeTypeRequiredDescription
typestringrequiredAll accounts assigned to organization of creating rule are notified using account notification settings' (type: 'emailAddresses')
emailAddressesarray of emailsrequiredArray of email addresses, which will be notified about alert

HEADERS

KeyDatatypeRequiredDescription
x-authstringAuthorization key and token
Content-Typestring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}