mirror of https://github.com/rancher/dashboard.git
24 lines
615 B
JavaScript
24 lines
615 B
JavaScript
import SteveModel from '@shell/plugins/steve/steve-class';
|
|
|
|
export default class ServiceMonitor extends SteveModel {
|
|
get _detailLocation() {
|
|
const id = this.id?.replace(/.*\//, '');
|
|
|
|
return {
|
|
name: 'c-cluster-monitoring-monitor-namespace-id',
|
|
params: {
|
|
cluster: this.$rootGetters['clusterId'], id, namespace: this.metadata.namespace
|
|
},
|
|
query: { resource: this.type }
|
|
};
|
|
}
|
|
|
|
get doneOverride() {
|
|
return {
|
|
name: 'c-cluster-monitoring-monitor',
|
|
params: { cluster: this.$rootGetters['clusterId'] },
|
|
query: { resource: this.type }
|
|
};
|
|
}
|
|
}
|