types

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AiIssuesResponse

type AiIssuesResponse struct {
	Incidents *IncidentsResponse `json:"incidents"`
}

type EventIngest

type EventIngest struct {
	EventType         EventType `json:"eventType,omitempty"`
	ExperimentKey     string    `json:"experimentKey,omitempty"`
	ExperimentName    string    `json:"experimentName,omitempty"`
	ExecutionId       string    `json:"executionId,omitempty"`
	State             string    `json:"state,omitempty"`
	TeamName          string    `json:"teamName,omitempty"`
	TeamKey           string    `json:"teamKey,omitempty"`
	EnvironmentName   string    `json:"environmentName,omitempty"`
	PrincipalType     string    `json:"principalType,omitempty"`
	PrincipalName     string    `json:"principalName,omitempty"`
	PrincipalUsername string    `json:"principalUsername,omitempty"`
	ActionId          string    `json:"actionId,omitempty"`
	ActionName        string    `json:"actionName,omitempty"`
	ActionCustomLabel string    `json:"actionCustomLabel,omitempty"`
	Target            string    `json:"target,omitempty"`
	TargetType        string    `json:"targetType,omitempty"`
	TargetState       string    `json:"targetState,omitempty"`
}

type EventType

type EventType string
const (
	EventTypeExperimentStarted EventType = "ExperimentStarted"
	EventTypeExperimentEnded   EventType = "ExperimentEnded"
	EventTypeAttackStarted     EventType = "AttackStarted"
	EventTypeAttackEnded       EventType = "AttackEnded"
)

type GraphQlResponse

type GraphQlResponse struct {
	Data   *GraphQlResponseData    `json:"data"`
	Errors *[]GraphQlResponseError `json:"errors"`
}

type GraphQlResponseAccount

type GraphQlResponseAccount struct {
	Workload *WorkloadResponse `json:"workload"`
	AiIssues *AiIssuesResponse `json:"aiIssues"`
}

type GraphQlResponseAccounts

type GraphQlResponseAccounts struct {
	Id int64 `json:"id"`
}

type GraphQlResponseActor

type GraphQlResponseActor struct {
	Account  *GraphQlResponseAccount   `json:"account"`
	Accounts []GraphQlResponseAccounts `json:"accounts"`
	Entities []GraphQlResponseEntities `json:"entities"`
}

type GraphQlResponseAlertsMutingRuleCreate

type GraphQlResponseAlertsMutingRuleCreate struct {
	Id string `json:"id"`
}

type GraphQlResponseData

type GraphQlResponseData struct {
	Actor                  *GraphQlResponseActor                  `json:"actor"`
	AlertsMutingRuleCreate *GraphQlResponseAlertsMutingRuleCreate `json:"alertsMutingRuleCreate"`
}

type GraphQlResponseEntities

type GraphQlResponseEntities struct {
	Tags []GraphQlResponseTags `json:"tags"`
}

type GraphQlResponseError

type GraphQlResponseError struct {
	Message string `json:"message"`
}

func (*GraphQlResponseError) Error added in v1.0.11

func (e *GraphQlResponseError) Error() string

type GraphQlResponseTags

type GraphQlResponseTags struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type Incident

type Incident struct {
	IncidentId  string   `json:"incidentId"`
	EntityGuids string   `json:"entityGuids"`
	EntityNames string   `json:"entityNames"`
	Priority    string   `json:"priority"`
	Title       string   `json:"title"`
	Description []string `json:"description"`
}

type IncidentsResponse

type IncidentsResponse struct {
	Incidents []Incident `json:"incidents"`
}

type Workload

type Workload struct {
	Guid      string          `json:"guid"`
	Name      string          `json:"name"`
	Permalink string          `json:"permalink"`
	Status    *WorkloadStatus `json:"status"`
}

type WorkloadResponse

type WorkloadResponse struct {
	Collections []Workload `json:"collections"`
	Collection  *Workload  `json:"collection"`
}

type WorkloadStatus

type WorkloadStatus struct {
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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