ui/packages/consul-ui/app/components/consul/instance-checks/README.mdx
A presentational component to show an overview/summary of service or node health.
<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>
| Argument | Type | Default | Description |
|---|---|---|---|
type | `(service | node )` | |
items | Array | An array of Consul healthchecks |