8b0314f26f
When the Consul serf health check is failing, this means that the health checks registered with the agent may no longer be correct. Therefore we show a notice to the user when we detect that the serf health check is failing both for the health check listing for nodes and for service instances. There were a few little things we fixed up whilst we were here: - We use our @replace decorator to replace an empty Type with serf in the model. - We noticed that ServiceTags can be null, so we replace that with an empty array. - We added docs for both our Notice component and the Consul::HealthCheck::List component. Notice now defaults to @type=info. |
||
---|---|---|
.. | ||
README.mdx | ||
index.hbs | ||
index.scss | ||
layout.scss | ||
skin.scss |
README.mdx
# Notice Presentational component for informational/warning/error banners/notices. ```hbs preview-template <Notice @type={{this.type}} as |notice|> <notice.Header> <h3>Header</h3> </notice.Header> <notice.Body> <p> Body </p> </notice.Body> <notice.Footer> <p> <a href="">Footer link</a> </p> </notice.Footer> </Notice> <figure> <figcaption>Provide a widget to change the <code>@type</code></figcaption> <select onchange={{action (mut this.type) value="target.value"}} > <option>info</option> <option>warning</option> <option>error</option> </select> </figure> ``` ## Arguments | Argument/Attribute | Type | Default | Description | | --- | --- | --- | --- | | `type` | `String` | `info` | Type of notice [info\|warning\|error] | ## See - [Template Source Code](./index.hbs) ---