Built-in Extensions
/cache
Cache Extension returns latest retrieved cache keys
/changelog
Shows aggregated CHANGELOG.md files for INSTALLED_EXTENSIONS
/status
HealthCheck Extension just returns 200 Helps ensure the service is up and responding
/inspect
Inspect Extension returns information about the current configuration
- class q2_sdk.extensions.Inspect.extension.InspectHandler(application, request, **kwargs)[source]
- set_default_headers()[source]
Override this to set HTTP headers at the beginning of the request.
For example, this is the place to set a custom
Server
header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.
/logging
- enum q2_sdk.extensions.Logging.extension.TaskType(value)[source]
Valid values are as follows:
- LogLevel = <TaskType.LogLevel: 'LogLevel'>
- FullResponse = <TaskType.FullResponse: 'FullResponse'>
- class q2_sdk.extensions.Logging.extension.LoggingHandler(application, request, **kwargs)[source]
Endpoint to temporarily change the server’s LogLevel at runtime
Allows for setting a single override at a time. If an override is set, begins a timer as a separate asyncio Task, which will reset the LogLevel to default on expiration.
/metrics
Metrics Extension returns usage data
/dbplan/{extension_name}
Endpoint to install an extension’s db_plan
- class q2_sdk.extensions.DbPlan.extension.DbPlanHandler(application, request, **kwargs)[source]
- set_default_headers()[source]
Override this to set HTTP headers at the beginning of the request.
For example, this is the place to set a custom
Server
header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.
/admin
Admin Extension provides an interface to do server level operations
/{unmatched}
Fallback for any requests that don’t match anything else installed