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
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.
int: The number of records added to the queue.
create
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.
AnnotationQueue: The created annotation queue.
create_field
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.
AnnotationField: The created annotation field.
delete
id(str): The ID of the annotation queue.name(str): The name of the annotation queue.
delete_field
queue_id(str): The ID of the annotation queue.field_id(str): The ID of the annotation field.
get
id or name must be provided.
Arguments
id(str): The id of the annotation queue.name(str): The name of the annotation queue.
AnnotationQueue | None: The annotation queue, or None if the API returns no matching queue.
get_records
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.
LogRecordsPartialQueryResponse: The matching records and pagination metadata.
list
limit(Union[Unset, int]): The maximum number of annotation queues to request per page. Default is 100.
list[AnnotationQueue]: A list of annotation queues.
list_fields
queue_id(str): The ID of the annotation queue.
list[AnnotationField]: A list of annotation fields.
list_users
queue_id(str): The ID of the annotation queue.
list[AnnotationQueueUser]: A list of annotation queue users.
remove_records
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.
int: The number of records removed from the queue.
remove_user
queue_id(str): The ID of the annotation queue.user_id(str): The ID of the user to remove.
share
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.
AnnotationQueueUser: The created annotation queue user.
update
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.
AnnotationQueue: The updated annotation queue.
update_field
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.
AnnotationField: The updated annotation field.
update_user
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.
AnnotationQueueUser: The updated annotation queue user.