Back to Consul

Consul::InstanceChecks

ui/packages/consul-ui/app/components/consul/instance-checks/README.mdx

2.0.11.6 KB
Original Source

Consul::InstanceChecks

A presentational component to show an overview/summary of service or node health.

hbs
<figure>
  <figcaption>With no checks</figcaption>
  <Consul::InstanceChecks
    @type="service"
    @items={{array}}
  />
</figure>
<figure>
  <figcaption>With all passing check</figcaption>
  <Consul::InstanceChecks
    @type="service"
    @items={{array
      (hash
        Status="passing"
      )
    }}
  />
</figure>
<figure>
  <figcaption>With a warning check</figcaption>
  <Consul::InstanceChecks
    @type="service"
    @items={{array
      (hash
        Status="passing"
      )
      (hash
        Status="passing"
      )
      (hash
        Status="warning"
      )
    }}
  />
</figure>
<figure>
  <figcaption>With a critical check</figcaption>
  <Consul::InstanceChecks
    @type="service"
    @items={{array
      (hash
        Status="passing"
      )
      (hash
        Status="warning"
      )
      (hash
        Status="warning"
      )
      (hash
        Status="critical"
      )
    }}
  />
</figure>
<figure>
  <figcaption>Nodes with a critical check</figcaption>
  <Consul::InstanceChecks
    @type="node"
    @items={{array
      (hash
        Status="passing"
      )
      (hash
        Status="warning"
      )
      (hash
        Status="warning"
      )
      (hash
        Status="critical"
      )
    }}
  />
</figure>

Arguments

ArgumentTypeDefaultDescription
type`(servicenode )`
itemsArrayAn array of Consul healthchecks

See