LogPanels
LogPanel
<LogPanel
name="LogPanel"
logs={logs}
getLogs={dataMap['RPT.GTP.GETLOGS']()}
getChart={dataMap['RPT.GTP.GETCHARTS']()}
/>Name
Type
Default Value
Required
Description
name
string
--
Yes
The name of the visualization
logs
IObject[]
--
Yes
The logs types
getLogs
function
--
Yes
Call the function to get Log data
getChart
function
--
No
Call the function to get Log Chart data
selectedTimePeriod
number[]
[]
No
Set startTime and endTime for LogPanel, if the two values are changed, call getLogs and getChart again.
logs props
It needs use different logs for different APP. Below is the configuration of logs for ADC/GiFW/CGN/GTP app.
GTP
;[
{
key: 1,
name: 'LOGS',
viz: [
{
app: 'GTP',
dataSource: 'RPT',
endPoint: 'thunder-adc',
metrics: 'fw_l4_pc',
chartMetrics: 'system_telemetry_log_partition_metrics',
name: 'LOGS',
},
],
},
]ADC
CGN
GiFW
getLogs props
getLogs will call function with two paramaters log and options
and the function should return total, logs and filter counters
getChart props
getChart will call function with two paramaters log and options
and the function should return chart
Actions
VIZ.LOG.LOAD.EXPANDROW
Name
Type
Description
type
string
The action type
logType
string
The type of LogPanel
record
IObject
The row object
callback
(data: IObject, totalCount?: number): void
The update the viz with new data
VIZ.LOG.LOAD.EXPANDROW.SUB
Name
Type
Description
type
string
The action type
options
string
The type of LogPanel
callback
(data: IObject, totalCount?: number): void
The update the viz with new data
VIZ.LOG.LOADMORE
Name
Type
Description
type
string
The action type
options
{page: number; pageSize: number; type: string}
The options for loading more
callback
(dataSouce: IObject[], totalCount: number): void
The update the viz with new data
VIZ.LOG.LOADMORE.SUB
Name
Type
Description
type
string
The action type
options
{page: number; pageSize: number; type: string, record: IObject}
The options for loading more
callback
(dataSouce: IObject[], totalCount: number): void
The update the viz with new data
VIZ.LOG.CHANGE.FILTERS
Name
Type
Description
type
string
The action type
filters
IObject[]
The selected filters
VIZ.LOG.CHANGE.LABEL
Name
Type
Description
type
string
The action type
label
string
The label in the header
VIZ.LOG.CHANGE.LABEL
Name
Type
Description
type
string
The action type
value
string
The search value which input in the header
VIZ.LOG.CLICK.DOWNLOAD
Call the action when click the download icon in the header
Name
Type
Description
type
string
The action type
VIZ.LOG.CLICK.HELP
Call the action when click the help icon in the header
Name
Type
Description
type
string
The action typ
Last updated
Was this helpful?