mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
6c240fbf2d
* Add some less fake API data * Rename the models class so as to not be confused with JS Proxies * Rearrange routlets slightly and add some initial outletFor tests * Move away from a MeshChecks computed property and just use a helper * Just use ServiceChecks for healthiness filtering for the moment * Make TProxy cookie configurable * Amend exposed paths and upstreams so they know about meta AND proxy * Slight bit of TaggedAddresses refactor while I was checking for `meta` etc * Document CONSUL_TPROXY_ENABLE
22 lines
580 B
JavaScript
22 lines
580 B
JavaScript
import { 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 ProxyServiceInstance extends ServiceInstanceModel {
|
|
@attr('string') uid;
|
|
@attr('string') ID;
|
|
|
|
@attr('string') Datacenter;
|
|
@attr('string') Namespace;
|
|
@attr('string') Partition;
|
|
|
|
@attr('string') ServiceName;
|
|
@attr('string') ServiceID;
|
|
@attr('string') NodeName;
|
|
@attr('number') SyncTime;
|
|
@attr() ServiceProxy; // {}
|
|
}
|