add memoryStatus to df analytics page and analytics table in management (#74570)
This commit is contained in:
parent
b4b6428c1c
commit
a6615c6141
|
@ -35,6 +35,11 @@ interface ProgressSection {
|
|||
export interface DataFrameAnalyticsStats {
|
||||
assignment_explanation?: string;
|
||||
id: DataFrameAnalyticsId;
|
||||
memory_usage?: {
|
||||
timestamp?: string;
|
||||
peak_usage_bytes: number;
|
||||
status: string;
|
||||
};
|
||||
node?: {
|
||||
attributes: Record<string, any>;
|
||||
ephemeral_id: string;
|
||||
|
@ -121,6 +126,7 @@ export enum DataFrameAnalyticsListColumn {
|
|||
configCreateTime = 'config.create_time',
|
||||
description = 'config.description',
|
||||
id = 'id',
|
||||
memoryStatus = 'stats.memory_usage.status',
|
||||
}
|
||||
|
||||
export type ItemIdToExpandedRowMap = Record<string, JSX.Element>;
|
||||
|
|
|
@ -213,6 +213,14 @@ export const useColumns = (
|
|||
truncateText: true,
|
||||
'data-test-subj': 'mlAnalyticsTableColumnJobDescription',
|
||||
},
|
||||
{
|
||||
field: DataFrameAnalyticsListColumn.memoryStatus,
|
||||
name: i18n.translate('xpack.ml.dataframe.analyticsList.memoryStatus', {
|
||||
defaultMessage: 'Memory status',
|
||||
}),
|
||||
truncateText: true,
|
||||
'data-test-subj': 'mlAnalyticsTableColumnJobMemoryStatus',
|
||||
},
|
||||
{
|
||||
field: DataFrameAnalyticsListColumn.configSourceIndex,
|
||||
name: i18n.translate('xpack.ml.dataframe.analyticsList.sourceIndex', {
|
||||
|
|
Loading…
Reference in a new issue