/**
 * Copyright (c) HashiCorp, Inc.
 * SPDX-License-Identifier: MPL-2.0
 */

export default {
  status: {
    passing: (item, value) => item.Status === value,
    warning: (item, value) => item.Status === value,
    critical: (item, value) => item.Status === value,
  },
  kind: {
    service: (item, value) => item.Kind === value,
    node: (item, value) => item.Kind === value,
  },
  check: {
    serf: (item, value) => item.Type === value,
    script: (item, value) => item.Type === value,
    http: (item, value) => item.Type === value,
    tcp: (item, value) => item.Type === value,
    ttl: (item, value) => item.Type === value,
    docker: (item, value) => item.Type === value,
    grpc: (item, value) => item.Type === value,
    alias: (item, value) => item.Type === value,
  },
};
