2020-11-09 17:29:12 +00:00
|
|
|
import Model, { attr } from '@ember-data/model';
|
2019-12-17 19:27:28 +00:00
|
|
|
|
|
|
|
export const PRIMARY_KEY = 'uid';
|
|
|
|
export const SLUG_KEY = 'ServiceName';
|
2020-11-09 17:29:12 +00:00
|
|
|
|
|
|
|
export default class DiscoveryChain extends Model {
|
|
|
|
@attr('string') uid;
|
|
|
|
@attr('string') ServiceName;
|
|
|
|
|
|
|
|
@attr('string') Datacenter;
|
2021-10-19 11:31:30 +00:00
|
|
|
// Whilst the disco chain itself is scoped to a ns/partition we generally only
|
|
|
|
// use data from within the disco chain itself when displaying data (i.e. the
|
|
|
|
// configs themselves) We also use the API response JSON for fingerprinting
|
|
|
|
// already. All in-all these properties are mainly here for consistency rather
|
|
|
|
// than need as of writing in case any assumptions are made expecting disco
|
|
|
|
// chain root Partition/Namespace
|
|
|
|
@attr('string') Partition;
|
|
|
|
@attr('string') Namespace;
|
|
|
|
//
|
2020-11-09 17:29:12 +00:00
|
|
|
@attr() Chain; // {}
|
|
|
|
@attr() meta; // {}
|
|
|
|
}
|