Documentation ¶
Index ¶
- Variables
- func ParseEventDetail(ev events.CloudWatchEvent) (interface{}, error)
- type Container
- type ECSContainerAgentInfo
- type ECSContainerInstanceAttribute
- type ECSContainerInstanceStateChangeEvent
- type ECSDeploymentStateChangeEvent
- type ECSResource
- type ECSTaskStateChangeEvent
- type NetworkInterface
- type TaskAttachment
- type TaskAttachmentDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DetailTypeECSTaskStateChange = "ECS Task State Change" DetailTypeECSContainerInstanceStateChange = "ECS Container Instance State Change" DetailTypeECSServiceDeploymentStateChange = "ECS Deployment State Change" )
Functions ¶
func ParseEventDetail ¶
func ParseEventDetail(ev events.CloudWatchEvent) (interface{}, error)
Types ¶
type Container ¶
type Container struct { ContainerArn string `json:"containerArn"` LastStatus string `json:"lastStatus"` Name string `json:"name"` Image string `json:"image"` ImageDigest string `json:"imageDigest"` RuntimeID string `json:"runtimeId"` TaskArn string `json:"taskArn"` NetworkInterfaces []NetworkInterface `json:"networkInterfaces"` CPU string `json:"cpu"` ExitCode int `json:"exitCode"` Reason string `json:"reason"` }
Container is a container in the task.
type ECSContainerAgentInfo ¶
type ECSContainerInstanceAttribute ¶
type ECSContainerInstanceAttribute struct {
Name string `json:"name"`
}
type ECSContainerInstanceStateChangeEvent ¶
type ECSContainerInstanceStateChangeEvent struct { AgentConnected bool `json:"agentConnected"` Attributes []ECSContainerInstanceAttribute `json:"attributes"` ClusterArn string `json:"clusterArn"` ContainerInstanceArn string `json:"containerInstanceArn"` EC2InstanceID string `json:"ec2InstanceId"` Status string `json:"status"` RegisteredResources []ECSResource `json:"registeredResources"` RemainingResources []ECSResource `json:"remainingResources"` Version int `json:"version"` VersionInfo ECSContainerAgentInfo `json:"versionInfo"` UpdatedAt time.Time `json:"updatedAt"` }
type ECSResource ¶
type ECSTaskStateChangeEvent ¶
type ECSTaskStateChangeEvent struct { Attachments []TaskAttachment `json:"attachments"` AvailabilityZone string `json:"availabilityZone"` ClusterArn string `json:"clusterArn"` Containers []Container `json:"containers"` CreatedAt time.Time `json:"createdAt"` LaunchType string `json:"launchType"` CPU string `json:"cpu"` Memory string `json:"memory"` DesiredStatus string `json:"desiredStatus"` Group string `json:"group"` LastStatus string `json:"lastStatus"` Connectivity string `json:"connectivity"` ConnectivityAt time.Time `json:"connectivityAt"` PullStartedAt time.Time `json:"pullStartedAt"` StartedAt time.Time `json:"startedAt"` PullStoppedAt time.Time `json:"pullStoppedAt"` UpdatedAt time.Time `json:"updatedAt"` TaskArn string `json:"taskArn"` TaskDefinitionArn string `json:"taskDefinitionArn"` Version int `json:"version"` PlatformVersion string `json:"platformVersion"` StoppedReason string `json:"stoppedReason"` StopCode string `json:"stopCode"` StoppingAt time.Time `json:"stoppingAt"` StoppedAt time.Time `json:"stoppedAt"` }
ECSTaskStateChangeEvent is the event indicates ECS task state is changed.
type NetworkInterface ¶
type TaskAttachment ¶
type TaskAttachment struct { ID string `json:"id"` Type string `json:"type"` Status string `json:"status"` Details []TaskAttachmentDetail `json:"details"` }
type TaskAttachmentDetail ¶
Click to show internal directories.
Click to hide internal directories.