alerts

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2016 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcknowledgeAlertRequest

type AcknowledgeAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	User    string `json:"user,omitempty"`
	Note    string `json:"note,omitempty"`
	Source  string `json:"source,omitempty"`
}

type AcknowledgeAlertResponse

type AcknowledgeAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type AddNoteAlertRequest

type AddNoteAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	Note    string `json:"note,omitempty"`
	User    string `json:"user,omitempty"`
	Source  string `json:"source,omitempty"`
}

type AddNoteAlertResponse

type AddNoteAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type AddRecipientAlertRequest

type AddRecipientAlertRequest struct {
	ApiKey    string `json:"apiKey,omitempty"`
	AlertId   string `json:"alertId,omitempty"`
	Alias     string `json:"alias,omitempty"`
	Recipient string `json:"recipient,omitempty"`
	User      string `json:"user,omitempty"`
	Note      string `json:"note,omitempty"`
	Source    string `json:"source,omitempty"`
}

type AddRecipientAlertResponse

type AddRecipientAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type AddTeamAlertRequest

type AddTeamAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	Team    string `json:"team,omitempty"`
	User    string `json:"user,omitempty"`
	Note    string `json:"note,omitempty"`
	Source  string `json:"source,omitempty"`
}

type AddTeamAlertResponse

type AddTeamAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type AssignOwnerAlertRequest

type AssignOwnerAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	Owner   string `json:"owner,omitempty"`
	User    string `json:"user,omitempty"`
	Note    string `json:"note,omitempty"`
	Source  string `json:"source,omitempty"`
}

type AssignOwnerAlertResponse

type AssignOwnerAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type AttachFileAlertRequest

type AttachFileAlertRequest struct {
	ApiKey     string `json:"apiKey,omitempty"`
	AlertId    string `json:"alertId,omitempty"`
	Alias      string `json:"alias,omitempty"`
	Attachment string `json:"attachment,omitempty"`
	User       string `json:"user,omitempty"`
	Source     string `json:"source,omitempty"`
	IndexFile  string `json:"indexFile,omitempty"`
	Note       string `json:"note,omitempty"`
}

type AttachFileAlertResponse

type AttachFileAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type CloseAlertRequest

type CloseAlertRequest struct {
	ApiKey  string   `json:"apiKey,omitempty"`
	AlertId string   `json:"alertId,omitempty"`
	Alias   string   `json:"alias,omitempty"`
	User    string   `json:"user,omitempty"`
	Note    string   `json:"note,omitempty"`
	Notify  []string `json:"notify,omitempty"`
	Source  string   `json:"source,omitempty"`
}

type CloseAlertResponse

type CloseAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type CreateAlertRequest

type CreateAlertRequest struct {
	ApiKey      string   `json:"apiKey,omitempty"`
	Message     string   `json:"message,omitempty"`
	Teams       []string `json:"teams,omitempty"`
	Alias       string   `json:"alias,omitempty"`
	Description string   `json:"description,omitempty"`
	Recipients  []string `json:"recipients,omitempty"`
	Actions     []string `json:"actions,omitempty"`
	Source      string   `json:"source,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Details     []string `json:"details,omitempty"`
	Entity      string   `json:"entity,omitempty"`
	User        string   `json:"user,omitempty"`
	Note        string   `json:"note,omitempty"`
}

type CreateAlertResponse

type CreateAlertResponse struct {
	Message string `json:"message"`
	AlertId string `json:"alertId"`
	Status  string `json:"status"`
	Code    int    `json:"code"`
}

type DeleteAlertRequest

type DeleteAlertRequest struct {
	ApiKey  string `url:"apiKey,omitempty"`
	AlertId string `url:"alertId,omitempty"`
	Alias   string `url:"alias,omitempty"`
	User    string `url:"user,omitempty"`
	Source  string `url:"source,omitempty"`
}

type DeleteAlertResponse

type DeleteAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type ExecuteActionAlertRequest

type ExecuteActionAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	Action  string `json:"action,omitempty"`
	User    string `json:"user,omitempty"`
	Source  string `json:"source,omitempty"`
	Note    string `json:"note,omitempty"`
}

type ExecuteActionAlertResponse

type ExecuteActionAlertResponse struct {
	Result string `json:"result"`
	Code   int    `json:"code"`
}

type GetAlertRequest

type GetAlertRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Alias  string `url:"alias,omitempty"`
	TinyId string `url:"tinyId,omitempty"`
}

type GetAlertResponse

type GetAlertResponse struct {
	Tags         []string          `json:"tags"`
	Count        int               `json:"count"`
	Status       string            `json:"status"`
	Teams        []string          `json:"teams"`
	Recipients   []string          `json:"recipients"`
	TinyId       string            `json:"tinyId"`
	Alias        string            `json:"alias"`
	Entity       string            `json:"entity"`
	Id           string            `json:"id"`
	UpdatedAt    int               `json:"updatedAt"`
	Message      string            `json:"message"`
	Details      map[string]string `json:"details"`
	Source       string            `json:"source"`
	Description  string            `json:"description"`
	CreatedAt    int               `json:"createdAt"`
	IsSeen       bool              `json:"isSeen"`
	Acknowledged bool              `json:"acknowledged"`
	Owner        string            `json:"owner"`
	Actions      []string          `json:"actions"`
	SystemData   map[string]string `json:"systemData"`
}

func (*GetAlertResponse) GetAckTime

func (res *GetAlertResponse) GetAckTime() int

func (*GetAlertResponse) GetAcknowledgedBy

func (res *GetAlertResponse) GetAcknowledgedBy() string

func (*GetAlertResponse) GetCloseTime

func (res *GetAlertResponse) GetCloseTime() int

func (*GetAlertResponse) GetClosedBy

func (res *GetAlertResponse) GetClosedBy() string

func (*GetAlertResponse) GetIntegrationId

func (res *GetAlertResponse) GetIntegrationId() string

func (*GetAlertResponse) GetIntegrationName

func (res *GetAlertResponse) GetIntegrationName() string

func (*GetAlertResponse) GetIntegrationType

func (res *GetAlertResponse) GetIntegrationType() string

type ListAlertLogsRequest

type ListAlertLogsRequest struct {
	ApiKey  string `url:"apiKey,omitempty"`
	Id      string `url:"id,omitempty"`
	Alias   string `url:"alias,omitempty"`
	Limit   string `url:"limit,omitempty"`
	Order   string `url:"order,omitempty"`
	LastKey string `url:"lastKey,omitempty"`
}

type ListAlertLogsResponse

type ListAlertLogsResponse struct {
	LastKey string `json:"lastKey"`
	Logs    []struct {
		Log       string `json:"log"`
		LogType   string `json:"logType"`
		Owner     string `json:"owner"`
		CreatedAt int    `json:"createdAt"`
	} `json:"logs"`
}

type ListAlertNotesRequest

type ListAlertNotesRequest struct {
	ApiKey  string `url:"apiKey,omitempty"`
	Id      string `url:"id,omitempty"`
	Alias   string `url:"alias,omitempty"`
	Limit   string `url:"limit,omitempty"`
	Order   string `url:"order,omitempty"`
	LastKey string `url:"lastKey,omitempty"`
}

type ListAlertNotesResponse

type ListAlertNotesResponse struct {
	Took    int    `json:"took"`
	LastKey string `json:"lastKey"`
	Notes   []struct {
		Note      string `json:"note"`
		Owner     string `json:"owner"`
		CreatedAt int    `json:"createdAt"`
	} `json:"notes"`
}

type ListAlertRecipientsRequest

type ListAlertRecipientsRequest struct {
	ApiKey string `url:"apiKey,omitempty"`
	Id     string `url:"id,omitempty"`
	Alias  string `url:"alias,omitempty"`
}

type ListAlertRecipientsResponse

type ListAlertRecipientsResponse struct {
	Users []struct {
		Username       string `json:"username"`
		State          string `json:"state"`
		Method         string `json:"method"`
		StateChangedAt int    `json:"stateChangedAt"`
	} `json:"users"`

	Groups []struct {
		Group map[string]struct {
			Username       string `json:"username"`
			State          string `json:"state"`
			Method         string `json:"method"`
			StateChangedAt int    `json:"stateChangedAt"`
		}
	} `json:"groups"`
}

type ListAlertsRequest

type ListAlertsRequest struct {
	ApiKey        string `url:"apiKey,omitempty"`
	CreatedAfter  int    `url:"createdAfter,omitempty"`
	CreatedBefore int    `url:"createdBefore,omitempty"`
	UpdatedAfter  int    `url:"updatedAfter,omitempty"`
	UpdatedBefore int    `url:"updatedBefore,omitempty"`
	Limit         int    `url:"limit,omitempty"`
	Status        string `url:"status,omitempty"`
	SortBy        string `url:"sortBy,omitempty"`
	Order         string `url:"order,omitempty"`
}

type ListAlertsResponse

type ListAlertsResponse struct {
	Alerts []struct {
		Id           string `json:"id"`
		Alias        string `json:"alias"`
		Message      string `json:"message"`
		Status       string `json:"status"`
		IsSeen       bool   `json:"isSeen"`
		Acknowledged bool   `json:"acknowledged"`
		CreatedAt    int    `json:"createdAt"`
		UpdatedAt    int    `json:"updatedAt"`
		TinyId       string `json:"tinyId"`
	} `json:"alerts"`
}

type RenotifyAlertRequest

type RenotifyAlertRequest struct {
	ApiKey     string   `json:"apiKey,omitempty"`
	AlertId    string   `json:"alertId,omitempty"`
	Alias      string   `json:"alias,omitempty"`
	Recipients []string `json:"recipients,omitempty"`
	User       string   `json:"user,omitempty"`
	Note       string   `json:"note,omitempty"`
	Source     string   `json:"source,omitempty"`
}

type RenotifyAlertResponse

type RenotifyAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

type TakeOwnershipAlertRequest

type TakeOwnershipAlertRequest struct {
	ApiKey  string `json:"apiKey,omitempty"`
	AlertId string `json:"alertId,omitempty"`
	Alias   string `json:"alias,omitempty"`
	User    string `json:"user,omitempty"`
	Note    string `json:"note,omitempty"`
	Source  string `json:"source,omitempty"`
}

type TakeOwnershipAlertResponse

type TakeOwnershipAlertResponse struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
}

Jump to

Keyboard shortcuts

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