@crowdstrike/logscale-parser-edit 1.158.0--build-2009--sha-3aeadfca1d303f754caa536ffefe54a5aba8a3c1 → 1.161.0--build-2112--sha-ea4237e6b99165389c673adff40050178f1a697e
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 +27 -0
- package/index.js +458 -485
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -102,10 +102,33 @@ export declare interface Options extends CommonOptions {
|
|
102
102
|
readOnly?: boolean;
|
103
103
|
}
|
104
104
|
|
105
|
+
/** LogScale Parser matching the schema https://schemas.humio.com/parser/v0.3.0
|
106
|
+
* @public @sealed
|
107
|
+
*/
|
108
|
+
export declare type Parser = {
|
109
|
+
$schema: "https://schemas.humio.com/parser/v0.3.0";
|
110
|
+
name: string;
|
111
|
+
description?: string | null;
|
112
|
+
script: string;
|
113
|
+
fieldsToBeRemovedBeforeParsing?: string[];
|
114
|
+
tagFields?: string[];
|
115
|
+
testCases?: {
|
116
|
+
event: {
|
117
|
+
rawString: string;
|
118
|
+
};
|
119
|
+
assertions: {
|
120
|
+
outputEventIndex: number;
|
121
|
+
fieldsNotPresent: string[];
|
122
|
+
fieldsHaveValues: Record<string, string>;
|
123
|
+
}[];
|
124
|
+
}[];
|
125
|
+
};
|
126
|
+
|
105
127
|
/** Custom element that embeds the LogScale parser editor.
|
106
128
|
* @public @sealed
|
107
129
|
*/
|
108
130
|
export declare class ParserEdit extends WebcomponentBase<Options> {
|
131
|
+
private _app;
|
109
132
|
/** Requests the parser to be saved. Will trigger the callback provided by `#onSave` once completed (on success or failure).
|
110
133
|
* @public
|
111
134
|
*/
|
@@ -114,6 +137,10 @@ export declare class ParserEdit extends WebcomponentBase<Options> {
|
|
114
137
|
* @public
|
115
138
|
*/
|
116
139
|
onSave(callback: (error: Error) => void): void;
|
140
|
+
/** Extract the current parser from the component.
|
141
|
+
* @public
|
142
|
+
*/
|
143
|
+
exportParserData(): Promise<Parser>;
|
117
144
|
/** Changes the parser editor to be in read-only mode (when given `true`) or in editable mode (when given `false`).
|
118
145
|
* @public
|
119
146
|
*/
|