[−][src]Module extrahop::activitymap
Types for working with activity map topologies.
This module contains the request and response types needed to interact with
/api/v1/activitymaps/query
.
Usage
Queries can be constructed using struct literals or with builders from
the req
module.
Using Builders
use extrahop::{Builder, Oid}; use extrahop::activitymap::{self, Walk, Source, Step}; // Create a request for the last half hour, starting from device 15 and // finding all its immediate peers. The default weight strategy will be // used, and no extra annotations were requested. let _ = activitymap::Query::builder() .from(-30000) .walks(vec![ Walk::builder() .origins(vec![Source::device(Oid::new(15))]) .steps(vec![Step::default()]) .build().unwrap() ]) .build().unwrap();
Modules
query | Types for creating and serializing an activity map query request. |
rsp | Types for deserializing a response from |
Structs
Edge | A connection between two devices in an activity map API response. |
Query | Envelope for an ad-hoc activity map query. |
Response | A successful response to a single topology API request. |
Source | Represents a metric source, such as a device or device group. |
Step | A traversal instruction which can find new edges or protocols to include in an activity map. |
Walk | A set of steps from one or more starting points which build a directed graph topology. |
Enums
WalkOrigin | Sets the origins for a walk. |