Get observations
tideways_get_observationsFetch a project's automatic findings, including PHP configuration issues and code bottlenecks, for a quick health check or optimization ideas.
Instructions
Automatic findings Tideways made for a project: PHP configuration problems (e.g. OPcache buffers, timeouts) and code bottlenecks detected in traces (e.g. N+1 queries, sleep, waits). Use for a quick health check or optimization ideas. Findings do not name the affected requests, and the API cannot filter traces by bottleneck: give the user the link, whose page in the Tideways UI lists recent affected traces. Do not infer N+1 queries from slow-SQL issues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Tideways project as "project" or "organization/project". Defaults to the defaultProject that tideways_list_projects reports; call it for valid names. | |
| service | No | Service, e.g. "web" or "worker". Defaults to the configured service, else the project's default service. A project can have several services; tideways_list_services lists them. When results come back, an unknown name fails with an error. | |
| environment | No | Environment, e.g. "production" or "staging". Defaults to the configured environment, else production; criteria.environment (traces: each trace's environment) shows which was used. When results come back, an unknown name fails with an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| criteria | Yes | ||
| observations | Yes |