export const UI_RESTRICTIONS = { '*' : true } ; export const INDEX_PATTERN = 'some-pattern' ; export const FIELDS = { [ INDEX_PATTERN ] : [ { type : 'date' , name : '@timestamp' , } , { type : 'number' , name : 'system.cpu.user.pct' , } , { type : 'histogram' , name : 'histogram_value' , } , ] , } ; export const METRIC = { id : 'sample_metric' , type : 'avg' , field : 'system.cpu.user.pct' , } ; export const SERIES = { metrics : [ METRIC ] , } ; export const PANEL = { type : 'timeseries' , index_pattern : INDEX_PATTERN , series : [ SERIES ] , } ;