types

package
v0.0.0-...-34cbb95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	ID        string `json:"id" datastore:"id"`
	Action    string `json:"action"`
	User      string `json:"user"`
	Body      string `json:"body" datastore:"body,noindex"`
	Timestamp int64  `json:"timestamp" datastore:"timestamp"`
}

AuditLog - contains information about action taken by a user on am.

type IncidentsInRangeRequest

type IncidentsInRangeRequest struct {
	Range    string            `json:"range"`
	Incident incident.Incident `json:"incident"`
}

IncidentsInRangeRequest - request of the "incidents_in_range" endpoint.

type IncidentsResponse

type IncidentsResponse struct {
	Incidents                    []incident.Incident `json:"incidents"`
	IdsToRecentlyExpiredSilences map[string]bool     `json:"ids_to_recently_expired_silences"`
}

IncidentsResponse - response of the "incidents" endpoint.

type RecentIncidentsResponse

type RecentIncidentsResponse struct {
	Incidents              []incident.Incident `json:"incidents"`
	Flaky                  bool                `json:"flaky"`
	RecentlyExpiredSilence bool                `json:"recently_expired_silence"`
}

RecentIncidentsResponse - response of the "recent_incidents" endpoint.

type Stat

type Stat struct {
	Num      int               `json:"num"`
	Incident incident.Incident `json:"incident"`
}

Stat - contains statistics of an incident.

type StatsRequest

type StatsRequest struct {
	Range string `json:"range"`
}

StatsRequest - request of the "stats" endpoint.

type StatsResponse

type StatsResponse []*Stat

StatsResponse - response of the "stats" endpoint.

Directories

Path Synopsis
Program to generate TypeScript definition files for Golang structs that are serialized to JSON for the web UI.
Program to generate TypeScript definition files for Golang structs that are serialized to JSON for the web UI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL