Operations 4
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which JavaScript errors are my visitors hitting most this week?”
“Can I page through error groups 150 at a time?”
Tell an agent
List error groups for project {pid} over {period}.
Show the next {take} error groups for project {pid} over {period}, skipping {skip}.
Ask an LLM
“What are the full details behind a specific error group?”
“Can I drill into one error by its ID to see its occurrences?”
Tell an agent
Get details for error {eid} in project {pid} over {period}.
Show me error group {eid} on project {pid} from {from} to {to} for period {period}.
Ask an LLM
“Is my site's error rate going up or down over time?”
“How many errors happened per day across the whole project?”
Tell an agent
Chart error counts for project {pid} over {period} by {timeBucket}.
Get the error statistics overview for project {pid}, bucketed by {timeBucket}, for {period}.
Ask an LLM
“How do I send a caught JavaScript exception to Swetrix?”
“Can I include a stack trace and source file line when logging an error?”
Tell an agent
Record a {name} error with message {message} for project {pid}.
Log error {name} from {filename} at line {lineno} for project {pid} with stack trace {stackTrace}.
Documentation
Documentation
https://swetrix.com/docs/statistics-api
Documentation
https://swetrix.com/docs/admin-api