Skip to main content

AnnotationField

Represents an annotation field in an annotation queue.

AnnotationQueueUser

Represents a user with access to an annotation queue.

AnnotationQueue

Represents an annotation queue in the Splunk AO platform. Annotation queues are organization-level resources used to assign log records to annotators and track annotation progress.

AnnotationQueues

add_records

Add records to an annotation queue. Exactly one of record_ids or record_selector must be provided. Arguments
  • queue_id (str): The ID of the annotation queue.
  • project_id (str): The ID of the project containing the records.
  • agent_stream_id (str | None): The ID of the log stream containing the records.
  • experiment_id (str | None): The ID of the experiment containing the records.
  • record_ids (list[str] | None): Optional list of record IDs to add.
  • record_selector (AnnotationQueueRecordSelector | None): Optional generated selector for adding records by record IDs or filter tree.
Returns
  • int: The number of records added to the queue.

create

Create an annotation queue. Arguments
  • name (str): The name of the annotation queue.
  • description (str | None): Optional annotation queue description.
  • annotator_emails (list[str] | None): Optional annotator emails to invite or assign.
  • copy_fields_from_queue_id (str | None): Optional annotation queue ID to copy fields from.
Returns
  • AnnotationQueue: The created annotation queue.

create_field

Create a field in an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
  • name (str): The name of the annotation field.
  • constraints (AnnotationFieldConstraints): The annotation field constraints.
  • include_explanation (bool): Whether annotators should include explanations.
  • criteria (str | None | Unset): Optional annotation criteria. Pass None to clear it; omit to leave unset.
Returns
  • AnnotationField: The created annotation field.

delete

Delete an annotation queue by id or name. Arguments
  • id (str): The ID of the annotation queue.
  • name (str): The name of the annotation queue.

delete_field

Delete a field from an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
  • field_id (str): The ID of the annotation field.

get

Retrieves an annotation queue by id or name. Exactly one of id or name must be provided. Arguments
  • id (str): The id of the annotation queue.
  • name (str): The name of the annotation queue.
Returns
  • AnnotationQueue | None: The annotation queue, or None if the API returns no matching queue.

get_records

Get records from an annotation queue. This uses the queue-scoped partial search endpoint. Arguments
  • queue_id (str): The ID of the annotation queue.
  • starting_token (Union[Unset, int]): The page starting token. Default is 0.
  • limit (Union[Unset, int]): The maximum number of records to return. Default is 100.
  • previous_last_row_id (Union[None, Unset, str]): Cursor value from the previous page.
  • filter_tree (Union[AnnotationQueueRecordsFilter, None, Unset]): Optional filter tree to apply to queue records.
  • sort (Union[LogRecordsSortClause, None, Unset]): Optional sort clause.
Returns
  • LogRecordsPartialQueryResponse: The matching records and pagination metadata.

list

List annotation queues. Arguments
  • limit (Union[Unset, int]): The maximum number of annotation queues to request per page. Default is 100.
Returns
  • list[AnnotationQueue]: A list of annotation queues.

list_fields

List fields for an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
Returns
  • list[AnnotationField]: A list of annotation fields.

list_users

List users who have access to an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
Returns
  • list[AnnotationQueueUser]: A list of annotation queue users.

remove_records

Remove records from an annotation queue. Exactly one of record_ids or record_selector must be provided. Arguments
  • queue_id (str): The ID of the annotation queue.
  • record_ids (list[str] | None): Optional list of record IDs to remove.
  • record_selector (AnnotationQueueRecordSelector | None): Optional generated selector for removing records by record IDs or filter tree.
Returns
  • int: The number of records removed from the queue.

remove_user

Remove a user’s access to an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
  • user_id (str): The ID of the user to remove.

share

Share an annotation queue with a user. Exactly one of user_id or user_email must be provided. Arguments
  • queue_id (str): The ID of the annotation queue.
  • user_id (str | None): The ID of the user to share with.
  • user_email (str | None): The email of the user to share with.
  • role (CollaboratorRole): The role to grant. Default is CollaboratorRole.ANNOTATOR.
  • track_progress (bool): Whether to track annotation progress for the user.
Returns
  • AnnotationQueueUser: The created annotation queue user.

update

Update an annotation queue. Arguments
  • id (str): The ID of the annotation queue.
  • name (str | None): Optional new queue name. Omit to leave unchanged.
  • description (str | None | Unset): Optional new description. Pass None to clear it; omit to leave unchanged.
Returns
  • AnnotationQueue: The updated annotation queue.

update_field

Update a field in an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
  • field_id (str): The ID of the annotation field.
  • name (str): The new name for the annotation field.
  • criteria (str | None): The new criteria for the annotation field.
Returns
  • AnnotationField: The updated annotation field.

update_user

Update a user’s role for an annotation queue. Arguments
  • queue_id (str): The ID of the annotation queue.
  • user_id (str): The ID of the user.
  • role (CollaboratorRole): The new role for the user.
  • track_progress (bool | None | Unset): Optional progress tracking value.
Returns
  • AnnotationQueueUser: The updated annotation queue user.

add_records_to_annotation_queue

Add records to an annotation queue.

create_annotation_queue

Create an annotation queue.

create_annotation_queue_field

Create a field in an annotation queue.

delete_annotation_queue

Delete an annotation queue by id or name.

delete_annotation_queue_field

Delete a field from an annotation queue.

get_annotation_queue

Retrieve an annotation queue by id or name.

get_annotation_queue_records

Get records from an annotation queue.

list_annotation_queue_fields

List fields for an annotation queue.

list_annotation_queue_users

List users who have access to an annotation queue.

list_annotation_queues

List annotation queues.

remove_annotation_queue_user

Remove a user’s access to an annotation queue.

remove_records_from_annotation_queue

Remove records from an annotation queue.

share_annotation_queue

Share an annotation queue with a user.

update_annotation_queue

Update an annotation queue.

update_annotation_queue_field

Update a field in an annotation queue.

update_annotation_queue_user

Update a user’s role for an annotation queue.