memfaultd 1.26.1

Memfault daemon for embedded Linux systems. Observability, logging, crash reporting, and updating all in one service. Learn more at https://docs.memfault.com/
Documentation
1
2
3
4
5
6
7
8
9
10
11
//
// Copyright (c) Memfault, Inc.
// See License.txt for details
use crate::{cli::MemfaultdClient, config::Config, metrics::KeyedMetricReading};

use eyre::Result;

pub fn write_metrics(metrics: Vec<KeyedMetricReading>, config: &Config) -> Result<()> {
    let client = MemfaultdClient::from_config(config)?;
    client.post_metrics(metrics)
}