ServerMetrics
Defined in: js-api/src/dapi.ts:784
Result of AdminDataSource.getMetrics.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
database | object | Platform database statistics. | js-api/src/dapi.ts:807 |
database.cacheHitPct | number | Share of block reads served from shared_buffers, percent. | js-api/src/dapi.ts:811 |
database.connections | ServerMetricsConnections | pg_stat_activity summary. | js-api/src/dapi.ts:815 |
database.sizeBytes | number | pg_database_size of the platform database. | js-api/src/dapi.ts:809 |
database.statements | object | pg_stat_statements rankings, limit rows each. | js-api/src/dapi.ts:817 |
database.statements.available | boolean | False (with version null and empty rankings) when pg_stat_statements is not installed. | js-api/src/dapi.ts:819 |
database.statements.mostCalled | ServerMetricsStatement[] | By call count, descending. | js-api/src/dapi.ts:825 |
database.statements.slowest | ServerMetricsStatement[] | By mean execution time, descending. | js-api/src/dapi.ts:823 |
database.statements.version | string | null | Extension version, e.g. 1.10. | js-api/src/dapi.ts:821 |
database.statements.worstCacheHit | ServerMetricsStatement[] | By shared-buffer hit percentage, ascending. | js-api/src/dapi.ts:827 |
database.statsReset | string | null | ISO 8601, or null when the statistics were never reset. | js-api/src/dapi.ts:813 |
errors | object | The window's errors: totals, the previous window's count, counts per error source, and the top errors ranked by the users they hit, then the hours they recurred, limit per source. | js-api/src/dapi.ts:798 |
errors.bySource | object | - | js-api/src/dapi.ts:801 |
errors.now | object | - | js-api/src/dapi.ts:799 |
errors.now.count | number | - | js-api/src/dapi.ts:799 |
errors.now.users | number | - | js-api/src/dapi.ts:799 |
errors.previous | object | - | js-api/src/dapi.ts:800 |
errors.previous.count | number | - | js-api/src/dapi.ts:800 |
errors.top | ServerMetricsError[] | - | js-api/src/dapi.ts:802 |
http | object | Request statistics: the window, the previous window (for deltas), and the slowest routes. | js-api/src/dapi.ts:788 |
http.now | ServerMetricsRequests | The requested window. | js-api/src/dapi.ts:790 |
http.previous | object | The window of the same length right before window.start. | js-api/src/dapi.ts:792 |
http.previous.count | number | - | js-api/src/dapi.ts:792 |
http.previous.p95 | number | - | js-api/src/dapi.ts:792 |
http.routes | ServerMetricsRoute[] | Ordered by p95 descending, at most limit rows. | js-api/src/dapi.ts:794 |
queue | object | func_calls by status: queued are waiting, running are executing. | js-api/src/dapi.ts:805 |
queue.queued | number | - | js-api/src/dapi.ts:805 |
queue.running | number | - | js-api/src/dapi.ts:805 |
window | object | ISO 8601; previousStart opens the window of the same length right before start. | js-api/src/dapi.ts:786 |
window.end | string | - | js-api/src/dapi.ts:786 |
window.previousStart | string | - | js-api/src/dapi.ts:786 |
window.start | string | - | js-api/src/dapi.ts:786 |