open-consul/ui/packages/consul-ui/app/models/proxy.js

19 lines
468 B
JavaScript
Raw Normal View History

import Model, { attr } from '@ember-data/model';
export const PRIMARY_KEY = 'uid';
export const SLUG_KEY = 'Node,ServiceID';
// TODO: This should be changed to ProxyInstance
export default class Proxy extends Model {
@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; // {}
}