2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2022-10-13 21:47:47 +00:00
|
|
|
import Controller from '@ember/controller';
|
|
|
|
import { action } from '@ember/object';
|
|
|
|
|
|
|
|
export default class HealthChecksController extends Controller {
|
|
|
|
@action
|
|
|
|
syntheticNodeSearchPropertyFilter(item, searchProperty) {
|
|
|
|
return !(item.Node.Meta?.['synthetic-node'] && searchProperty === 'Node');
|
|
|
|
}
|
|
|
|
|
|
|
|
@action
|
|
|
|
syntheticNodeHealthCheckFilter(item, healthcheck, index, list) {
|
|
|
|
return !(item.Node.Meta?.['synthetic-node'] && healthcheck?.Kind === 'node');
|
|
|
|
}
|
|
|
|
}
|