Skip to content
Snippets Groups Projects
Commit 6e863f1e authored by Maaz Ahmed's avatar Maaz Ahmed
Browse files

doc: updates and fixes

parent c7cfe42f
No related branches found
No related tags found
1 merge request!11Release: prepare and release v0.4.0
......@@ -36,16 +36,15 @@ Requires a local Victoria Metrics server running at `http://127.0.0.1:8428/` for
# Roadmap
- [x] Basic raw queries (Instant and Ranged)
- [ ] Query Builder
- [x] Query Builder
- [x] Basic queries
- [ ] Operators
- [x] Operators
- [x] Binary Operators
- [x] Vector matching
- [ ] Aggregation operators
- [ ] Functions
- [ ] Runtime syntax checking
- [ ] Compile time syntax checking
- [x] Aggregation operators (implemented as functions)
- [x] Functions (initial support for most important fns)
- [ ] Runtime syntax checking (?)
- [x] Compile time syntax checking
- [x] ~~Deserialize~~ Convert to custom data types
- [ ] ORM-like API to build queries using user defined types (derive macro)
- [ ] Encapsulated raw queries with methods for constructing interpolated versions
- [ ] Processing multiple queries at once
......@@ -23,7 +23,7 @@ impl IntoQryResult for Result<response::PromqlResult, error::Error> {
}
}
/// A wrapper for possible result types of expression queries ([`Client::query`](crate::Client::query) and [`Client::query_range`](crate::Client::query_range)).
/// A wrapper for possible result types of expression queries
#[derive(Clone, Debug, EnumAsInner)]
pub enum Data {
Vector(Vec<response::InstantVector>),
......@@ -43,7 +43,7 @@ impl From<response::PromqlResult> for Data {
}
impl Data {
/// This is a shortcut to check if the query returned any data at all regardless of the exact type.
/// A shortcut to check if the query returned any data at all regardless of the exact type.
pub fn is_empty(&self) -> bool {
match self {
Data::Vector(v) => v.is_empty(),
......@@ -205,8 +205,7 @@ impl fmt::Display for PrometheusErrorType {
}
}
/// Is thrown when the [`Client`](crate::Client) or the underlying
/// [`reqwest::Error`] fail to build or execute a request.
/// Is thrown when the [`reqwest::Error`] fails to build or execute a request.
#[derive(Debug, Clone)]
pub struct ClientError(String);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment