Server Health
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
import React from 'react'
import { Viz } from 'a10-gui-dgp-viz'
const { ServerHealth} = Viz
export const MyDashboard = () => {
return (
<ServerHealth
name='Server Health'
rows={[
[
[1590442124, "down"],
[1590442394, "up"],
[1590442664, "down"],
[1590442934, "down"],
[1590443204, "down"]
],
...
]}
startTime={moment()
.subtract(24, 'hours')
.unix()}
endTime={moment().unix()}
interval={1000}
/>
)
}export interface IServerHealthProps extends IBasicVizChartProps {
rows: IServerHealthRow[]
startTime: number // start time in seconds
endTime: number // end time in seconds
}
export interface IServerHealthRow {
name: string
severity: string
data: number[][]
// highlightColor: string
// bgColor: string
} {
viz: [
{
vizName: 'ServerHealth',
name: 'Server Health',
rows: dataMap['SERVER.HEALTH'](),
startTime: moment()
.subtract(6, 'hours')
.unix(),
endTime: moment().unix(),
},
],
}