This page explains how to use annotations to add context to your dashboard elements.
DATASET_NAME
with the Axiom dataset where you want to send data. To add the annotation to more than one dataset, enter a string of Axiom dataset names separated by commas. For example axiom_datasets: 'DATASET_NAME_1, DATASET_NAME_2, DATASET_NAME_3'
.API_TOKEN
with your Axiom API token. Add this token to your secrets.DATASET_NAME
with the Axiom dataset where you want to send data. To add the annotation to more than one dataset, enter a list of Axiom dataset names.API_TOKEN
with your Axiom API token.id
field. This is the annotation ID that you can later use to change or delete the annotation.
API_TOKEN
with your Axiom API token.
Use the following parameters in the endpoint URL to filter for a specific time interval and dataset:
start
is an ISO timestamp that specifies the beginning of the time interval.end
is an ISO timestamp that specifies the end of the time interval.datasets
is the list of datasets whose annotations you want to get information about. Separate datasets by commas, for example datasets=my-dataset1,my-dataset2
.my-dataset
:
id
field. This is the annotation ID that you can later use to change or delete the annotation. For more information on the other fields, see Annotation object.
To get information about a specific annotation, use the following API request:
ANNOTATION_ID
with the ID of the annotation.API_TOKEN
with your Axiom API token.ANNOTATION_ID
with the ID of the annotation. For more information about how to determine the annotation ID, see Get information about annotations.API_TOKEN
with your Axiom API token.endTime
field to the annotation created above. For more information on the allowed fields, see Annotation object.ANNOTATION_ID
with the ID of the annotation. For more information about how to determine the annotation ID, see Get information about annotations.API_TOKEN
with your Axiom API token.datasets
is the list of dataset names for which the annotation appears on charts.id
is the unique ID of the annotation.description
is an explanation of the event the annotation marks on the charts.time
is an ISO timestamp value that specifies the time the annotation marks on the charts.title
is a summary of the annotation that appears on the charts.type
is the type of the event marked by the annotation. For example, production deployment.url
is the URL relevant for the event marked by the annotation. For example, link to GitHub pull request.endTime
is an ISO timestamp value that specifies the end time of the annotation.API_TOKEN
with your Axiom API token.
Example histogram with annotation