Skip to main content

Snapshot Struct

Lock-free snapshot of a single node's stats — safe to copy/return. More...

Declaration

struct simaai::neat::graph::GraphRunStats::Snapshot { ... }

Included Headers

#include <GraphRun.h>

Public Member Attributes Index

NodeIdnode_id = kInvalidNode

Node these stats are for. More...

int64_ttotal = 0

Total samples seen. More...

std::chrono::steady_clock::time_pointfirst {}

First-sample timestamp. More...

std::chrono::steady_clock::time_pointlast {}

Last-sample timestamp. More...

std::unordered_map< std::string, int64_t >counts

Per-stream counts. More...

std::unordered_map< std::string, std::chrono::steady_clock::time_point >last_seen

Per-stream last-seen. More...

Description

Lock-free snapshot of a single node's stats — safe to copy/return.

Definition at line 109 of file GraphRun.h.

Public Member Attributes

counts

std::unordered_map<std::string, int64_t> simaai::neat::graph::GraphRunStats::Snapshot::counts

Per-stream counts.

Definition at line 114 of file GraphRun.h.

114 std::unordered_map<std::string, int64_t> counts;

first

std::chrono::steady_clock::time_point simaai::neat::graph::GraphRunStats::Snapshot::first {}

First-sample timestamp.

Definition at line 112 of file GraphRun.h.

112 std::chrono::steady_clock::time_point first{};

last

std::chrono::steady_clock::time_point simaai::neat::graph::GraphRunStats::Snapshot::last {}

Last-sample timestamp.

Definition at line 113 of file GraphRun.h.

113 std::chrono::steady_clock::time_point last{};

last_seen

std::unordered_map<std::string, std::chrono::steady_clock::time_point> simaai::neat::graph::GraphRunStats::Snapshot::last_seen

Per-stream last-seen.

Definition at line 116 of file GraphRun.h.

node_id

NodeId simaai::neat::graph::GraphRunStats::Snapshot::node_id = kInvalidNode

Node these stats are for.

Definition at line 110 of file GraphRun.h.

110 NodeId node_id = kInvalidNode;

total

int64_t simaai::neat::graph::GraphRunStats::Snapshot::total = 0

Total samples seen.

Definition at line 111 of file GraphRun.h.

111 int64_t total = 0;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.