|
|
@ -1,5 +1,4 @@ |
|
|
|
use async_trait::async_trait; |
|
|
|
use async_trait::async_trait; |
|
|
|
use hyper::{Body, Client, Method, Request, StatusCode}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use serde_derive::{Deserialize, Serialize}; |
|
|
|
use serde_derive::{Deserialize, Serialize}; |
|
|
|
use serde_json::Value; |
|
|
|
use serde_json::Value; |
|
|
@ -12,9 +11,7 @@ use crate::{ |
|
|
|
|
|
|
|
|
|
|
|
use serde_qs as qs; |
|
|
|
use serde_qs as qs; |
|
|
|
|
|
|
|
|
|
|
|
use bytes::Buf as _; |
|
|
|
#[derive(Clone)] |
|
|
|
use std::io::Read; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub struct Prometheus { |
|
|
|
pub struct Prometheus { |
|
|
|
url: String, |
|
|
|
url: String, |
|
|
|
query: String, |
|
|
|
query: String, |
|
|
|