class AwsInventory::Ecs::Cluster
Public Instance Methods
data()
click to toggle source
# File lib/aws_inventory/ecs/cluster.rb, line 6 def data ecs_clusters.map do |cluster| [ cluster.cluster_name, cluster.registered_container_instances_count, cluster.running_tasks_count, ] end end
ecs_clusters()
click to toggle source
# File lib/aws_inventory/ecs/cluster.rb, line 16 def ecs_clusters cluster_arns = ecs.list_clusters.cluster_arns @ecs_clusters ||= ecs.describe_clusters(clusters: cluster_arns).clusters end
header()
click to toggle source
# File lib/aws_inventory/ecs/cluster.rb, line 2 def header ["Cluster", "Container Instances", "Running Tasks"] end