Expectation Incidents

An ExpectationIncident groups ongoing failure behavior for an Expectation over time.

List Expectation Incidents

Command

files-cli expectation-incidents list

Output

Outputs a list of ExpectationIncident objects according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

files-cli expectation-incidents list

Show Expectation Incident

Command

files-cli expectation-incidents find

Output

Outputs a ExpectationIncident object according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Expectation Incident ID.

Example Request

files-cli expectation-incidents find \
  --id=1

Resolve an expectation incident

Command

files-cli expectation-incidents resolve

Output

Outputs a ExpectationIncident object according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Expectation Incident ID.

Example Request

files-cli expectation-incidents resolve \
  --id=1

Snooze an expectation incident until a specified time

Command

files-cli expectation-incidents snooze

Output

Outputs a ExpectationIncident object according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Expectation Incident ID.
--snoozed-until=
string
Required
Time until which the incident should remain snoozed.

Example Request

files-cli expectation-incidents snooze \
  --id=1 \
  --snoozed-until="snoozed_until"

Acknowledge an expectation incident

Command

files-cli expectation-incidents acknowledge

Output

Outputs a ExpectationIncident object according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Expectation Incident ID.

Example Request

files-cli expectation-incidents acknowledge \
  --id=1

The ExpectationIncident Object

Some of the commands above return a ExpectationIncident object. The attributes of this object are listed below.

AttributeDescription
id
int64
Expectation Incident ID
workspace_id
int64
Workspace ID. 0 means the default workspace.
expectation_id
int64
Expectation ID.
status
string
Incident status.
Possible values: open, acknowledged, snoozed, resolved
opened_at
date-time
When the incident was opened.
last_failed_at
date-time
When the most recent failing evaluation contributing to the incident occurred.
acknowledged_at
date-time
When the incident was acknowledged.
snoozed_until
date-time
When the current snooze expires.
resolved_at
date-time
When the incident was resolved.
opened_by_evaluation_id
int64
Evaluation that first opened the incident.
last_evaluation_id
int64
Most recent evaluation linked to the incident.
resolved_by_evaluation_id
int64
Evaluation that resolved the incident.
summary
object
Compact incident summary payload.
created_at
date-time
Creation time.
updated_at
date-time
Last update time.