fix(stats-manager): fix uptime pointing to incorrect field (#1328)
This commit is contained in:
parent
e3809f5bc3
commit
df29c9ee72
@ -25,10 +25,6 @@ export interface NetworkStats_nodeData {
|
|||||||
* Number of nodes validating
|
* Number of nodes validating
|
||||||
*/
|
*/
|
||||||
validatingNodes: number;
|
validatingNodes: number;
|
||||||
/**
|
|
||||||
* Total uptime for all epochs across all nodes. Or specify a number of epochs
|
|
||||||
*/
|
|
||||||
uptime: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NetworkStats_statistics {
|
export interface NetworkStats_statistics {
|
||||||
@ -81,6 +77,10 @@ export interface NetworkStats_statistics {
|
|||||||
* Current chain ID
|
* Current chain ID
|
||||||
*/
|
*/
|
||||||
chainId: string;
|
chainId: string;
|
||||||
|
/**
|
||||||
|
* RFC3339Nano uptime of the node
|
||||||
|
*/
|
||||||
|
upTime: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NetworkStats {
|
export interface NetworkStats {
|
||||||
|
@ -24,7 +24,6 @@ const STATS_QUERY = gql`
|
|||||||
totalNodes
|
totalNodes
|
||||||
inactiveNodes
|
inactiveNodes
|
||||||
validatingNodes
|
validatingNodes
|
||||||
uptime
|
|
||||||
}
|
}
|
||||||
statistics {
|
statistics {
|
||||||
status
|
status
|
||||||
@ -39,6 +38,7 @@ const STATS_QUERY = gql`
|
|||||||
appVersion
|
appVersion
|
||||||
chainVersion
|
chainVersion
|
||||||
chainId
|
chainId
|
||||||
|
upTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -140,7 +140,7 @@ export const statsFields: { [key in keyof Stats]: StatFields[] } = {
|
|||||||
description: t('Tendermint software version on this node'),
|
description: t('Tendermint software version on this node'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
uptime: [
|
upTime: [
|
||||||
{
|
{
|
||||||
title: t('Uptime'),
|
title: t('Uptime'),
|
||||||
formatter: (t: string) => {
|
formatter: (t: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user