feat(elements): add demoGroups metadata, filter demo view wrappers in wcctools, and update demo payloads
This commit is contained in:
@@ -26,25 +26,29 @@ export class SzStatusGridServices extends DeesElement {
|
||||
<div style="padding: 24px; max-width: 1200px;">
|
||||
<sz-status-grid-services
|
||||
.resourceUsage=${{
|
||||
cpu: { percentage: 45, label: 'CPU Usage' },
|
||||
memory: { percentage: 62, label: 'Memory', used: '4.96 GB', total: '8 GB' },
|
||||
network: { percentage: 23, label: 'Network I/O', rate: '1.2 MB/s' },
|
||||
cpu: 45,
|
||||
memoryUsed: '4.96 GB',
|
||||
memoryTotal: '8 GB',
|
||||
networkIn: '1.2 MB/s',
|
||||
networkOut: '0.8 MB/s',
|
||||
topConsumers: [
|
||||
{ name: 'api-service', cpu: 25, memory: 512 },
|
||||
{ name: 'web-frontend', cpu: 15, memory: 256 },
|
||||
{ name: 'worker', cpu: 5, memory: 128 },
|
||||
{ name: 'api-service', memory: '512 MB' },
|
||||
{ name: 'web-frontend', memory: '256 MB' },
|
||||
{ name: 'worker', memory: '128 MB' },
|
||||
],
|
||||
}}
|
||||
.platformServices=${[
|
||||
{ name: 'MongoDB', status: 'running' },
|
||||
{ name: 'S3 Storage', status: 'running' },
|
||||
{ name: 'ClickHouse', status: 'stopped' },
|
||||
{ name: 'Redis Cache', status: 'running' },
|
||||
{ name: 'MongoDB', status: '1 DB', running: true },
|
||||
{ name: 'S3 Storage', status: '1 bucket', running: true },
|
||||
{ name: 'ClickHouse', status: 'Stopped', running: false },
|
||||
{ name: 'Redis Cache', status: 'Running', running: true },
|
||||
]}
|
||||
></sz-status-grid-services>
|
||||
</div>
|
||||
`;
|
||||
|
||||
public static demoGroups = ['Dashboard Grids'];
|
||||
|
||||
@property({ type: Object })
|
||||
public accessor resourceUsage: IResourceUsage = {
|
||||
cpu: 0,
|
||||
|
||||
Reference in New Issue
Block a user