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.datasets.ingest("my-dataset", vec![
      json!({
        "foo": "bar",
        "bar": "baz"
      }),
    ]).await?;

    let res = client.datasets.apl_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.

The optional parameters to APL query methods.

A query that gets executed on a dataset. If you’re looking for the analytics, check out Query.

The result of an APL query. It embeds the APL request in the result it created.

Provides methods to work with Axiom datasets, including ingesting and querying.

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.

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 APL query, check out AplQuery.

A message that is returned in the status of a query.

The parameters for a query.

The result of a query.

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.