Expectation Incidents
An ExpectationIncident groups ongoing failure behavior for an Expectation over time.
List Expectation Incidents
SDK Method
expectationincident.List()
Return Object
[]*ExpectationIncident
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
Additional Arguments
Show Expectation Incident
SDK Method
expectationincident.Find()
Return Object
ExpectationIncident
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
ExpectationIncidentFindParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Expectation Incident ID. |
Resolve an expectation incident
SDK Method
expectationincident.Resolve()
Return Object
ExpectationIncident
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
ExpectationIncidentResolveParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Expectation Incident ID. |
Snooze an expectation incident until a specified time
SDK Method
expectationincident.Snooze()
Return Object
ExpectationIncident
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
ExpectationIncidentSnoozeParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Expectation Incident ID. |
| SnoozedUntil string Required | Time until which the incident should remain snoozed. |
Acknowledge an expectation incident
SDK Method
expectationincident.Acknowledge()
Return Object
ExpectationIncident
Authorization Requirement
Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.
ExpectationIncidentAcknowledgeParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Expectation Incident ID. |
The ExpectationIncident Object
Some of the methods above return a ExpectationIncident object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Expectation Incident ID |
| WorkspaceId int64 | Workspace ID. 0 means the default workspace. |
| ExpectationId int64 | Expectation ID. |
| Status string | Incident status. Possible values: open, acknowledged, snoozed, resolved |
| OpenedAt date-time | When the incident was opened. |
| LastFailedAt date-time | When the most recent failing evaluation contributing to the incident occurred. |
| AcknowledgedAt date-time | When the incident was acknowledged. |
| SnoozedUntil date-time | When the current snooze expires. |
| ResolvedAt date-time | When the incident was resolved. |
| OpenedByEvaluationId int64 | Evaluation that first opened the incident. |
| LastEvaluationId int64 | Most recent evaluation linked to the incident. |
| ResolvedByEvaluationId int64 | Evaluation that resolved the incident. |
| Summary object | Compact incident summary payload. |
| CreatedAt date-time | Creation time. |
| UpdatedAt date-time | Last update time. |