API reference
Server profiles
Reusable server profiles: the checks and thresholds a group of servers share.
Its operations need the scopes server_profiles.edit, server_profiles.view, server_profiles.delete, security.policy, alarms.edit or security.view.
The Server profile object
Attributes
- uuidstring
The profile’s uuid.
- namestring
The profile’s name.
- slugstring
Fixed at creation: the value of an install command’s
--profile=. - descriptionstring or null
The profile’s description; null when it has none.
- profile_typestring
The profile’s type:
defaultfor the organisation’s default profile, otherwisecustom. - osstring
The profile’s operating system, fixed at creation: one of
linux,windows. - logging_disabledboolean
Whether the agent collects no logs.
- telemetry_disabledboolean
Whether the agent collects no telemetry.
- telemetry_capture_allboolean
Whether every telemetry option is collected.
- servers_countinteger
How many servers use the profile.
- telemetry_optionsarray of strings
The telemetry options collected when
telemetry_capture_allis false: any ofcpu,memory,swap,disk,disk_io,network,load,processesandsystemd. - log_filesarray of objects
The log files the agent collects.
- uuidstring
The log file entry’s uuid.
- source_typestring
What is collected:
filefor a log file,journaldfor the systemd journal,windows_event_logfor a Windows Event Log channel. - pathstring or null
The path of the log file, which may be a pattern; null for
journald. - formatstring or null
How the backend parses the file’s lines at ingest into status, method, path and duration:
nginx_combined,wt15_timedorwt15_relay; null when it is not parsed. - channelstring or null
For a
windows_event_logentry, the Event Log channel; null for the other types. - min_levelstring or null
For a
windows_event_logentry, the least severe level collected:critical,error,warningorinformation; null for the other types. - event_idsarray of integers
For a
windows_event_logentry, the event ids collected, empty for every event at or abovemin_level; empty for the other types.
- log_foldersarray of objects
The log folders the agent collects.
- uuidstring
The log folder entry’s uuid.
- pathstring
The absolute path of the folder, read literally.
- match_modestring or null
Which files in the folder are collected:
allfor every file,regexfor those matchingpattern; null when not set. - patternstring or null
The regular expression for
regexmode; null otherwise. - extensionsarray of strings
The file extensions that apply to the folder’s files; may be empty.
- tagsarray of objects
The tags the profile gives its servers.
- uuidstring
The tag’s uuid.
- namestring
The tag’s name.
- alarm_snoozeobject or null
The profile’s own alarm snooze, which holds the alarm notifications of every server using the profile; null when none is live. See
PUT /v1/server-profiles/{server_profile_uuid}/alarm-snooze.- untilinteger or null
Epoch milliseconds. When the profile’s snooze ends.
An instant: epoch milliseconds, UTC. - reasonstring or null
The reason given when it was set; null when none was.
- set_atinteger or null
Epoch milliseconds. When it was last set.
An instant: epoch milliseconds, UTC.
- server_led_taggingboolean
Whether servers of this profile take tags from the profile’s own tag groups.
- server_led_tag_filter_modestring or null
One of
include,exclude; null when server-led tagging is off. - server_led_tag_groupsarray of objects
The tag groups of the filter.
- uuidstring
The tag group’s uuid.
- namestring
The tag group’s name.
Create a server profile
POST/v1/server-profiles
Creates a custom server profile, for Linux servers or, with os windows, for Windows servers. The name must be unique in the organisation. The managed intervals and spool settings cannot be set, and a request that names one is refused. Unsent fields take the console’s defaults.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Body parameters
- namestringRequired
The profile’s name, unique in the organisation.
- descriptionstring or nullOptional
A description of the profile, at most 1000 characters.
- logging_disabledboolean or nullOptional
Whether the agent collects no logs.
- telemetry_disabledboolean or nullOptional
Whether the agent collects no telemetry.
- telemetry_capture_allboolean or nullOptional
Whether every telemetry option is collected.
- interval_telemetrystringOptional
Managed by WatchTower15: refused, never ignored.
- interval_sysinfostringOptional
Managed by WatchTower15: refused, never ignored.
- limit_process_seriesstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_horizon_hoursstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_metrics_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_logs_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_database_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_min_free_disk_percentstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_min_free_disk_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- telemetry_optionsarray of strings or nullOptional
When
telemetry_capture_allis false, at least one option.Values:cpumemoryswapdiskdisk_ionetworkloadprocessessystemd(an open set: new values may be added) - log_filesarray of objects or nullOptional
The log files and journals the agent collects.
- source_typestringOptional
What to collect:
filefor a log file,journaldfor the systemd journal (a Linux profile only),windows_event_logfor a Windows Event Log channel (a Windows profile only).Values:filejournaldwindows_event_log(an open set: new values may be added) - pathstring or nullOptional
The path of the log file, which may be a pattern; required when
source_typeisfile. - formatstring or nullOptional
How the backend reads an access log file’s lines at ingest:
nginx_combined,wt15_timed(nginx’s combined format and the request time) orwt15_relay(a reverse proxy’s format with the upstream status); only for afileentry, null for none. A save that leaves it out keeps the entry’s current value; an explicit null clears it.Values:nginx_combinedwt15_timedwt15_relay(an open set: new values may be added) - channelstring or nullOptional
For a
windows_event_logentry, the channel:System,Application,Microsoft-Windows-PowerShell/Operational; 1 to 255 characters, unique in the profile ignoring case. Required for that type and refused on the others. - min_levelstring or nullOptional
For a
windows_event_logentry, the least severe level collected:critical,error,warningorinformation. Required for that type and refused on the others.Values:criticalerrorwarninginformation(an open set: new values may be added) - event_idsarray of integers or nullOptional
For a
windows_event_logentry, the event ids collected: up to 50 unique ids from 0 to 65535; left out or empty, every event at or abovemin_level. Refused on the other types.
- osstring or nullOptional
The profile’s operating system,
linuxorwindows, fixed at creation; left out,linux.Values:linuxwindows(an open set: new values may be added) - log_foldersarray of objects or nullOptional
The log folders the agent collects.
- pathstringOptional
The absolute path of the folder, read literally: it may not contain
*,?or[. - match_modestring or nullOptional
Which files in the folder are collected:
allfor every file,regexfor those matchingpattern.Values:allregex(an open set: new values may be added) - patternstring or nullOptional
The regular expression for
regexmode; required whenmatch_modeisregex. - extensionsarray of strings or nullOptional
The file extensions that apply to the folder’s files.
- tag_uuidsarray of strings or nullOptional
The uuids of the tags the profile gives its servers.
- server_led_taggingboolean or nullOptional
Whether servers of this profile take tags from the profile’s own tag groups.
- server_led_tag_filter_modestring or nullOptional
Whether the tag groups in
server_led_tag_group_uuidsare included or excluded:includeorexclude; required whenserver_led_taggingis true.Values:includeexclude(an open set: new values may be added) - server_led_tag_group_uuidsarray of strings or nullOptional
The uuids of the tag groups the profile’s tagging draws from.
Returns
201 Created:
The new server profile.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Update a server profile
PUT/v1/server-profiles/{server_profile_uuid}
Updates a server profile; only the fields sent change. profile_type: default promotes this profile to be the default, and a default profile is never demoted directly. sync_tags applies the profile’s tags to its servers now, as sync_tags_mode says. The managed intervals and spool settings cannot be set.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The uuid of the server profile.
Body parameters
- namestringRequired
The profile’s name, unique in the organisation.
- profile_typestring or nullOptional
defaultpromotes this profile; a default profile is never demoted directly, promote another instead.Values:defaultcustom(an open set: new values may be added) - descriptionstring or nullOptional
A description of the profile, at most 1000 characters.
- logging_disabledboolean or nullOptional
Whether the agent collects no logs.
- telemetry_disabledboolean or nullOptional
Whether the agent collects no telemetry.
- telemetry_capture_allboolean or nullOptional
Whether every telemetry option is collected.
- interval_telemetrystringOptional
Managed by WatchTower15: refused, never ignored.
- interval_sysinfostringOptional
Managed by WatchTower15: refused, never ignored.
- limit_process_seriesstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_horizon_hoursstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_metrics_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_logs_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_database_cap_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_min_free_disk_percentstringOptional
Managed by WatchTower15: refused, never ignored.
- spool_min_free_disk_mbstringOptional
Managed by WatchTower15: refused, never ignored.
- telemetry_optionsarray of strings or nullOptional
When
telemetry_capture_allis false, at least one option.Values:cpumemoryswapdiskdisk_ionetworkloadprocessessystemd(an open set: new values may be added) - log_filesarray of objects or nullOptional
The log files and journals the agent collects.
- source_typestringOptional
What to collect:
filefor a log file,journaldfor the systemd journal (a Linux profile only),windows_event_logfor a Windows Event Log channel (a Windows profile only).Values:filejournaldwindows_event_log(an open set: new values may be added) - pathstring or nullOptional
The path of the log file, which may be a pattern; required when
source_typeisfile. - formatstring or nullOptional
How the backend reads an access log file’s lines at ingest:
nginx_combined,wt15_timed(nginx’s combined format and the request time) orwt15_relay(a reverse proxy’s format with the upstream status); only for afileentry, null for none. A save that leaves it out keeps the entry’s current value; an explicit null clears it.Values:nginx_combinedwt15_timedwt15_relay(an open set: new values may be added) - channelstring or nullOptional
For a
windows_event_logentry, the channel:System,Application,Microsoft-Windows-PowerShell/Operational; 1 to 255 characters, unique in the profile ignoring case. Required for that type and refused on the others. - min_levelstring or nullOptional
For a
windows_event_logentry, the least severe level collected:critical,error,warningorinformation. Required for that type and refused on the others.Values:criticalerrorwarninginformation(an open set: new values may be added) - event_idsarray of integers or nullOptional
For a
windows_event_logentry, the event ids collected: up to 50 unique ids from 0 to 65535; left out or empty, every event at or abovemin_level. Refused on the other types.
- osstringOptional
Refused: a profile’s operating system is set when it is created.
- log_foldersarray of objects or nullOptional
The log folders the agent collects.
- pathstringOptional
The absolute path of the folder, read literally: it may not contain
*,?or[. - match_modestring or nullOptional
Which files in the folder are collected:
allfor every file,regexfor those matchingpattern.Values:allregex(an open set: new values may be added) - patternstring or nullOptional
The regular expression for
regexmode; required whenmatch_modeisregex. - extensionsarray of strings or nullOptional
The file extensions that apply to the folder’s files.
- tag_uuidsarray of strings or nullOptional
The uuids of the tags the profile gives its servers.
- server_led_taggingboolean or nullOptional
Whether servers of this profile take tags from the profile’s own tag groups.
- server_led_tag_filter_modestring or nullOptional
Whether the tag groups in
server_led_tag_group_uuidsare included or excluded:includeorexclude; required whenserver_led_taggingis true.Values:includeexclude(an open set: new values may be added) - server_led_tag_group_uuidsarray of strings or nullOptional
The uuids of the tag groups the profile’s tagging draws from.
- sync_tagsboolean or nullOptional
Instruction: apply the profile’s tags to its servers now.
- sync_tags_modestring or nullOptional
additivekeeps a server’s other tags;exclusivereplaces them.Values:additiveexclusive(an open set: new values may be added)
Returns
200 OK:
The server profile after the update.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Get a server profile
GET/v1/server-profiles/{server_profile_uuid}
Returns one server profile with its telemetry options, log files, log folders, tags and tag filter. The managed intervals and spool settings are not part of the public profile, and neither are its alarm templates: read and change those with /v1/server-profiles/{server_profile_uuid}/alarm-templates.
Needs the scope server_profiles.view.
Path parameters
- server_profile_uuidstring (uuid)Required
The uuid of the server profile.
Returns
200 OK:
The server profile.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List server profiles
GET/v1/server-profiles
Lists the organisation’s server profiles, the default profiles first (Linux, then Windows); os keeps one operating system’s. Each row carries the profile’s settings and counts; read a profile for its log files, log folders and tag filter. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope server_profiles.view.
Query parameters
- limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - osstring or nullOptional
Only the profiles of one operating system:
linuxorwindows.Values:linuxwindows(an open set: new values may be added) - per_pageinteger or nullOptional
How many profiles to return in one page, from 1 to 100.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the organisation’s server profiles.
Each item of the page:
- uuidstring
The profile’s uuid.
- namestring
The profile’s name.
- slugstring
Fixed at creation: the value of an install command’s
--profile=. - descriptionstring or null
The profile’s description; null when it has none.
- profile_typestring
The profile’s type:
defaultfor the organisation’s default profile, otherwisecustom. - osstring
The profile’s operating system, fixed at creation: one of
linux,windows. - logging_disabledboolean
Whether the agent collects no logs.
- telemetry_disabledboolean
Whether the agent collects no telemetry.
- telemetry_capture_allboolean
Whether every telemetry option is collected.
- telemetry_options_countinteger
How many telemetry options are selected.
- servers_countinteger
How many servers use the profile.
- alarm_snoozeobject or null
The profile’s own alarm snooze, which holds the alarm notifications of its servers; null when none is live.
- untilinteger or null
Epoch milliseconds. When the profile’s snooze ends.
An instant: epoch milliseconds, UTC. - reasonstring or null
The reason given when it was set; null when none was.
- set_atinteger or null
Epoch milliseconds. When it was last set.
An instant: epoch milliseconds, UTC.
- tagsarray of objects
The tags the profile gives its servers.
- uuidstring
The tag’s uuid.
- namestring
The tag’s name.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Delete a server profile
DELETE/v1/server-profiles/{server_profile_uuid}
Deletes a server profile. The default profile and a profile that servers use cannot be deleted and are refused with 422.
Needs the scope server_profiles.delete.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The uuid of the server profile.
Returns
204 No Content:
The server profile was deleted; the answer has no body.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
List a server profile's alarm templates
GET/v1/server-profiles/{server_profile_uuid}/alarm-templates
Lists the alarm templates of a server profile: the alarms every server on the profile gets, with each template’s thresholds, the policies it notifies, how many servers’ alarms still follow it and how many were edited by hand. A template whose rule has been retired is not listed. Pages by page and per_page (limit is the same as per_page); every page carries current_page, per_page, last_page and total.
Needs the scope server_profiles.view.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
Query parameters
- limitinteger or nullOptional
The same as
per_page, kept for existing clients. - include_totalstring or nullOptional
Ignored:
totalis always present.Values:truefalse10(an open set: new values may be added) - per_pageinteger or nullOptional
How many items one page holds, from 1 to 100; 25 when omitted.
- pageinteger or nullOptional
The page to read, from 1; 1 when omitted. A page past the last answers no rows.
Returns
200 OK:
One page of the profile’s alarm templates.
Each item of the page:
- uuidstring
The template’s uuid.
- namestring
The template’s own name, else its rule’s.
- rule_slugstring
The catalogue rule’s slug.
- classificationstring
The catalogue rule’s classification: one of
operations,security,monitoring. - metric_namestring
The catalogue rule’s name.
- descriptionstring or null
The catalogue rule’s description; null when it has none.
- alarm_typestring or null
booleanorthreshold, as the catalogue rule says. - unitstring or null
The unit of the thresholds; null when the rule has none.
- comparison_operatorstring
How a reading is compared with the thresholds: the template’s own operator, else the rule’s default.
- aggregationstring or null
How the readings in a window are combined before the comparison; null when the template sets none.
- warning_thresholdnumber or null
The template’s own value, else the rule’s default.
- critical_thresholdnumber or null
The template’s own value, else the rule’s default.
- warning_window_minutesinteger or null
The window, in minutes, the warning threshold is judged over; null when the template has none.
- critical_window_minutesinteger or null
The window, in minutes, the critical threshold is judged over; null when the template has none.
- warning_consecutive_failures_countinteger
Consecutive evaluations before a warning: the template’s own count, else the rule’s default.
- critical_consecutive_failures_countinteger
Consecutive evaluations before a critical: the template’s own count, else the rule’s default.
- self_resolvingboolean
Whether the alarm clears itself when the condition ends (it sends no resolve notification).
- activeboolean
Whether the template’s alarms are switched on.
- notify_on_acknowledgeboolean
Whether acknowledging an incident of the template’s alarms notifies: the template’s own flag, else the catalogue’s.
- notify_on_resolveboolean
Whether resolving an incident of the template’s alarms notifies: the template’s own flag, else the catalogue’s.
- alarm_policiesarray of objects
The policies the template’s alarms notify. A caller holding
policies.view(the key’s scope and the user’s permission) gets each policy’sname; without it, the uuid alone.- uuidstring
The policy’s uuid.
- namestring
The policy’s name; present only for a caller holding
policies.view.
- inherited_countinteger
How many servers’ alarms still follow this template: a propagation with
apply_to_allchanges them. - overridden_countinteger
How many servers’ alarms were edited by hand and no longer follow this template: a propagation leaves them alone.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Clear a server profile's indicator policy
DELETE/v1/server-profiles/{server_profile_uuid}/indicator-policies/{indicator}
Removes the policy of one rule on this server profile, so the rule reads its defaults. Needs the security.policy scope.
Needs the scope security.policy.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile.
- indicatorstringRequired
The rule:
exe_world_writableortmp_executable.Values:exe_world_writabletmp_executable(an open set: new values may be added)
Returns
204 No Content:
The policy was cleared; the answer has no body.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Create an alarm template on a server profile
POST/v1/server-profiles/{server_profile_uuid}/alarm-templates
Adds an alarm template to a server profile, from a server rule of the catalogue named by rule_slug (read GET /v1/alarm-rules?entity_type=server). Servers already on the profile are not changed by this call: the new template’s alarm is later added to each server of the profile that lacks it (add only, never changing an existing alarm), with no time you can rely on. To change or remove alarms on the profile’s servers now, edit or delete templates, then preview-propagation and propagate. active and alarm_policy_uuids cannot be null; an empty alarm_policy_uuids means no policies.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
Body parameters
- rule_slugstringRequired
The slug of the catalogue rule the template is based on, from
GET /v1/alarm-rules?entity_type=server; required. A server profile holds server rules only, so a slug of another entity type is refused. - namestring or nullOptional
The template’s own name, up to 255 characters. Left out, the template takes its rule’s name.
- aggregationstring or nullOptional
How the readings in a window are combined before the comparison:
sum,count,avg,min,maxorlast. Left out, the rule’s default applies.Values:sumcountavgminmaxlast(an open set: new values may be added) - comparison_operatorstring or nullOptional
How a reading is compared with the thresholds:
lt,lte,gt,gteoreq. Left out, the rule’s default applies.Values:ltltegtgteeq(an open set: new values may be added) - warning_thresholdnumber or nullOptional
The warning threshold, a number; negatives and fractions are allowed. Left out, the rule’s default applies.
- critical_thresholdnumber or nullOptional
The critical threshold, a number; negatives and fractions are allowed. Left out, the rule’s default applies.
- warning_window_minutesinteger or nullOptional
The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Left out, the rule’s default applies.
- critical_window_minutesinteger or nullOptional
The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Left out, the rule’s default applies.
- warning_consecutive_failures_countinteger or nullOptional
Consecutive evaluations before a warning, from 1 to 100. Left out, the rule’s default applies.
- critical_consecutive_failures_countinteger or nullOptional
Consecutive evaluations before a critical, from 1 to 100. Left out, the rule’s default applies.
- activebooleanOptional
Whether the template’s alarms start switched on;
truewhen left out.nullis refused. - notify_on_acknowledgeboolean or nullOptional
Whether acknowledging an incident of the template’s alarms notifies. Left out, the catalogue rule’s flag applies.
- notify_on_resolveboolean or nullOptional
Whether resolving an incident of the template’s alarms notifies. Left out, the catalogue rule’s flag applies.
- alarm_policy_uuidsarray of stringsOptional
The alarm policies the template’s alarms notify; an empty list or none means no policies, and
nullis refused. Each uuid is a policy of this organisation.
Returns
201 Created:
The created alarm template.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Delete an alarm template of a server profile
DELETE/v1/server-profiles/{server_profile_uuid}/alarm-templates/{template_uuid}
Deletes an alarm template. The alarms it created on the profile’s servers are not removed by this call: they stay, each now the server’s own alarm, until a propagate with apply_to_all: true removes the alarms whose template is gone. A template of another profile answers 404.
Needs the scope server_profiles.delete.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
- template_uuidstring (uuid)Required
The UUID of the alarm template in the path; it must be a template of this profile.
Returns
204 No Content:
Nothing: the answer is 204.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Duplicate a server profile
POST/v1/server-profiles/{server_profile_uuid}/duplicate
Creates a copy of a server profile, with its alarm templates and their policy links, as the console’s duplicate does. The copy is a custom profile. A profile that has indicator policies is copied with them, and duplicating it needs the security.policy scope too; without it the call is refused with 403.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The uuid of the server profile.
Returns
201 Created:
The new copy of the server profile.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
End a server profile's alarm snooze
DELETE/v1/server-profiles/{server_profile_uuid}/alarm-snooze
Ends the profile’s alarm snooze early, so held notifications of its servers are released by the next sweep (up to a minute), unless a server’s own snooze still holds them, as described for PUT. The call is safe to repeat: it answers 204 also when the profile had no live snooze, since the end state is what you asked for. Needs the alarms.edit scope.
Needs the scope alarms.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile.
Returns
204 No Content:
The snooze was ended, or there was none; the answer has no body.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Read a server profile's indicator policies
GET/v1/server-profiles/{server_profile_uuid}/indicator-policies
Reads the policy of the two temporary-execution rules (exe_world_writable, tmp_executable) of this server profile.
Needs the scope security.view.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile.
Returns
200 OK:
The policy of each rule.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Preview propagating a profile's alarm templates
POST/v1/server-profiles/{server_profile_uuid}/alarm-templates/preview-propagation
A dry run of propagate: for each template, how many servers would get a new alarm, how many alarms would change and how many are kept because they were edited by hand or deleted on that server, and, for alarms whose template is gone, how many would be removed and how many open incidents that would resolve. It writes nothing. Read it before propagate with apply_to_all: true.
Needs the scope server_profiles.view.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
Returns
200 OK:
What a propagation would change.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Propagate a profile's alarm templates to its servers
POST/v1/server-profiles/{server_profile_uuid}/alarm-templates/propagate
Applies the profile’s alarm templates to the servers on it. With apply_to_all false or left out, it only adds the alarms servers are missing and changes nothing else. With apply_to_all: true it also applies the templates’ values to the alarms that follow them and removes, on every server of the profile, the alarms whose template is gone, resolving their open incidents; alarms edited by hand and alarms deleted on a server are kept. Run preview-propagation first: removing an alarm stops monitoring what it watched, with no other symptom.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
Body parameters
- apply_to_allboolean or nullOptional
false(the default) only adds the alarms servers are missing and changes nothing else.truealso applies the templates’ values to the alarms that follow them and removes, on every server of the profile, the alarms whose template is gone; alarms edited by hand and alarms deleted on a server are kept.
Returns
200 OK:
How many alarms were added, updated, removed and kept.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Snooze a server profile's alarms
PUT/v1/server-profiles/{server_profile_uuid}/alarm-snooze
Holds the alarm notifications of every server of one server profile for a set time, as the console’s Snooze does. The alarms keep evaluating the whole time: incidents still open, escalate, step down and resolve, and health and the alarm states keep their real values; only the automatic notifications are held. It covers every server that uses the profile at the moment a notification would be sent, read live: a server that joins the profile while it is snoozed is snoozed, and one that leaves it is not. For each server it covers the server’s own alarms and those of its volumes, ports and systemd units, including the *_reporting_stopped alarms. A server’s database instances, services, domains, log sources and custom metrics are their own resources and are not covered. While a snooze is live, a new or escalated incident whose alarm has a notification policy is held, not sent, and reads notification_held_at on the incident. An incident that resolves while the server is snoozed is resolved without a notification, even one that was notified before the snooze started, and an incident whose trigger was held is resolved without one too: the team is not told that an earlier page cleared. A person’s acknowledge or resolve still notifies and clears the hold, snoozed or not. When the snooze ends, by its time or by DELETE, each incident still open whose notification was held is notified once at its current severity (the stored message, so it may read as lowered from a higher severity); one already acknowledged or resolved is cleared without a notification. That release is made by a sweep that runs every minute, so it can lag the end by up to a minute. A server is snoozed while either its own snooze or its profile’s is live, and stays quiet until the later of the two ends: ending the profile’s snooze leaves a server’s own in force. Send duration (a whole number, at least 1) and unit (minutes, hours or days), counted from now: the total is 1 minute to 30 days, and more is refused with 422. Setting a snooze on a profile that already has one replaces its end, so a second call extends or shortens it, and there is one snooze for each. reason is optional, plain text, at most 500 characters. A snooze takes effect from the next evaluation pass (up to a minute), so a notification can still go out in the pass that is running when you call, and likewise an end takes effect from the next pass. Needs the alarms.edit scope.
Needs the scope alarms.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile.
Body parameters
- durationintegerRequired
How long the snooze lasts, a whole number of
units, at least 1. The total is 1 minute to 30 days: at most 43200minutes, 720hoursor 30days. - unitstringRequired
The unit of
duration:minutes,hoursordays.Values:minuteshoursdays(an open set: new values may be added) - reasonstring or nullOptional
Why the alarms are snoozed, plain text, at most 500 characters; null or left out for none. It is shown to the team with the snooze.
Returns
200 OK:
The profile’s own snooze after the call: when it ends, its reason and when it was set.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Update an alarm template of a server profile
PUT/v1/server-profiles/{server_profile_uuid}/alarm-templates/{template_uuid}
Changes the fields sent; what is not sent keeps its value. A null returns a threshold, window, consecutive count, aggregation or comparison_operator to the catalogue rule’s default, name to the rule’s name and a notify flag to the catalogue’s; active and alarm_policy_uuids cannot be null, and alarm_policy_uuids: [] clears the policies. This changes no server’s alarm by itself: run preview-propagation and then propagate with apply_to_all: true to apply the new values to the alarms that follow the template. A template of another profile answers 404.
Needs the scope server_profiles.edit.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile in the path.
- template_uuidstring (uuid)Required
The UUID of the alarm template in the path; it must be a template of this profile.
Body parameters
- namestring or nullOptional
The template’s own name, up to 255 characters. Send
nullto return it to the catalogue rule’s name. - aggregationstring or nullOptional
How the readings in a window are combined before the comparison:
sum,count,avg,min,maxorlast. Sendnullto return it to the rule’s default.Values:sumcountavgminmaxlast(an open set: new values may be added) - comparison_operatorstring or nullOptional
How a reading is compared with the thresholds:
lt,lte,gt,gteoreq. Sendnullto return it to the rule’s default.Values:ltltegtgteeq(an open set: new values may be added) - warning_thresholdnumber or nullOptional
The warning threshold, a number; negatives and fractions are allowed. Send
nullto return it to the rule’s default. - critical_thresholdnumber or nullOptional
The critical threshold, a number; negatives and fractions are allowed. Send
nullto return it to the rule’s default. - warning_window_minutesinteger or nullOptional
The window, in minutes, the warning threshold is judged over, from 1 to 43200 (30 days). Send
nullto return it to the rule’s default. - critical_window_minutesinteger or nullOptional
The window, in minutes, the critical threshold is judged over, from 1 to 43200 (30 days). Send
nullto return it to the rule’s default. - warning_consecutive_failures_countinteger or nullOptional
Consecutive evaluations before a warning, from 1 to 100. Send
nullto return it to the rule’s default. - critical_consecutive_failures_countinteger or nullOptional
Consecutive evaluations before a critical, from 1 to 100. Send
nullto return it to the rule’s default. - activebooleanOptional
Whether the template’s alarms are switched on.
nullis refused: a propagation withapply_to_allwould switch that alarm off on every server of the profile that has not overridden it. - notify_on_acknowledgeboolean or nullOptional
Whether acknowledging an incident of the template’s alarms notifies. Send
nullto return it to the catalogue rule’s flag. - notify_on_resolveboolean or nullOptional
Whether resolving an incident of the template’s alarms notifies. Send
nullto return it to the catalogue rule’s flag. - alarm_policy_uuidsarray of stringsOptional
The alarm policies the template’s alarms notify, a full replacement of the saved ones;
[]detaches every policy andnullis refused. Each uuid is a policy of this organisation.
Returns
200 OK:
The alarm template after the change.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.
Set a server profile's indicator policy
PUT/v1/server-profiles/{server_profile_uuid}/indicator-policies/{indicator}
Disables or reconfigures one rule on this server profile: its state, a severity override and known execution folders, with a reason and a review date. Needs the security.policy scope. A body that equals the defaults is refused with 422: clear the policy instead. Writing it again with the same values is idempotent.
Needs the scope security.policy.
Headers
- Idempotency-KeystringOptional
Any text of 1 to 255 visible ASCII characters. A repeat of the same request within 24 hours returns the first answer without running again (the response carries
Idempotent-Replayed: true); the same key on a different request is refused 422invalid_request.
Path parameters
- server_profile_uuidstring (uuid)Required
The UUID of the server profile.
- indicatorstringRequired
The rule:
exe_world_writableortmp_executable.Values:exe_world_writabletmp_executable(an open set: new values may be added)
Body parameters
- statestringRequired
onoroff: whether the rule is checked. Required:onoroff.Values:onoff(an open set: new values may be added) - severitystring or nullOptional
The severity every object of the rule takes,
critical,warningorinfo; null leaves the rule’s own. Never belowwarningin/dev/shm.Values:criticalwarninginfo(an open set: new values may be added) - known_foldersarray of strings or nullOptional
Known execution folders, each an absolute path under
/tmpor/var/tmp(not the bare roots, never under/dev/shm), at most 32, each at most 1,024 characters. An executable in one, while its folder is private to its owner, is recorded as Info. - reasonstringRequired
Why the policy is in force, 1 to 500 characters.
- review_onstring (date)Required
The day the policy is looked at again,
YYYY-MM-DD, after today and within 12 months (UTC).
Returns
200 OK:
The policy after the call.
Each failure is a problem document with a stable code; the response panel's status selector shows each one this operation can answer, and errors lists them all.