@withmarfa/client 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +39 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2093,7 +2093,7 @@ interface paths {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
/**
|
|
2095
2095
|
* Get instance metrics
|
|
2096
|
-
* @description Returns instance-wide counters and process uptime. Requires `instance.read`; the counters include records outside your content permissions.
|
|
2096
|
+
* @description Returns instance-wide counters, how much memory, CPU and disk this server uses, and process uptime. Requires `instance.read`; the counters include records outside your content permissions.
|
|
2097
2097
|
*/
|
|
2098
2098
|
get: operations["getInstanceMetrics"];
|
|
2099
2099
|
put?: never;
|
|
@@ -30775,7 +30775,44 @@ interface operations {
|
|
|
30775
30775
|
webhooks: components["schemas"]["MetricCount"] & unknown;
|
|
30776
30776
|
/** @description Seconds since this server process started. */
|
|
30777
30777
|
uptime_seconds: number;
|
|
30778
|
-
/** @description
|
|
30778
|
+
/** @description What this server process costs, since it started. */
|
|
30779
|
+
process: {
|
|
30780
|
+
/** @description The release this server runs. */
|
|
30781
|
+
release: string;
|
|
30782
|
+
/** @description Memory the server process holds in RAM, in bytes. `null` if it can't be read. */
|
|
30783
|
+
memory_rss_bytes: number | null;
|
|
30784
|
+
/** @description The most memory the process has held in RAM, in bytes. `null` if it can't be read. */
|
|
30785
|
+
memory_rss_peak_bytes: number | null;
|
|
30786
|
+
/** @description Memory the JavaScript engine uses for live objects, in bytes. `null` if it can't be read. */
|
|
30787
|
+
heap_used_bytes: number | null;
|
|
30788
|
+
/** @description Memory the JavaScript engine has reserved, in bytes. `null` if it can't be read. */
|
|
30789
|
+
heap_total_bytes: number | null;
|
|
30790
|
+
/** @description CPU seconds the process has spent on its own work since it started. `null` if it can't be read. */
|
|
30791
|
+
cpu_user_seconds: number | null;
|
|
30792
|
+
/** @description CPU seconds the process has spent in the operating system since it started. `null` if it can't be read. */
|
|
30793
|
+
cpu_system_seconds: number | null;
|
|
30794
|
+
};
|
|
30795
|
+
/** @description Database size and row counts. */
|
|
30796
|
+
storage: {
|
|
30797
|
+
/** @description Size of the database file, in bytes. `null` if it can't be read. */
|
|
30798
|
+
database_bytes: number | null;
|
|
30799
|
+
/** @description Size of the database's write-ahead log file, in bytes. 0 when there is none. `null` if it can't be read. */
|
|
30800
|
+
wal_bytes: number | null;
|
|
30801
|
+
/** @description Row counts of the largest tables, as of `counted_at`. `null` if a count can't be read, and all `null` until the first count finishes. */
|
|
30802
|
+
rows: {
|
|
30803
|
+
/** @description Number of items. */
|
|
30804
|
+
items: number | null;
|
|
30805
|
+
/** @description Number of stored item versions. */
|
|
30806
|
+
versions: number | null;
|
|
30807
|
+
/** @description Number of event log entries. */
|
|
30808
|
+
event_log: number | null;
|
|
30809
|
+
/** @description Number of audit log entries. */
|
|
30810
|
+
audit_log: number | null;
|
|
30811
|
+
};
|
|
30812
|
+
/** @description When the row counts were taken, in UTC. `null` until the first count finishes. A request never counts: when there is no count or it is over an hour old, Marfa starts one in the background. */
|
|
30813
|
+
counted_at: string | null;
|
|
30814
|
+
};
|
|
30815
|
+
/** @description When the item, blob, type, key and webhook counters were collected, in UTC. They are reused for up to a minute. The `process` and `storage` blocks are read on each request. */
|
|
30779
30816
|
cached_at: string;
|
|
30780
30817
|
};
|
|
30781
30818
|
};
|