Module axiom_rs::datasets

source ·
Expand description

Manage datasets, ingest data and query it.

You’re probably looking for the Client.

Examples

use axiom_rs::{Client, Error};
use serde_json::json;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let client = Client::new()?;

    client.datasets.create("my-dataset", "").await?;

    client.ingest("my-dataset", vec![
      json!({
        "foo": "bar",
        "bar": "baz"
      }),
    ]).await?;

    let res = client.query("['my-dataset'] | count", None).await?;
    assert_eq!(1, res.status.rows_matched);

    client.datasets.delete("my-dataset").await?;

    Ok(())
}

Structs

Aggregations are applied to a query.
Provides methods to work with Axiom datasets, including ingesting and querying. If you’re looking for the ingest and query methods, those are at the top-level client.
An Axiom dataset.
Used to create a dataset.
Used to update a dataset.
An event that matched a query and is thus part of the result set.
A group of queried event.
An aggregation which is part of a group of queried events.
A field of an Axiom dataset.
A filter is applied to a query.
Details of the information stored inside a dataset including the fields.
Ingestion failure of a single event.
Returned on event ingestion operation.
The interval of queried time series.
A query that gets executed on a dataset. If you’re looking for the APL query, check out Query.
The parameters for a query.
The legacy result of a query.
Specifies the order a queries result will be in.
A field that is projected to the query result.
A query that gets executed on a dataset. If you’re looking for the analytics, check out Query.
A message that is returned in the status of a query.
The optional parameters to APL query methods.
The query result. It embeds the APL request in the result it created.
The status of a query result.
Details of the information stored in a dataset.
A queried time series.
The result of a trim operation.
A VirtualField is not part of a dataset and its value is derived from an expression. Aggregations, filters and orders can reference this field like any other field.

Enums

Supported aggregation operations.
The result format of an APL query.
The cache status of the query.
All supported content encoding
All supported content types.
Supported filter operations.
The kind of a query.
The code of a message that is returned in the status of a query.
The priority of a query message.

Statics

The default field the server looks for a time to use as ingestion time. If not present, the server will set the ingestion time by itself.