| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <ng-container *ngIf="statistic"> |
| <div nz-row [nzGutter]="24"> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available Task Slots" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['slots-available'] | number:'1.0-0' }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total Task Slots</span> |
| <span>{{ statistic['slots-total'] | number:'1.0-0' }}</span> |
| </div> |
| <nz-divider nzType="vertical"></nz-divider> |
| <div class="field"> |
| <span>Task Managers</span> |
| <span>{{ statistic['taskmanagers'] | number:'1.0-0' }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Running Jobs" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['jobs-running'] | number:'1.0-0' }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Finished</span> |
| <span>{{ statistic['jobs-finished'] | number:'1.0-0' }}</span> |
| </div> |
| <nz-divider nzType="vertical"></nz-divider> |
| <div class="field"> |
| <span>Canceled</span> |
| <span>{{ statistic['jobs-cancelled'] | number:'1.0-0' }}</span> |
| </div> |
| <nz-divider nzType="vertical"></nz-divider> |
| <div class="field"> |
| <span>Failed</span> |
| <span>{{ statistic['jobs-failed'] | number:'1.0-0' }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available CPU Cores" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].cpuCores | number:'1.0-2' }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total CPU Cores</span> |
| <span>{{ statistic['total-resources'].cpuCores | number:'1.0-2' }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available UserHeap MEM" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].userHeapMemory | nzHumanizeBytes }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total UserHeapMemory</span> |
| <span>{{ statistic['total-resources'].userHeapMemory | nzHumanizeBytes }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| </div> |
| <div nz-row [nzGutter]="24"> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available UserDirect MEM" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].userDirectMemory | nzHumanizeBytes }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total UserDirectMemory</span> |
| <span>{{ statistic['total-resources'].userDirectMemory | nzHumanizeBytes }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available UserNative MEM" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].userNativeMemory | nzHumanizeBytes }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total UserNativeMemory</span> |
| <span>{{ statistic['total-resources'].userNativeMemory | nzHumanizeBytes }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available Managed MEM" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].managedMemory | nzHumanizeBytes }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total ManagedMemory</span> |
| <span>{{ statistic['total-resources'].managedMemory | nzHumanizeBytes }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| <div nz-col [nzXs]="24" [nzSm]="24" [nzMd]="12" [nzLg]="6" [nzXl]="6" class="col"> |
| <nz-card class="no-head-bottom" [nzBordered]="false" nzTitle="Available Network MEM" [nzLoading]="isLoading"> |
| <div class="total">{{ statistic['available-resources'].networkMemory | nzHumanizeBytes }}</div> |
| <div class="footer"> |
| <div class="field"> |
| <span>Total NetworkMemory</span> |
| <span>{{ statistic['total-resources'].networkMemory | nzHumanizeBytes }}</span> |
| </div> |
| </div> |
| </nz-card> |
| </div> |
| </div> |
| </ng-container> |