@flashbacktech/flashbackclient 0.1.31 → 0.1.32

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.
@@ -347,6 +347,9 @@ class ApiClient {
347
347
  else if ('bucketId' in params && params.bucketId && params.bucketId.length > 0) {
348
348
  queryParams.append('bucketId', params.bucketId.join(','));
349
349
  }
350
+ if (params.hosts && params.hosts.length > 0) {
351
+ queryParams.append('hosts', params.hosts.join(','));
352
+ }
350
353
  return this.makeRequest(`stats/daily?${queryParams.toString()}`, 'GET', null);
351
354
  }
352
355
  async getMinuteStats(params) {
@@ -367,6 +370,9 @@ class ApiClient {
367
370
  else if ('bucketId' in params && params.bucketId && params.bucketId.length > 0) {
368
371
  queryParams.append('bucketId', params.bucketId.join(','));
369
372
  }
373
+ if (params.hosts && params.hosts.length > 0) {
374
+ queryParams.append('hosts', params.hosts.join(','));
375
+ }
370
376
  return this.makeRequest(`stats/minute?${queryParams.toString()}`, 'GET', null);
371
377
  }
372
378
  async getNodeStatsMinute(params) {
@@ -3,6 +3,7 @@ export interface StatsQueryParams {
3
3
  endDate?: Date;
4
4
  repoId?: string[];
5
5
  unitId?: string[];
6
+ hosts?: string[];
6
7
  }
7
8
  export interface StatsResponse {
8
9
  success: boolean;
@@ -17,6 +18,7 @@ export interface StatsData {
17
18
  dwl_bytes: bigint;
18
19
  size_change: bigint;
19
20
  latency_ms: number;
21
+ host: string;
20
22
  }
21
23
  export interface NodeStatsMinuteResponse {
22
24
  success: boolean;
@@ -90,6 +92,7 @@ export interface StatsQueryWithBucketParams {
90
92
  endDate?: Date;
91
93
  repoId?: string[];
92
94
  bucketId?: string[];
95
+ hosts?: string[];
93
96
  }
94
97
  export interface StatsDataWithBucket {
95
98
  timestamp: number;
@@ -99,6 +102,7 @@ export interface StatsDataWithBucket {
99
102
  dwl_bytes: bigint;
100
103
  size_change: bigint;
101
104
  latency_ms: number;
105
+ host: string;
102
106
  }
103
107
  export interface NodeStatsMinuteDataWithBucket {
104
108
  nodeId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"