Skip to content

Alerts in the Slide API

You can list, resolve and reopen alerts with the Slide API. It has the same fields and filters as the Alerts page, and the reference for each alert type.

Alert fields

As well as the alert type, its Slide Box, protected system and times, each alert from GET /v1/alert has:

  • category and priority: the alert's category and priority. Today the priority is always the alert type's default priority, but that may change, so read it from each alert rather than looking it up by type.
  • hypervisor_id: the hypervisor an agentless alert is about.
  • tenant_id and tenant_display_name: the Microsoft 365 tenant a SaaS alert is about, by ID and by name. The name is the tenant's name when the alert was last raised or updated. Both are left out for every other alert, and the name is left out when the tenant has none.
  • client_id: the alert's client. For a protected system, that's the protected system's own client, which matters on a Slide Box shared by several clients. For the Slide Box's own alerts and hypervisor alerts, it's the Slide Box's client, so on a Slide Box shared by several clients they have none. For a SaaS alert, it's the tenant's client, and if you move the tenant to another client, its alerts move with it. It's left out when there's no client, such as a tenant that isn't assigned to a client, so filtering by client_id doesn't return them.
  • occurrence_count and last_occurred_at: how many times the condition happened while the alert was open, counting the first, and when it last happened. They're left out for alert types that don't count repeats (usually the ones Slide re-checks on a schedule), and for alerts opened before Slide started counting.
  • delivery_paused: whether notifications for this alert type are paused on its Slide Box, protected system or hypervisor right now. A paused alert is still recorded and listed. It's always false for SaaS alerts.

A SaaS alert is about a tenant, not a Slide Box, protected system or hypervisor, so it has no device_id, agent_id or hypervisor_id.

SaaS alert fields

Every alert has alert_fields, the details behind its message. For the three SaaS alert types, alert_fields has:

  • account: the account's account_id and name.
  • tenant: the tenant's tenant_id, name and client_name. client_name is left out when the tenant has no client.
  • cause: why the alert is open, as a key (see below).
  • fixer: who can fix it, as a key (see below).
  • failing_since: when the problem started.
  • failing_threshold: how long the problem had to last before Slide raised the alert. For SaaS Backup Failed, this is the time on top of the resource's backup schedule, not including the schedule's own gap.

SaaS Backup Failed alerts also have:

  • affected_count: how many resources in the tenant have at least one application that isn't backing up, including the ones counted in not_attempted_count.
  • not_attempted_count: how many of them had no backup attempted at all. It's left out when it's zero.
  • samples: up to 20 of the affected resources, the ones failing longest first. Each has a resource_id, a name, a kind (user, shared_mailbox, group or site) and last_success, the last successful backup of the resource's longest-failing application, which is left out if that application has never backed up. A sample doesn't say which application is failing.

failing_since and last_success are times, and failing_threshold is a length of time. Each one is an object with seconds (since the Unix epoch, for a time) and, when it isn't zero, nanos. For example:

{
  "account": {"account_id": "act_0123456789ab", "name": "Example MSP"},
  "tenant": {"tenant_id": "tnt_0123456789ab", "name": "Contoso", "client_name": "Contoso Ltd"},
  "affected_count": 3,
  "not_attempted_count": 1,
  "samples": [
    {"resource_id": "res_0123456789ab", "name": "Adele Vance", "kind": "user", "last_success": {"seconds": 1762300800}}
  ],
  "cause": "access_denied",
  "fixer": "tenant_admin",
  "failing_since": {"seconds": 1762300800},
  "failing_threshold": {"seconds": 86400}
}

The cause keys are:

  • tenant_not_found: Microsoft 365 can't find the tenant. It may have been deleted.
  • consent_revoked: access for the Slide apps was revoked in the tenant, or was never approved.
  • app_not_in_tenant: the Slide apps have been removed from the tenant, or were never added.
  • credential_invalid: Slide's credentials for the tenant are no longer valid.
  • access_denied: Microsoft 365 denied Slide access to the affected resources.
  • never_ran: no backup has been attempted for any of the affected resources. SaaS Backup Failed only.
  • unknown: Slide couldn't work out the cause.

The fixer keys are:

  • partner: you can fix it from the tenant's page in the Slide Console.
  • tenant_admin: a Global Administrator of the Microsoft 365 tenant needs to fix it.
  • slide: contact Slide support so they can look into it.

Slide may add new causes and fixers. Treat a key you don't recognize like unknown.

Filtering alerts

GET /v1/alert takes these filters, as well as the existing ones for Slide Box, protected system, resolved state and creation time:

  • alert_type, category and priority: repeat a parameter to match any of several values, for example ?category=backup&category=connection.
  • client_id, hypervisor_id and tenant_id. tenant_id returns the alerts about one Microsoft 365 tenant, for example ?tenant_id=tnt_0123456789ab.

Different filters must all match, so ?category=backup&priority=high returns high-priority backup alerts. An unknown value returns an error (400).

Alert type catalog

  • GET /v1/alert-type lists the alert types your account can receive: each one's key, name, category, default priority, what it applies to (for example standard_agent, or m365_tenant for a Microsoft 365 tenant protected with SaaS backup), its resolve rule and resolve_min_age_hours, the minimum time it stays open before it can resolve itself. You can filter it by category.
  • GET /v1/alert-type/{alert_type} returns one alert type. It returns 404 for a type your account can't receive, such as agentless alert types on an account without agentless backup.

Reopening an alert

PATCH /v1/alert/{alert_id} with {"resolved": false} reopens a resolved alert. If another alert of the same type is already open for the same Slide Box, protected system or hypervisor, it fails with a 409 error, err_alert_already_open. When you can see that open alert, the error's details name it.

New values may appear

Slide may add new alert types, categories, priorities and resolve rules, and new kinds of object in applies_to. Treat a value you don't recognize as valid rather than as an error. If you generate an API client from the OpenAPI specification, check that it accepts values it doesn't know.