Skip to content

Commit

Permalink
Add stats endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed May 14, 2024
1 parent f89c748 commit ae3348e
Show file tree
Hide file tree
Showing 16 changed files with 253 additions and 33 deletions.
95 changes: 75 additions & 20 deletions dist/typesense.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/Typesense/Client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Keys from "./Keys";
import Key from "./Key";
import Debug from "./Debug";
import Metrics from "./Metrics";
import Stats from "./Stats";
import Health from "./Health";
import Operations from "./Operations";
import MultiSearch from "./MultiSearch";
Expand All @@ -23,6 +24,7 @@ export default class Client {
apiCall: ApiCall;
debug: Debug;
metrics: Metrics;
stats: Stats;
health: Health;
operations: Operations;
multiSearch: MultiSearch;
Expand Down
2 changes: 2 additions & 0 deletions lib/Typesense/Client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/Client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions lib/Typesense/Metrics.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import ApiCall from "./ApiCall";
export interface MetricsResponse {
system_cpu1_active_percentage: string;
system_cpu2_active_percentage: string;
system_cpu3_active_percentage: string;
system_cpu4_active_percentage: string;
[key: `system_cpu${number}_active_percentage`]: string;
system_cpu_active_percentage: string;
system_disk_total_bytes: string;
system_disk_used_bytes: string;
system_memory_total_bytes: string;
system_memory_total_swap_bytes?: string;
system_memory_used_bytes: string;
system_memory_used_swap_bytes?: string;
system_network_received_bytes: string;
system_network_sent_bytes: string;
typesense_memory_active_bytes: string;
Expand Down
Loading

0 comments on commit ae3348e

Please sign in to comment.