smart_notification_rules

Update smart notification rule

Updates a smart notification rule.

Returns the updated smart notification rule.

Only pass in the fields you want to change.

put/v2/insights/smart_notification_rules/{rule_id}

Request

Path parameters

rule_idinteger required

smart notification rule ID

Request body

namestring

Rule name

frequency'hourly' | 'daily' | 'weekly' | 'monthly'

Determines how often the conditions for notifications are checked

metric_type'work_time' | 'core_time' | 'non_core_time' | 'unproductive_time' | 'activity' | 'suspicious_activity' | 'unusual_activity' | 'time_spent_in_tool' | 'idle_time' | 'idle_time_percent' | 'manual_time' | 'manual_time_percent' | 'geo_ip_changes' | 'users_per_ip' | 'geo_ip_list_match'

Metric type to be monitored

condition'above' | 'below'

Rule condition

condition_valuenumber float

Rule threshold value (in seconds if metric type is work_timeor time_spent_in_tool)

deliver_bystring[]

List of delivery methods for sending notifications

time_unit'per_hour' | 'per_day' | 'per_week' | 'per_month'

Duration of time over which the rule is evaluated

Response

A smart notification rule

Changes

No recorded changes to this operation across all 1 revision of this API.