{{define "queue-get" -}} File {{ .info.Name }}

Queue view for {{ .info.Name }}

{{ template "flashes" .flashes }}
SQS info latency
{{ .latency.info }}
SQS messages latency
{{ .latency.items }}
{{ $timeFormat := "2006-01-02 03:04:05 -0700" }} {{ $attr := .info.Attributes }} {{ if $attr.RedrivePolicy }} {{ end }} {{ if .isDLQ }} {{ end }}
Info Link: {{ .info.Name }} ARN: {{ $attr.QueueARN }}
Times Created: {{ timestamp $attr.CreatedTimestamp }} Last modified: {{ timestamp $attr.LastModifiedTimestamp }}
Durations Queue delay: {{ $attr.DelaySeconds }} seconds Visibility Timeout: {{ $attr.VisibilityTimeout }} seconds
Retention period: {{ $attr.MessageRetentionPeriod }} seconds Receive wait time: {{ $attr.ReceiveMessageWaitTimeSeconds }} seconds
Counts Approx. messages: {{ $attr.ApproximateNumberOfMessages }} Approx. delayed: {{ $attr.ApproximateNumberOfMessagesDelayed }}
Messages Approx. not visible: {{ $attr.ApproximateNumberOfMessagesNotVisible }} Max. size: {{ $attr.MaximumMessageSize }}
DeadLetter queue {{ $attr.RedrivePolicy.DeadLetterTargetARN }} Max. receive count: {{ $attr.RedrivePolicy.MaxReceiveCount }}
Source queues for DLQ Redrive Permission: {{ $attr.RedriveAllowPolicy.RedrivePermission }} Queues:
    {{ range $attr.RedriveAllowPolicy.SourceQueueARNs }}
  • {{ . }}
  • {{ end }}

Messages

{{ if .isDLQ }} {{ end }}
{{ range $i, $message := .items }} {{ $row := dict "message" $message "i" $i }} {{ template "queue-item" $row }} {{ end }}
Select all ID Body Attributes
{{end}} {{ define "queue-item" -}} {{ .message.MessageId }} {{ abbrev 80 .message.Body }} {{ toJson .message.MessageAttributes | abbrev 80 }} {{ end }}