mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
db978af6f3
* Adds model layer changes around HealthChecks 1. Makes a HealthCheck model fragment and uses it in ServiceInstances and Nodes 2. Manually adds a relationship between a ServiceInstance and its potential ServiceInstanceProxy 3. Misc changes related to the above such as an Exposed property on MeshChecks, MeshChecks itself * Add a potential temporary endpoint to distinguish ProxyServiceInstance * Fix up Node search bar class * Add search/sort/filter logic * Fixup Service default sort key * Add Healthcheck search/sort/filtering * Tweak CSS add a default Type of 'Serf' when type is blank * Fix up tests and new test support * Add ability to search on Service/Node name depending on where you are * Fixup CheckID search predicate * Use computed for DataCollection to use caching * Alpha sort the Type menu * Temporary fix for new non-changing style Ember Proxys * Only special case EventSource proxies
20 lines
538 B
JavaScript
20 lines
538 B
JavaScript
import Model, { attr } from '@ember-data/model';
|
|
import ServiceInstanceModel from './service-instance';
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
export const SLUG_KEY = 'Node,ServiceID';
|
|
|
|
// TODO: This should be changed to ProxyInstance
|
|
export default class Proxy extends ServiceInstanceModel {
|
|
@attr('string') uid;
|
|
@attr('string') ID;
|
|
|
|
@attr('string') Datacenter;
|
|
@attr('string') Namespace;
|
|
@attr('string') ServiceName;
|
|
@attr('string') ServiceID;
|
|
@attr('string') Node;
|
|
@attr('number') SyncTime;
|
|
@attr() ServiceProxy; // {}
|
|
}
|