Crate monitor_client

source ·
Expand description

§Monitor

A system to build and deploy software accross many servers

This is a client library for the monitor core API. It contains:

  • Definitions for the application api and entities.
  • A client to interact with the monitor core API.
  • Information on configuring monitor core and periphery.

§Client Configuration

The client includes a convenenience method to parse the monitor url and credentials from the environment:

  • MONITOR_ADDRESS
  • MONITOR_API_KEY
  • MONITOR_API_SECRET

§Client Example

dotenv::dotenv().ok();

let client = MonitorClient::new_from_env()?;

// Get all the deployments
let deployments = client.read(ListDeployments::default()).await?;

println!("{deployments:#?}");

let update = client.execute

Modules§

Structs§