proxmox/proxmox-metrics
Wolfgang Bumiller 3745f36ab1 metrics: use builder pattern for adding tags
Rather than going from a list of `(&str, &str)` tuples to a
`HashMap<String, String>`, add a `.tag()` builder method
and use `Cow` behind the scenes to efficiently allow the
caller to choose between a static literal and a `String`
value.

Previously the methods forced `&str` slices and then
always-copied those into `String`s even if the caller could
just *move* it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-02-02 15:23:22 +01:00
..
debian proxmox-metrics: implement metrics server client code 2022-02-02 12:56:21 +01:00
src metrics: use builder pattern for adding tags 2022-02-02 15:23:22 +01:00
Cargo.toml proxmox-metrics: implement metrics server client code 2022-02-02 12:56:21 +01:00