|
| 1 | +package types |
| 2 | + |
| 3 | +type MachineMetricSystem struct { |
| 4 | + Timestamp uint64 `json:"timestamp,omitempty" faker:"boundary_start=1725166800, boundary_end=1725177600"` |
| 5 | + ExporterVersion string `json:"exporter_version,omitempty"` |
| 6 | + // system |
| 7 | + CpuCores uint64 `json:"cpu_cores,omitempty"` |
| 8 | + CpuThreads uint64 `json:"cpu_threads,omitempty"` |
| 9 | + CpuNodeSystemSecondsTotal uint64 `json:"cpu_node_system_seconds_total,omitempty"` |
| 10 | + CpuNodeUserSecondsTotal uint64 `json:"cpu_node_user_seconds_total,omitempty"` |
| 11 | + CpuNodeIowaitSecondsTotal uint64 `json:"cpu_node_iowait_seconds_total,omitempty"` |
| 12 | + CpuNodeIdleSecondsTotal uint64 `json:"cpu_node_idle_seconds_total,omitempty"` |
| 13 | + MemoryNodeBytesTotal uint64 `json:"memory_node_bytes_total,omitempty"` |
| 14 | + MemoryNodeBytesFree uint64 `json:"memory_node_bytes_free,omitempty"` |
| 15 | + MemoryNodeBytesCached uint64 `json:"memory_node_bytes_cached,omitempty"` |
| 16 | + MemoryNodeBytesBuffers uint64 `json:"memory_node_bytes_buffers,omitempty"` |
| 17 | + DiskNodeBytesTotal uint64 `json:"disk_node_bytes_total,omitempty"` |
| 18 | + DiskNodeBytesFree uint64 `json:"disk_node_bytes_free,omitempty"` |
| 19 | + DiskNodeIoSeconds uint64 `json:"disk_node_io_seconds,omitempty"` |
| 20 | + DiskNodeReadsTotal uint64 `json:"disk_node_reads_total,omitempty"` |
| 21 | + DiskNodeWritesTotal uint64 `json:"disk_node_writes_total,omitempty"` |
| 22 | + NetworkNodeBytesTotalReceive uint64 `json:"network_node_bytes_total_receive,omitempty"` |
| 23 | + NetworkNodeBytesTotalTransmit uint64 `json:"network_node_bytes_total_transmit,omitempty"` |
| 24 | + MiscNodeBootTsSeconds uint64 `json:"misc_node_boot_ts_seconds,omitempty"` |
| 25 | + MiscOs string `json:"misc_os,omitempty"` |
| 26 | + // do not store in bigtable but include them in generated model |
| 27 | + Machine *string `json:"machine,omitempty"` |
| 28 | +} |
| 29 | + |
| 30 | +type MachineMetricValidator struct { |
| 31 | + Timestamp uint64 `json:"timestamp,omitempty" faker:"boundary_start=1725166800, boundary_end=1725177600"` |
| 32 | + ExporterVersion string `json:"exporter_version,omitempty"` |
| 33 | + // process |
| 34 | + CpuProcessSecondsTotal uint64 `json:"cpu_process_seconds_total,omitempty"` |
| 35 | + MemoryProcessBytes uint64 `json:"memory_process_bytes,omitempty"` |
| 36 | + ClientName string `json:"client_name,omitempty"` |
| 37 | + ClientVersion string `json:"client_version,omitempty"` |
| 38 | + ClientBuild uint64 `json:"client_build,omitempty"` |
| 39 | + SyncEth2FallbackConfigured bool `json:"sync_eth2_fallback_configured,omitempty"` |
| 40 | + SyncEth2FallbackConnected bool `json:"sync_eth2_fallback_connected,omitempty"` |
| 41 | + // validator |
| 42 | + ValidatorTotal uint64 `json:"validator_total,omitempty"` |
| 43 | + ValidatorActive uint64 `json:"validator_active,omitempty"` |
| 44 | + // do not store in bigtable but include them in generated model |
| 45 | + Machine *string `json:"machine,omitempty"` |
| 46 | +} |
| 47 | + |
| 48 | +type MachineMetricNode struct { |
| 49 | + Timestamp uint64 `json:"timestamp,omitempty" faker:"boundary_start=1725166800, boundary_end=1725177600"` |
| 50 | + ExporterVersion string `json:"exporter_version,omitempty"` |
| 51 | + // process |
| 52 | + CpuProcessSecondsTotal uint64 `json:"cpu_process_seconds_total,omitempty"` |
| 53 | + MemoryProcessBytes uint64 `json:"memory_process_bytes,omitempty"` |
| 54 | + ClientName string `json:"client_name,omitempty"` |
| 55 | + ClientVersion string `json:"client_version,omitempty"` |
| 56 | + ClientBuild uint64 `json:"client_build,omitempty"` |
| 57 | + SyncEth2FallbackConfigured bool `json:"sync_eth2_fallback_configured,omitempty"` |
| 58 | + SyncEth2FallbackConnected bool `json:"sync_eth2_fallback_connected,omitempty"` |
| 59 | + // node |
| 60 | + DiskBeaconchainBytesTotal uint64 `json:"disk_beaconchain_bytes_total,omitempty"` |
| 61 | + NetworkLibp2PBytesTotalReceive uint64 `json:"network_libp2p_bytes_total_receive,omitempty"` |
| 62 | + NetworkLibp2PBytesTotalTransmit uint64 `json:"network_libp2p_bytes_total_transmit,omitempty"` |
| 63 | + NetworkPeersConnected uint64 `json:"network_peers_connected,omitempty"` |
| 64 | + SyncEth1Connected bool `json:"sync_eth1_connected,omitempty"` |
| 65 | + SyncEth2Synced bool `json:"sync_eth2_synced,omitempty"` |
| 66 | + SyncBeaconHeadSlot uint64 `json:"sync_beacon_head_slot,omitempty"` |
| 67 | + SyncEth1FallbackConfigured bool `json:"sync_eth1_fallback_configured,omitempty"` |
| 68 | + SyncEth1FallbackConnected bool `json:"sync_eth1_fallback_connected,omitempty"` |
| 69 | + // do not store in bigtable but include them in generated model |
| 70 | + Machine *string `json:"machine,omitempty"` |
| 71 | +} |
| 72 | + |
| 73 | +type MachineMetricsData struct { |
| 74 | + SystemMetrics []*MachineMetricSystem `json:"system_metrics" faker:"slice_len=30"` |
| 75 | + ValidatorMetrics []*MachineMetricValidator `json:"validator_metrics" faker:"slice_len=30"` |
| 76 | + NodeMetrics []*MachineMetricNode `json:"node_metrics" faker:"slice_len=30"` |
| 77 | +} |
| 78 | + |
| 79 | +type GetUserMachineMetricsRespone ApiDataResponse[MachineMetricsData] |
0 commit comments