Sha256: 7222b23c1263c597feafd3e52be88783aae93f6da11ef9943e43b4b1bd01f7ef

Contents?: true

Size: 654 Bytes

Versions: 5

Compression:

Stored size: 654 Bytes

Contents

module FluentECS
  class Task
    include Resource
    self.resource_endpoint = '/tasks'

    attr_accessor :arn,    :container_instance, :desired_status,
                  :family, :known_status,       :version

    def initialize(attrs = {})
      @arn            = attrs['Arn']
      @desired_status = attrs['DesiredStatus']
      @family         = attrs['Family']
      @known_status   = attrs['KnownStatus']
      @version        = attrs['Version']
      @container_data = attrs['Containers']
    end

    def containers
      @containers ||= @container_data.map do |d|
        Container.new(d).tap { |c| c.task = self }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
fluent-plugin-ecs-metadata-filter-v2-0.2.0 lib/fluent_ecs/task.rb
serafini010-ecs-metadata-filter-0.2.0 lib/fluent_ecs/task.rb
fluent-plugin-ecs-metadata-filter-0.2.0 lib/fluent_ecs/task.rb
fluent-plugin-ecs-metadata-filter-0.1.1 lib/fluent_ecs/task.rb
fluent-plugin-ecs-metadata-filter-0.1.0 lib/fluent_ecs/task.rb