Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tonic = "0.14.1"
tonic-reflection = "0.14.1"
prost-types = "0.14.1"
prost = "0.14.1"
cortexflow_agent_api = "0.1.1-beta.0"
cortexflow_agent_api = "0.1.1-beta.1"

[[bin]]
name = "cfcli"
Expand Down
17 changes: 16 additions & 1 deletion cli/src/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,22 @@ pub async fn monitor_identity_events() -> Result<(), Error> {
println!("{} {}", "=====>".blue().bold(), "Connected to CortexFlow Client".green());
match send_active_connection_request(client).await {
Ok(response) => {
println!("{:?}", response.into_inner().events);
let resp = response.into_inner();
if resp.events.is_empty() {
println!("{} No events found", "=====>".blue().bold());
} else {
println!("{} Found {} events", "=====>".blue().bold(), resp.events.len());
for (i, ev) in resp.events.iter().enumerate() {
println!(
"{} Event[{}] id: {} src: {} dst: {}",
"=====>".blue().bold(),
i,
ev.event_id,
ev.src_ip_port,
ev.dst_ip_port
);
}
}
}
Err(e) => {
println!(
Expand Down
2 changes: 1 addition & 1 deletion core/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cortexflow_agent_api"
version = "0.1.1-beta.0"
version = "0.1.1-beta.1"
edition = "2021"
description = "CortexFlow agent API"
authors = ["Lorenzo Tettamanti", "Pranav Verma", "Lorenzo Bradanini","Siddharth Sutar","Andrea Bozzo"]
Expand Down