open-consul/ui/packages/consul-ui/app/components/consul/instance-checks
Ronald 6bcb98ea71
Add UI copyright headers files (#16614)
* Add copyright headers to UI files

* Ensure copywrite file ignores external libs
2023-03-14 09:18:55 -04:00
..
README.mdx ui: Ensure proxy instance health is taken into account in Service Instance Listings (#12279) 2022-02-10 15:28:26 +00:00
index.hbs Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00
index.scss Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00

README.mdx

# Consul::InstanceChecks

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

```hbs preview-template
<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

| Argument | Type | Default | Description |
| --- | --- | --- | --- |
| `type` | `(service | node )` | | A simple string to use for labelling |
| `items` | `Array` | | An array of Consul healthchecks |


## See

- [Template Source Code](./index.hbs)

---