@crowdstrike/logscale-search 1.136.0--build-1093--sha-79e81f65f3475d1356318149af241973c7f30ec4 → 1.136.1--build-1149--sha-9b619083000d83b74355529c41cdb8cba57e5194
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/index.d.ts +31 -1
- package/index.js +522 -522
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -483,6 +483,36 @@ export declare type QueryPaginationOptions = {
|
|
483
483
|
numberOfEventsAfter: number;
|
484
484
|
};
|
485
485
|
|
486
|
+
/**
|
487
|
+
* A Query Result.
|
488
|
+
*
|
489
|
+
* This is the result of a LogScale Query being executed and polled.
|
490
|
+
*
|
491
|
+
* @public
|
492
|
+
*/
|
493
|
+
export declare type QueryResult = {
|
494
|
+
done: boolean;
|
495
|
+
cancelled: boolean;
|
496
|
+
events: QueryResultRow[];
|
497
|
+
metaData: {
|
498
|
+
queryStart: number;
|
499
|
+
queryEnd: number;
|
500
|
+
};
|
501
|
+
};
|
502
|
+
|
503
|
+
/**
|
504
|
+
* A single row of a QueryResult.
|
505
|
+
*
|
506
|
+
* This contains the data of a single event / row.
|
507
|
+
*
|
508
|
+
* @public
|
509
|
+
*/
|
510
|
+
export declare type QueryResultRow = {
|
511
|
+
[key: string]: string;
|
512
|
+
} & {
|
513
|
+
"@timestamp"?: number;
|
514
|
+
};
|
515
|
+
|
486
516
|
/**
|
487
517
|
* A repository or view option for the LogScale Search view Repository or View selector.
|
488
518
|
*
|
@@ -578,7 +608,7 @@ export declare class SearchView extends WebcomponentBase<Options> {
|
|
578
608
|
*
|
579
609
|
* @public
|
580
610
|
*/
|
581
|
-
onQueryResult(callback: (
|
611
|
+
onQueryResult(callback: (queryResult: QueryResult) => void | null): void;
|
582
612
|
/**
|
583
613
|
* Implement this hook to receive notifications about changes to the state of the Search view.
|
584
614
|
*
|