Skip to content

Commit

Permalink
fix: update frontend/types/api/machine_metrics.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Oct 18, 2024
1 parent 2657df3 commit 8d57dbb
Showing 1 changed file with 3 additions and 86 deletions.
89 changes: 3 additions & 86 deletions frontend/types/api/machine_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,92 +5,9 @@ import type { ApiDataResponse } from './common'
//////////
// source: machine_metrics.go

export interface MachineMetricSystem {
timestamp?: number /* uint64 */;
exporter_version?: string;
/**
* system
*/
cpu_cores?: number /* uint64 */;
cpu_threads?: number /* uint64 */;
cpu_node_system_seconds_total?: number /* uint64 */;
cpu_node_user_seconds_total?: number /* uint64 */;
cpu_node_iowait_seconds_total?: number /* uint64 */;
cpu_node_idle_seconds_total?: number /* uint64 */;
memory_node_bytes_total?: number /* uint64 */;
memory_node_bytes_free?: number /* uint64 */;
memory_node_bytes_cached?: number /* uint64 */;
memory_node_bytes_buffers?: number /* uint64 */;
disk_node_bytes_total?: number /* uint64 */;
disk_node_bytes_free?: number /* uint64 */;
disk_node_io_seconds?: number /* uint64 */;
disk_node_reads_total?: number /* uint64 */;
disk_node_writes_total?: number /* uint64 */;
network_node_bytes_total_receive?: number /* uint64 */;
network_node_bytes_total_transmit?: number /* uint64 */;
misc_node_boot_ts_seconds?: number /* uint64 */;
misc_os?: string;
/**
* do not store in bigtable but include them in generated model
*/
machine?: string;
}
export interface MachineMetricValidator {
timestamp?: number /* uint64 */;
exporter_version?: string;
/**
* process
*/
cpu_process_seconds_total?: number /* uint64 */;
memory_process_bytes?: number /* uint64 */;
client_name?: string;
client_version?: string;
client_build?: number /* uint64 */;
sync_eth2_fallback_configured?: boolean;
sync_eth2_fallback_connected?: boolean;
/**
* validator
*/
validator_total?: number /* uint64 */;
validator_active?: number /* uint64 */;
/**
* do not store in bigtable but include them in generated model
*/
machine?: string;
}
export interface MachineMetricNode {
timestamp?: number /* uint64 */;
exporter_version?: string;
/**
* process
*/
cpu_process_seconds_total?: number /* uint64 */;
memory_process_bytes?: number /* uint64 */;
client_name?: string;
client_version?: string;
client_build?: number /* uint64 */;
sync_eth2_fallback_configured?: boolean;
sync_eth2_fallback_connected?: boolean;
/**
* node
*/
disk_beaconchain_bytes_total?: number /* uint64 */;
network_libp2p_bytes_total_receive?: number /* uint64 */;
network_libp2p_bytes_total_transmit?: number /* uint64 */;
network_peers_connected?: number /* uint64 */;
sync_eth1_connected?: boolean;
sync_eth2_synced?: boolean;
sync_beacon_head_slot?: number /* uint64 */;
sync_eth1_fallback_configured?: boolean;
sync_eth1_fallback_connected?: boolean;
/**
* do not store in bigtable but include them in generated model
*/
machine?: string;
}
export interface MachineMetricsData {
system_metrics: (MachineMetricSystem | undefined)[];
validator_metrics: (MachineMetricValidator | undefined)[];
node_metrics: (MachineMetricNode | undefined)[];
system_metrics: (any /* types.MachineMetricSystem */ | undefined)[];
validator_metrics: (any /* types.MachineMetricValidator */ | undefined)[];
node_metrics: (any /* types.MachineMetricNode */ | undefined)[];
}
export type GetUserMachineMetricsRespone = ApiDataResponse<MachineMetricsData>;

0 comments on commit 8d57dbb

Please sign in to comment.