Skip to content

Commit

Permalink
add memoryStatus to df analytics page and analytics table in manageme…
Browse files Browse the repository at this point in the history
…nt (#74570)
  • Loading branch information
alvarezmelissa87 authored Aug 10, 2020
1 parent b4b6428 commit a6615c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit a6615c6

Please sign in to comment.