TRAC Metadata Endpoint
The TRAC Metadata Endpoint is useful for collecting information about all of the TRAC searches on your entire domain. This endpoint can be used for Top Level search data, & search creation.
Why this Endpoint?
This endpoint can be used not just to retrieve search metadata, but for search creation itself! This includes all the necessary steps involved with search creation, such as previewing and launching historics, starting and stopping your realtime collection, editing your search, and more!
Sample Calls
Intro
Below are a handful of sample calls to help you understand how the TRAC Metadata Endpoint functions
Each sample call will contain the query and variables in one tab, followed by the Response in the other.
We do this to keep formatting consistent with how most API testing environments would surface the blocks as groups.
For all queries, POST to this GraphQL endpoint URL:
https://trac.pulsarplatform.com/graphql
Getting a List of your Running Searches ordered by Name
Use the page option to traverse through if you have more than 10 searches
Creating a Search
Though the entire return options are unrequired, it's recommended to use these fields to immediately retrieve the new search hash as well as any potential errors if the setup isn't right
Creating a Historic on a Search
Note that we are using the search ID instead of the search hash for this mutation: the search ID can also be retrieved via the searches field, or it can be seen in the search URL on platform
Previewing a Historic on a Search
The most important bit to grab here if you wish to launch the historic after preview is the id found as the first subfield of nodes. You will use this id to launch the historic.
Launching a Historic on a Search
Remember, the historic IDs needed to launch historics can be retrieved from the above query; the above query can also be used to check the status of the launch afterwards. Some searches may still need manual authorization by an internal admin for historics.
Starting a Search
Note the start and end date fields are optional; if they are left out, the search will start immediately and run until it is stopped. These fields are useful for establishing a search schedule.
Stopping a Search
Very similar to starting a search, note again the use of the search ID rather than the search hash!
Last updated