event

package
v0.0.0-...-220c898 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerInstanceStateChangeEvent

type ContainerInstanceStateChangeEvent struct {
	AgentConnected bool   `json:"agentConnected"`
	Status         string `json:"status"`
}

ContainerInstanceStateChangeEvent is the important data for the event itself.

type ContainerState

type ContainerState struct {
	ARN        string `json:"containerArn"`
	Name       string `json:"name"`
	LastStatus string `json:"lastStatus"`
}

ContainerState contains the details of a container.

type DeploymentEvent

type DeploymentEvent struct {
	EventType    string `json:"eventType"`
	EventName    string `json:"eventName"`
	DeploymentID string `json:"deploymentId"`
	Reason       string `json:"reason"`
}

DeploymentEvent is the important data for the event itself.

type EventData

type EventData struct {
	ID         string    `json:"id"`
	DetailType string    `json:"detailType"`
	Source     string    `json:"source"`
	AccountID  string    `json:"account"`
	Time       time.Time `json:"time"`
	Region     string    `json:"region"`
	Resources  []string  `json:"resources"`
	EventJSON  string    `json:"eventJson"`

	// This is just a catch-all for now
	CloudWatchEventPayload string `json:"cloudwatchEventPayload"`
	// Used to control when the event is expired in DDB
	EpochTTL int64 `json:"epochTTL"`
}

EventData is the output that will be stored to DDB.

type ServiceActionEvent

type ServiceActionEvent struct {
	EventType            string   `json:"eventType"`
	EventName            string   `json:"eventName"`
	ClusterARN           string   `json:"clusterArn"`
	Reason               string   `json:"reason,omitempty"`
	CapacityProviderARNs []string `json:"capacityProviderArns,omitempty"`
}

ServiceActionEvent is the important data for the event itself.

type TaskStateChangeEvent

type TaskStateChangeEvent struct {
	LastStatus    string           `json:"lastStatus"`
	DesiredStatus string           `json:"desiredStatus"`
	Containers    []ContainerState `json:"containers"`
}

TaskStateChangeEvent is the important data for the event itself.

Jump to

Keyboard shortcuts

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