Skip to main content
POST
Generate alert recommendations

Authorizations

Authorization
string
header
required

Use an Observe API key from the management console. The key selects the project and must grant the permission listed on the operation. Keep this key on your server.

Scopes

observe:alerts:write

Response

Newline-delimited JSON stream of the generation's events.

One line of a generation's stream.

type
enum<string>
required

started comes first, progress as the phases advance (repeated while nothing else is sent), recommendation once per recommendation, and either finished or error last.

Available options:
started,
progress,
recommendation,
finished,
error
phase
enum<string>

The phase a progress event counts: score counts the rule types scored, simulate the recommendations decided.

Available options:
score,
simulate
done
integer

Done so far in the phase (progress events).

total
integer

To do in the phase (progress events).

run
object

One generation of recommendations.

recommendation
object
message
string

Why the generation failed (error events).