Skip to main content

Crate vector_api_client

Crate vector_api_client 

Source
Expand description

Vector gRPC API client library

This library provides a Rust client for the Vector gRPC observability API.

§Example

use vector_api_client::Client;

let mut client = Client::new("http://localhost:9999".parse().unwrap());
client.connect().await?;

// Check health (standard gRPC health check)
client.health().await?;
println!("Server is healthy");

// Get components
let components = client.get_components(0).await?;
for component in components.components {
    println!("Component: {}", component.component_id);
}

Modules§

proto
Re-export generated protobuf types

Structs§

Client
gRPC client for the Vector observability API

Enums§

Error
Error types for the gRPC client

Constants§

RECONNECT_DELAY_MS
How long (ms) to wait before attempting to reconnect to the Vector API after a disconnect.

Type Aliases§

Result