cribl-control-plane 0.5.0-beta.9 → 0.5.0-rc.10
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/README.md +77 -76
- package/dist/commonjs/funcs/systemCapturesGet.d.ts +21 -0
- package/dist/commonjs/funcs/systemCapturesGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/systemCapturesGet.js +137 -0
- package/dist/commonjs/funcs/systemCapturesGet.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/jsonl.d.ts +10 -0
- package/dist/commonjs/lib/jsonl.d.ts.map +1 -0
- package/dist/commonjs/lib/jsonl.js +104 -0
- package/dist/commonjs/lib/jsonl.js.map +1 -0
- package/dist/commonjs/models/capturelevel.d.ts +12 -0
- package/dist/commonjs/models/capturelevel.d.ts.map +1 -0
- package/dist/commonjs/models/capturelevel.js +49 -0
- package/dist/commonjs/models/capturelevel.js.map +1 -0
- package/dist/commonjs/models/captureparams.d.ts +25 -0
- package/dist/commonjs/models/captureparams.d.ts.map +1 -0
- package/dist/commonjs/models/captureparams.js +56 -0
- package/dist/commonjs/models/captureparams.js.map +1 -0
- package/dist/commonjs/models/criblevent.d.ts +1 -3
- package/dist/commonjs/models/criblevent.d.ts.map +1 -1
- package/dist/commonjs/models/criblevent.js +1 -4
- package/dist/commonjs/models/criblevent.js.map +1 -1
- package/dist/commonjs/models/functionconfschemaaggregatemetrics.d.ts +8 -8
- package/dist/commonjs/models/functionconfschemaaggregatemetrics.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaaggregation.d.ts +8 -8
- package/dist/commonjs/models/functionconfschemaaggregation.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemacef.d.ts +1 -1
- package/dist/commonjs/models/functionconfschemacef.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemadistinct.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemadistinct.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemadnslookup.d.ts +1 -3
- package/dist/commonjs/models/functionconfschemadnslookup.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemadnslookup.js +3 -12
- package/dist/commonjs/models/functionconfschemadnslookup.js.map +1 -1
- package/dist/commonjs/models/functionconfschemadropdimensions.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemadropdimensions.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemadynamicsampling.d.ts +5 -5
- package/dist/commonjs/models/functionconfschemadynamicsampling.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaeventbreaker.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemaeventbreaker.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaeventstats.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemaeventstats.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemageoip.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemageoip.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemagrok.d.ts +1 -1
- package/dist/commonjs/models/functionconfschemagrok.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts +4 -4
- package/dist/commonjs/models/functionconfschemahandlebars.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemalakeexport.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemalakeexport.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemalookup.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemalookup.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemamask.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemamask.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemamvexpand.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemamvexpand.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemamvpull.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemamvpull.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemanotify.d.ts +4 -4
- package/dist/commonjs/models/functionconfschemanotify.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemapack.d.ts +1 -1
- package/dist/commonjs/models/functionconfschemapack.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaredis.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemaredis.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaregexextract.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemaregexextract.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemasend.d.ts +4 -4
- package/dist/commonjs/models/functionconfschemasend.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemasensitivedatascanner.d.ts +4 -4
- package/dist/commonjs/models/functionconfschemasensitivedatascanner.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaserde.d.ts +3 -3
- package/dist/commonjs/models/functionconfschemaserde.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaserialize.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemaserialize.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemastore.d.ts +7 -7
- package/dist/commonjs/models/functionconfschemastore.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemasuppress.d.ts +6 -6
- package/dist/commonjs/models/functionconfschemasuppress.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschematee.d.ts +1 -1
- package/dist/commonjs/models/functionconfschematee.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaunroll.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemaunroll.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemawindow.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemawindow.d.ts.map +1 -1
- package/dist/commonjs/models/functionconfschemaxmlunroll.d.ts +2 -2
- package/dist/commonjs/models/functionconfschemaxmlunroll.d.ts.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/getfunctionresponsebyid.d.ts +15 -0
- package/dist/commonjs/models/operations/getfunctionresponsebyid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfunctionresponsebyid.js +49 -0
- package/dist/commonjs/models/operations/getfunctionresponsebyid.js.map +1 -0
- package/dist/commonjs/models/pipeline.d.ts +1 -1
- package/dist/commonjs/models/pipeline.d.ts.map +1 -1
- package/dist/commonjs/models/pipelinefunctioncef.d.ts +1 -1
- package/dist/commonjs/models/pipelinefunctioncef.d.ts.map +1 -1
- package/dist/commonjs/models/routes.d.ts +1 -3
- package/dist/commonjs/models/routes.d.ts.map +1 -1
- package/dist/commonjs/models/routes.js +3 -12
- package/dist/commonjs/models/routes.js.map +1 -1
- package/dist/commonjs/models/routesroute.d.ts +1 -3
- package/dist/commonjs/models/routesroute.d.ts.map +1 -1
- package/dist/commonjs/models/routesroute.js +3 -12
- package/dist/commonjs/models/routesroute.js.map +1 -1
- package/dist/commonjs/models/runnablejobcollection.d.ts +37 -37
- package/dist/commonjs/models/runnablejobcollection.d.ts.map +1 -1
- package/dist/commonjs/models/runnablejobexecutor.d.ts +21 -21
- package/dist/commonjs/models/runnablejobexecutor.d.ts.map +1 -1
- package/dist/commonjs/models/runnablejobscheduledsearch.d.ts +16 -16
- package/dist/commonjs/models/runnablejobscheduledsearch.d.ts.map +1 -1
- package/dist/commonjs/sdk/captures.d.ts +15 -0
- package/dist/commonjs/sdk/captures.d.ts.map +1 -0
- package/dist/commonjs/sdk/captures.js +22 -0
- package/dist/commonjs/sdk/captures.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +2 -2
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +3 -3
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/system.d.ts +3 -0
- package/dist/commonjs/sdk/system.d.ts.map +1 -1
- package/dist/commonjs/sdk/system.js +4 -0
- package/dist/commonjs/sdk/system.js.map +1 -1
- package/dist/esm/funcs/systemCapturesGet.d.ts +21 -0
- package/dist/esm/funcs/systemCapturesGet.d.ts.map +1 -0
- package/dist/esm/funcs/systemCapturesGet.js +101 -0
- package/dist/esm/funcs/systemCapturesGet.js.map +1 -0
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/jsonl.d.ts +10 -0
- package/dist/esm/lib/jsonl.d.ts.map +1 -0
- package/dist/esm/lib/jsonl.js +100 -0
- package/dist/esm/lib/jsonl.js.map +1 -0
- package/dist/esm/models/capturelevel.d.ts +12 -0
- package/dist/esm/models/capturelevel.d.ts.map +1 -0
- package/dist/esm/models/capturelevel.js +13 -0
- package/dist/esm/models/capturelevel.js.map +1 -0
- package/dist/esm/models/captureparams.d.ts +25 -0
- package/dist/esm/models/captureparams.d.ts.map +1 -0
- package/dist/esm/models/captureparams.js +19 -0
- package/dist/esm/models/captureparams.js.map +1 -0
- package/dist/esm/models/criblevent.d.ts +1 -3
- package/dist/esm/models/criblevent.d.ts.map +1 -1
- package/dist/esm/models/criblevent.js +1 -4
- package/dist/esm/models/criblevent.js.map +1 -1
- package/dist/esm/models/functionconfschemaaggregatemetrics.d.ts +8 -8
- package/dist/esm/models/functionconfschemaaggregatemetrics.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaaggregation.d.ts +8 -8
- package/dist/esm/models/functionconfschemaaggregation.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemacef.d.ts +1 -1
- package/dist/esm/models/functionconfschemacef.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemadistinct.d.ts +3 -3
- package/dist/esm/models/functionconfschemadistinct.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemadnslookup.d.ts +1 -3
- package/dist/esm/models/functionconfschemadnslookup.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemadnslookup.js +4 -13
- package/dist/esm/models/functionconfschemadnslookup.js.map +1 -1
- package/dist/esm/models/functionconfschemadropdimensions.d.ts +2 -2
- package/dist/esm/models/functionconfschemadropdimensions.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemadynamicsampling.d.ts +5 -5
- package/dist/esm/models/functionconfschemadynamicsampling.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaeventbreaker.d.ts +2 -2
- package/dist/esm/models/functionconfschemaeventbreaker.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaeventstats.d.ts +2 -2
- package/dist/esm/models/functionconfschemaeventstats.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemageoip.d.ts +2 -2
- package/dist/esm/models/functionconfschemageoip.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemagrok.d.ts +1 -1
- package/dist/esm/models/functionconfschemagrok.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemahandlebars.d.ts +4 -4
- package/dist/esm/models/functionconfschemahandlebars.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemalakeexport.d.ts +3 -3
- package/dist/esm/models/functionconfschemalakeexport.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemalookup.d.ts +2 -2
- package/dist/esm/models/functionconfschemalookup.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemamask.d.ts +3 -3
- package/dist/esm/models/functionconfschemamask.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemamvexpand.d.ts +2 -2
- package/dist/esm/models/functionconfschemamvexpand.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemamvpull.d.ts +2 -2
- package/dist/esm/models/functionconfschemamvpull.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemanotify.d.ts +4 -4
- package/dist/esm/models/functionconfschemanotify.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemapack.d.ts +1 -1
- package/dist/esm/models/functionconfschemapack.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaredis.d.ts +3 -3
- package/dist/esm/models/functionconfschemaredis.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaregexextract.d.ts +3 -3
- package/dist/esm/models/functionconfschemaregexextract.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemasend.d.ts +4 -4
- package/dist/esm/models/functionconfschemasend.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemasensitivedatascanner.d.ts +4 -4
- package/dist/esm/models/functionconfschemasensitivedatascanner.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaserde.d.ts +3 -3
- package/dist/esm/models/functionconfschemaserde.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaserialize.d.ts +2 -2
- package/dist/esm/models/functionconfschemaserialize.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemastore.d.ts +7 -7
- package/dist/esm/models/functionconfschemastore.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemasuppress.d.ts +6 -6
- package/dist/esm/models/functionconfschemasuppress.d.ts.map +1 -1
- package/dist/esm/models/functionconfschematee.d.ts +1 -1
- package/dist/esm/models/functionconfschematee.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaunroll.d.ts +2 -2
- package/dist/esm/models/functionconfschemaunroll.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemawindow.d.ts +2 -2
- package/dist/esm/models/functionconfschemawindow.d.ts.map +1 -1
- package/dist/esm/models/functionconfschemaxmlunroll.d.ts +2 -2
- package/dist/esm/models/functionconfschemaxmlunroll.d.ts.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/getfunctionresponsebyid.d.ts +15 -0
- package/dist/esm/models/operations/getfunctionresponsebyid.d.ts.map +1 -0
- package/dist/esm/models/operations/getfunctionresponsebyid.js +12 -0
- package/dist/esm/models/operations/getfunctionresponsebyid.js.map +1 -0
- package/dist/esm/models/pipeline.d.ts +1 -1
- package/dist/esm/models/pipeline.d.ts.map +1 -1
- package/dist/esm/models/pipelinefunctioncef.d.ts +1 -1
- package/dist/esm/models/pipelinefunctioncef.d.ts.map +1 -1
- package/dist/esm/models/routes.d.ts +1 -3
- package/dist/esm/models/routes.d.ts.map +1 -1
- package/dist/esm/models/routes.js +4 -13
- package/dist/esm/models/routes.js.map +1 -1
- package/dist/esm/models/routesroute.d.ts +1 -3
- package/dist/esm/models/routesroute.d.ts.map +1 -1
- package/dist/esm/models/routesroute.js +4 -13
- package/dist/esm/models/routesroute.js.map +1 -1
- package/dist/esm/models/runnablejobcollection.d.ts +37 -37
- package/dist/esm/models/runnablejobcollection.d.ts.map +1 -1
- package/dist/esm/models/runnablejobexecutor.d.ts +21 -21
- package/dist/esm/models/runnablejobexecutor.d.ts.map +1 -1
- package/dist/esm/models/runnablejobscheduledsearch.d.ts +16 -16
- package/dist/esm/models/runnablejobscheduledsearch.d.ts.map +1 -1
- package/dist/esm/sdk/captures.d.ts +15 -0
- package/dist/esm/sdk/captures.d.ts.map +1 -0
- package/dist/esm/sdk/captures.js +18 -0
- package/dist/esm/sdk/captures.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +2 -2
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +3 -3
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/system.d.ts +3 -0
- package/dist/esm/sdk/system.d.ts.map +1 -1
- package/dist/esm/sdk/system.js +4 -0
- package/dist/esm/sdk/system.js.map +1 -1
- package/examples/auth.ts +2 -3
- package/examples/example-cloud-auth.ts +13 -13
- package/examples/example-cloud-search-packs-lake.ts +2 -2
- package/examples/example-cloud-worker-group.ts +6 -6
- package/examples/example-edge.ts +5 -6
- package/examples/example-onprem-auth.ts +57 -21
- package/examples/example-packs.ts +5 -6
- package/examples/example-stream.ts +5 -6
- package/examples/example-worker-group-replication.ts +2 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/systemCapturesGet.ts +192 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/jsonl.ts +127 -0
- package/src/models/capturelevel.ts +22 -0
- package/src/models/captureparams.ts +46 -0
- package/src/models/criblevent.ts +2 -5
- package/src/models/functionconfschemaaggregatemetrics.ts +8 -8
- package/src/models/functionconfschemaaggregation.ts +8 -8
- package/src/models/functionconfschemacef.ts +1 -1
- package/src/models/functionconfschemadistinct.ts +3 -3
- package/src/models/functionconfschemadnslookup.ts +16 -32
- package/src/models/functionconfschemadropdimensions.ts +2 -2
- package/src/models/functionconfschemadynamicsampling.ts +5 -5
- package/src/models/functionconfschemaeventbreaker.ts +2 -2
- package/src/models/functionconfschemaeventstats.ts +2 -2
- package/src/models/functionconfschemageoip.ts +2 -2
- package/src/models/functionconfschemagrok.ts +1 -1
- package/src/models/functionconfschemahandlebars.ts +4 -4
- package/src/models/functionconfschemalakeexport.ts +3 -3
- package/src/models/functionconfschemalookup.ts +2 -2
- package/src/models/functionconfschemamask.ts +3 -3
- package/src/models/functionconfschemamvexpand.ts +2 -2
- package/src/models/functionconfschemamvpull.ts +2 -2
- package/src/models/functionconfschemanotify.ts +4 -4
- package/src/models/functionconfschemapack.ts +1 -1
- package/src/models/functionconfschemaredis.ts +3 -3
- package/src/models/functionconfschemaregexextract.ts +3 -3
- package/src/models/functionconfschemasend.ts +4 -4
- package/src/models/functionconfschemasensitivedatascanner.ts +4 -4
- package/src/models/functionconfschemaserde.ts +3 -3
- package/src/models/functionconfschemaserialize.ts +2 -2
- package/src/models/functionconfschemastore.ts +7 -7
- package/src/models/functionconfschemasuppress.ts +6 -6
- package/src/models/functionconfschematee.ts +1 -1
- package/src/models/functionconfschemaunroll.ts +2 -2
- package/src/models/functionconfschemawindow.ts +2 -2
- package/src/models/functionconfschemaxmlunroll.ts +2 -2
- package/src/models/index.ts +2 -0
- package/src/models/operations/getfunctionresponsebyid.ts +36 -0
- package/src/models/pipeline.ts +1 -1
- package/src/models/pipelinefunctioncef.ts +1 -1
- package/src/models/routes.ts +6 -22
- package/src/models/routesroute.ts +15 -31
- package/src/models/runnablejobcollection.ts +37 -37
- package/src/models/runnablejobexecutor.ts +21 -21
- package/src/models/runnablejobscheduledsearch.ts +16 -16
- package/src/sdk/captures.ts +28 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/system.ts +6 -0
package/src/lib/config.ts
CHANGED
|
@@ -61,9 +61,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
|
-
openapiDocVersion: "4.16.0-alpha.
|
|
65
|
-
sdkVersion: "0.5.0-
|
|
66
|
-
genVersion: "2.
|
|
64
|
+
openapiDocVersion: "4.16.0-alpha.1767808351351-326f0624",
|
|
65
|
+
sdkVersion: "0.5.0-rc.10",
|
|
66
|
+
genVersion: "2.791.1",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/typescript 0.5.0-
|
|
68
|
+
"speakeasy-sdk/typescript 0.5.0-rc.10 2.791.1 4.16.0-alpha.1767808351351-326f0624 cribl-control-plane",
|
|
69
69
|
} as const;
|
package/src/lib/jsonl.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
const LF = 0x0a;
|
|
6
|
+
const CR = 0x0d;
|
|
7
|
+
const RIGHT_BRACE = 0x7d;
|
|
8
|
+
const MESSAGE_BOUNDARIES = [
|
|
9
|
+
new Uint8Array([RIGHT_BRACE, CR, LF]),
|
|
10
|
+
new Uint8Array([RIGHT_BRACE, LF]),
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export class JsonLStream<Event> {
|
|
14
|
+
private readonly stream: ReadableStream<Uint8Array>;
|
|
15
|
+
private readonly decoder: (rawEvent: string) => Event;
|
|
16
|
+
|
|
17
|
+
constructor(init: {
|
|
18
|
+
stream: ReadableStream<Uint8Array>;
|
|
19
|
+
decoder: (rawEvent: string) => Event;
|
|
20
|
+
}) {
|
|
21
|
+
this.stream = init.stream;
|
|
22
|
+
this.decoder = init.decoder;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Event, void, unknown> {
|
|
26
|
+
const reader = this.stream.getReader();
|
|
27
|
+
let buffer = new Uint8Array([]);
|
|
28
|
+
let position = 0;
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
while (true) {
|
|
32
|
+
const { done, value } = await reader.read();
|
|
33
|
+
if (done) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const newBuffer = new Uint8Array(buffer.length + value.length);
|
|
38
|
+
newBuffer.set(buffer);
|
|
39
|
+
newBuffer.set(value, buffer.length);
|
|
40
|
+
buffer = newBuffer;
|
|
41
|
+
|
|
42
|
+
for (let i = position; i < buffer.length; i++) {
|
|
43
|
+
const boundary = findBoundary(buffer, i);
|
|
44
|
+
if (boundary == null) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const chunk = buffer.slice(position, i + 1);
|
|
49
|
+
position = i + boundary.length;
|
|
50
|
+
const event = parseEvent(chunk, this.decoder);
|
|
51
|
+
if (event != null) {
|
|
52
|
+
yield event;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (position > 0) {
|
|
57
|
+
buffer = buffer.slice(position);
|
|
58
|
+
position = 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (buffer.length > 0) {
|
|
63
|
+
const event = parseEvent(buffer, this.decoder);
|
|
64
|
+
if (event != null) {
|
|
65
|
+
yield event;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} catch (e: unknown) {
|
|
69
|
+
if (e instanceof Error && e.name === "AbortError") {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
throw e;
|
|
74
|
+
} finally {
|
|
75
|
+
reader.releaseLock();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function findBoundary(buffer: Uint8Array, start: number): Uint8Array | null {
|
|
81
|
+
for (const s of MESSAGE_BOUNDARIES) {
|
|
82
|
+
const seq = peekSequence(start, buffer, s);
|
|
83
|
+
if (seq != null) {
|
|
84
|
+
return seq;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function peekSequence(
|
|
92
|
+
position: number,
|
|
93
|
+
buffer: Uint8Array,
|
|
94
|
+
sequence: Uint8Array,
|
|
95
|
+
): Uint8Array | null {
|
|
96
|
+
if (sequence.length > buffer.length - position) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
for (let i = 0; i < sequence.length; i++) {
|
|
101
|
+
if (buffer[position + i] !== sequence[i]) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return sequence;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function parseEvent<Event>(
|
|
110
|
+
chunk: Uint8Array,
|
|
111
|
+
decoder: (rawEvent: string) => Event,
|
|
112
|
+
) {
|
|
113
|
+
if (!chunk.length) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const td = new TextDecoder();
|
|
118
|
+
const raw = td.decode(chunk);
|
|
119
|
+
|
|
120
|
+
try {
|
|
121
|
+
const parsed = JSON.parse(raw);
|
|
122
|
+
return decoder(parsed);
|
|
123
|
+
} catch (e) {
|
|
124
|
+
console.error("Error parsing JSON:", e);
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const CaptureLevel = {
|
|
10
|
+
Zero: 0,
|
|
11
|
+
One: 1,
|
|
12
|
+
Two: 2,
|
|
13
|
+
Three: 3,
|
|
14
|
+
} as const;
|
|
15
|
+
export type CaptureLevel = OpenEnum<typeof CaptureLevel>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CaptureLevel$outboundSchema: z.ZodType<
|
|
19
|
+
number,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
CaptureLevel
|
|
22
|
+
> = openEnums.outboundSchemaInt(CaptureLevel);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { CaptureLevel, CaptureLevel$outboundSchema } from "./capturelevel.js";
|
|
7
|
+
|
|
8
|
+
export type CaptureParams = {
|
|
9
|
+
duration: number;
|
|
10
|
+
filter: string;
|
|
11
|
+
level: CaptureLevel;
|
|
12
|
+
maxEvents: number;
|
|
13
|
+
stepDuration?: number | undefined;
|
|
14
|
+
workerId?: string | undefined;
|
|
15
|
+
workerThreshold?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type CaptureParams$Outbound = {
|
|
20
|
+
duration: number;
|
|
21
|
+
filter: string;
|
|
22
|
+
level: number;
|
|
23
|
+
maxEvents: number;
|
|
24
|
+
stepDuration?: number | undefined;
|
|
25
|
+
workerId?: string | undefined;
|
|
26
|
+
workerThreshold?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const CaptureParams$outboundSchema: z.ZodType<
|
|
31
|
+
CaptureParams$Outbound,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
CaptureParams
|
|
34
|
+
> = z.object({
|
|
35
|
+
duration: z.number(),
|
|
36
|
+
filter: z.string(),
|
|
37
|
+
level: CaptureLevel$outboundSchema,
|
|
38
|
+
maxEvents: z.number(),
|
|
39
|
+
stepDuration: z.number().optional(),
|
|
40
|
+
workerId: z.string().optional(),
|
|
41
|
+
workerThreshold: z.number().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function captureParamsToJSON(captureParams: CaptureParams): string {
|
|
45
|
+
return JSON.stringify(CaptureParams$outboundSchema.parse(captureParams));
|
|
46
|
+
}
|
package/src/models/criblevent.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
|
|
8
8
|
export type CriblEvent = {
|
|
9
9
|
raw: string;
|
|
10
|
-
additionalProperties
|
|
10
|
+
[additionalProperties: string]: unknown;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/** @internal */
|
|
@@ -23,13 +23,10 @@ export const CriblEvent$outboundSchema: z.ZodType<
|
|
|
23
23
|
CriblEvent
|
|
24
24
|
> = z.object({
|
|
25
25
|
raw: z.string(),
|
|
26
|
-
|
|
27
|
-
}).transform((v) => {
|
|
26
|
+
}).catchall(z.any()).transform((v) => {
|
|
28
27
|
return {
|
|
29
|
-
...v.additionalProperties,
|
|
30
28
|
...remap$(v, {
|
|
31
29
|
raw: "_raw",
|
|
32
|
-
additionalProperties: null,
|
|
33
30
|
}),
|
|
34
31
|
};
|
|
35
32
|
});
|
|
@@ -32,7 +32,7 @@ export type FunctionConfSchemaAggregateMetricsAggregation = {
|
|
|
32
32
|
/**
|
|
33
33
|
* The output metric type
|
|
34
34
|
*/
|
|
35
|
-
metricType
|
|
35
|
+
metricType: FunctionConfSchemaAggregateMetricsMetricType;
|
|
36
36
|
/**
|
|
37
37
|
* Aggregate function to perform on events. Example: sum(bytes).where(action=='REJECT').as(TotalBytes)
|
|
38
38
|
*/
|
|
@@ -51,15 +51,15 @@ export type FunctionConfSchemaAggregateMetrics = {
|
|
|
51
51
|
/**
|
|
52
52
|
* Pass through the original events along with the aggregation events
|
|
53
53
|
*/
|
|
54
|
-
passthrough
|
|
54
|
+
passthrough: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Preserve the structure of the original aggregation event's groupby fields
|
|
57
57
|
*/
|
|
58
|
-
preserveGroupBys
|
|
58
|
+
preserveGroupBys: boolean;
|
|
59
59
|
/**
|
|
60
60
|
* Output only statistics that are sufficient for the supplied aggregations
|
|
61
61
|
*/
|
|
62
|
-
sufficientStatsOnly
|
|
62
|
+
sufficientStatsOnly: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* A prefix that is prepended to all of the fields output by this Aggregations Function
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ export type FunctionConfSchemaAggregateMetrics = {
|
|
|
67
67
|
/**
|
|
68
68
|
* The time span of the tumbling window for aggregating events. Must be a valid time string (such as 10s).
|
|
69
69
|
*/
|
|
70
|
-
timeWindow
|
|
70
|
+
timeWindow: string;
|
|
71
71
|
/**
|
|
72
72
|
* Combination of Aggregation function and output metric type
|
|
73
73
|
*/
|
|
@@ -89,11 +89,11 @@ export type FunctionConfSchemaAggregateMetrics = {
|
|
|
89
89
|
/**
|
|
90
90
|
* Enable to retain aggregations for cumulative aggregations when flushing out an aggregation table event. When disabled (the default), aggregations are reset to 0 on flush.
|
|
91
91
|
*/
|
|
92
|
-
cumulative
|
|
92
|
+
cumulative: boolean;
|
|
93
93
|
/**
|
|
94
94
|
* Treat dots in dimension names as literals. This is useful for top-level dimensions that contain dots, such as 'service.name'.
|
|
95
95
|
*/
|
|
96
|
-
shouldTreatDotsAsLiterals
|
|
96
|
+
shouldTreatDotsAsLiterals: boolean;
|
|
97
97
|
/**
|
|
98
98
|
* Set of key-value pairs to evaluate and add/set
|
|
99
99
|
*/
|
|
@@ -101,7 +101,7 @@ export type FunctionConfSchemaAggregateMetrics = {
|
|
|
101
101
|
/**
|
|
102
102
|
* Flush aggregations when an input stream is closed. If disabled, Time Window Settings control flush behavior.
|
|
103
103
|
*/
|
|
104
|
-
flushOnInputClose
|
|
104
|
+
flushOnInputClose: boolean;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/** @internal */
|
|
@@ -19,19 +19,19 @@ export type FunctionConfSchemaAggregation = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Pass through the original events along with the aggregation events
|
|
21
21
|
*/
|
|
22
|
-
passthrough
|
|
22
|
+
passthrough: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Preserve the structure of the original aggregation event's groupby fields
|
|
25
25
|
*/
|
|
26
|
-
preserveGroupBys
|
|
26
|
+
preserveGroupBys: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Output only statistics that are sufficient for the supplied aggregations
|
|
29
29
|
*/
|
|
30
|
-
sufficientStatsOnly
|
|
30
|
+
sufficientStatsOnly: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* Enable to output the aggregates as metrics. When disabled, aggregates are output as events.
|
|
33
33
|
*/
|
|
34
|
-
metricsMode
|
|
34
|
+
metricsMode: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* A prefix that is prepended to all of the fields output by this Aggregations Function
|
|
37
37
|
*/
|
|
@@ -39,7 +39,7 @@ export type FunctionConfSchemaAggregation = {
|
|
|
39
39
|
/**
|
|
40
40
|
* The time span of the tumbling window for aggregating events. Must be a valid time string (such as 10s).
|
|
41
41
|
*/
|
|
42
|
-
timeWindow
|
|
42
|
+
timeWindow: string;
|
|
43
43
|
/**
|
|
44
44
|
* Aggregate function to perform on events. Example: sum(bytes).where(action=='REJECT').as(TotalBytes)
|
|
45
45
|
*/
|
|
@@ -59,7 +59,7 @@ export type FunctionConfSchemaAggregation = {
|
|
|
59
59
|
/**
|
|
60
60
|
* Enable to retain aggregations for cumulative aggregations when flushing out an aggregation table event. When disabled (the default), aggregations are reset to 0 on flush.
|
|
61
61
|
*/
|
|
62
|
-
cumulative
|
|
62
|
+
cumulative: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* Allows Cribl Search-specific aggregation configuration
|
|
65
65
|
*/
|
|
@@ -71,11 +71,11 @@ export type FunctionConfSchemaAggregation = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Treat dots in dimension names as literals. This is useful for top-level dimensions that contain dots, such as 'service.name'.
|
|
73
73
|
*/
|
|
74
|
-
shouldTreatDotsAsLiterals
|
|
74
|
+
shouldTreatDotsAsLiterals: boolean;
|
|
75
75
|
/**
|
|
76
76
|
* Flush aggregations when an input stream is closed. If disabled, Time Window Settings control flush behavior.
|
|
77
77
|
*/
|
|
78
|
-
flushOnInputClose
|
|
78
|
+
flushOnInputClose: boolean;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
/** @internal */
|
|
@@ -15,15 +15,15 @@ export type FunctionConfSchemaDistinct = {
|
|
|
15
15
|
/**
|
|
16
16
|
* maximum number of tracked combinations
|
|
17
17
|
*/
|
|
18
|
-
maxCombinations
|
|
18
|
+
maxCombinations: number;
|
|
19
19
|
/**
|
|
20
20
|
* maximum number of groupBy properties
|
|
21
21
|
*/
|
|
22
|
-
maxDepth
|
|
22
|
+
maxDepth: number;
|
|
23
23
|
/**
|
|
24
24
|
* indicator that the operator runs on a federated executor
|
|
25
25
|
*/
|
|
26
|
-
isFederated
|
|
26
|
+
isFederated: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Toggle this on to suppress generating previews of intermediate results
|
|
29
29
|
*/
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
collectExtraKeys as collectExtraKeys$,
|
|
9
|
-
safeParse,
|
|
10
|
-
} from "../lib/schemas.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
7
|
import * as openEnums from "../types/enums.js";
|
|
12
8
|
import { OpenEnum } from "../types/enums.js";
|
|
13
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
@@ -150,7 +146,7 @@ export type FunctionConfSchemaDnsLookup = {
|
|
|
150
146
|
*/
|
|
151
147
|
domainOverrides?: Array<string> | undefined;
|
|
152
148
|
lookupFailLogLevel?: LogLevelForFailedLookups | undefined;
|
|
153
|
-
additionalProperties
|
|
149
|
+
[additionalProperties: string]: unknown;
|
|
154
150
|
};
|
|
155
151
|
|
|
156
152
|
/** @internal */
|
|
@@ -267,23 +263,19 @@ export const FunctionConfSchemaDnsLookup$inboundSchema: z.ZodType<
|
|
|
267
263
|
FunctionConfSchemaDnsLookup,
|
|
268
264
|
z.ZodTypeDef,
|
|
269
265
|
unknown
|
|
270
|
-
> =
|
|
271
|
-
z.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}).catchall(z.any()),
|
|
284
|
-
"additionalProperties",
|
|
285
|
-
true,
|
|
286
|
-
);
|
|
266
|
+
> = z.object({
|
|
267
|
+
dnsLookupFields: z.array(z.lazy(() => DnsLookupField$inboundSchema))
|
|
268
|
+
.optional(),
|
|
269
|
+
reverseLookupFields: z.array(z.lazy(() => ReverseLookupField$inboundSchema))
|
|
270
|
+
.optional(),
|
|
271
|
+
dnsServers: z.array(z.string()).optional(),
|
|
272
|
+
cacheTTL: z.number().default(30),
|
|
273
|
+
maxCacheSize: z.number().default(5000),
|
|
274
|
+
useResolvConf: z.boolean().default(false),
|
|
275
|
+
lookupFallback: z.boolean().default(false),
|
|
276
|
+
domainOverrides: z.array(z.string()).optional(),
|
|
277
|
+
lookupFailLogLevel: LogLevelForFailedLookups$inboundSchema.default("error"),
|
|
278
|
+
}).catchall(z.any());
|
|
287
279
|
/** @internal */
|
|
288
280
|
export type FunctionConfSchemaDnsLookup$Outbound = {
|
|
289
281
|
dnsLookupFields?: Array<DnsLookupField$Outbound> | undefined;
|
|
@@ -315,15 +307,7 @@ export const FunctionConfSchemaDnsLookup$outboundSchema: z.ZodType<
|
|
|
315
307
|
lookupFallback: z.boolean().default(false),
|
|
316
308
|
domainOverrides: z.array(z.string()).optional(),
|
|
317
309
|
lookupFailLogLevel: LogLevelForFailedLookups$outboundSchema.default("error"),
|
|
318
|
-
|
|
319
|
-
}).transform((v) => {
|
|
320
|
-
return {
|
|
321
|
-
...v.additionalProperties,
|
|
322
|
-
...remap$(v, {
|
|
323
|
-
additionalProperties: null,
|
|
324
|
-
}),
|
|
325
|
-
};
|
|
326
|
-
});
|
|
310
|
+
}).catchall(z.any());
|
|
327
311
|
|
|
328
312
|
export function functionConfSchemaDnsLookupToJSON(
|
|
329
313
|
functionConfSchemaDnsLookup: FunctionConfSchemaDnsLookup,
|
|
@@ -11,7 +11,7 @@ export type FunctionConfSchemaDropDimensions = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The time span of the tumbling window for aggregating events. Must be a valid time string (such as 10s).
|
|
13
13
|
*/
|
|
14
|
-
timeWindow
|
|
14
|
+
timeWindow: string;
|
|
15
15
|
/**
|
|
16
16
|
* One or more dimensions to be dropped. Supports wildcard expressions. Warning: Using wildcard '*' causes all dimensions in the event to be dropped.
|
|
17
17
|
*/
|
|
@@ -19,7 +19,7 @@ export type FunctionConfSchemaDropDimensions = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Flush aggregations when an input stream is closed. If disabled, aggregations are flushed based on Time Window Settings instead.
|
|
21
21
|
*/
|
|
22
|
-
flushOnInputClose
|
|
22
|
+
flushOnInputClose: boolean;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
@@ -33,23 +33,23 @@ export type FunctionConfSchemaDynamicSampling = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Defines how sample rate will be derived: log(previousPeriodCount) or sqrt(previousPeriodCount)
|
|
35
35
|
*/
|
|
36
|
-
mode
|
|
36
|
+
mode: FunctionConfSchemaDynamicSamplingSampleMode;
|
|
37
37
|
/**
|
|
38
38
|
* Expression used to derive sample group key. Example:`${domain}:${status}`. Each sample group will have its own derived sampling rate based on volume. Defaults to `${host}`.
|
|
39
39
|
*/
|
|
40
|
-
keyExpr
|
|
40
|
+
keyExpr: string;
|
|
41
41
|
/**
|
|
42
42
|
* How often (in seconds) sample rates will be adjusted
|
|
43
43
|
*/
|
|
44
|
-
samplePeriod
|
|
44
|
+
samplePeriod: number;
|
|
45
45
|
/**
|
|
46
46
|
* Minimum number of events that must be received in previous sample period for sampling mode to be applied to current period. If the number of events received for a sample group is less than this minimum, a sample rate of 1:1 is used.
|
|
47
47
|
*/
|
|
48
|
-
minEvents
|
|
48
|
+
minEvents: number;
|
|
49
49
|
/**
|
|
50
50
|
* Maximum sampling rate. If computed sampling rate is above this value, it will be limited to this value.
|
|
51
51
|
*/
|
|
52
|
-
maxSampleRate
|
|
52
|
+
maxSampleRate: number;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/** @internal */
|
|
@@ -24,11 +24,11 @@ export type FunctionConfSchemaEventBreakerExistingOrNew = OpenEnum<
|
|
|
24
24
|
>;
|
|
25
25
|
|
|
26
26
|
export type FunctionConfSchemaEventBreaker = {
|
|
27
|
-
existingOrNew
|
|
27
|
+
existingOrNew: FunctionConfSchemaEventBreakerExistingOrNew;
|
|
28
28
|
/**
|
|
29
29
|
* Add this Function name to the cribl_breaker field
|
|
30
30
|
*/
|
|
31
|
-
shouldMarkCriblBreaker
|
|
31
|
+
shouldMarkCriblBreaker: boolean;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
@@ -19,11 +19,11 @@ export type FunctionConfSchemaEventstats = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Specifies how many events are at max kept in memory to be enriched with aggregations
|
|
21
21
|
*/
|
|
22
|
-
maxEvents
|
|
22
|
+
maxEvents: number;
|
|
23
23
|
/**
|
|
24
24
|
* Determines if aggregations should flush when an input stream is closed. If disabled, time window settings will control flush behavior.
|
|
25
25
|
*/
|
|
26
|
-
flushOnInputClose
|
|
26
|
+
flushOnInputClose: boolean;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/** @internal */
|
|
@@ -31,11 +31,11 @@ export type FunctionConfSchemaGeoip = {
|
|
|
31
31
|
/**
|
|
32
32
|
* Field name in which to find an IP to look up. Can be nested.
|
|
33
33
|
*/
|
|
34
|
-
inField
|
|
34
|
+
inField: string;
|
|
35
35
|
/**
|
|
36
36
|
* Field name in which to store the GeoIP lookup results
|
|
37
37
|
*/
|
|
38
|
-
outField
|
|
38
|
+
outField: string;
|
|
39
39
|
additionalFields?: Array<FunctionConfSchemaGeoipAdditionalField> | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* Search-specific mappings for granular control over event enrichment
|
|
@@ -23,7 +23,7 @@ export type FunctionConfSchemaHandlebarsTemplateDefinition = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Type categorization for the template (e.g., Universal, Email, Slack)
|
|
25
25
|
*/
|
|
26
|
-
type
|
|
26
|
+
type: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type FunctionConfSchemaHandlebars = {
|
|
@@ -34,15 +34,15 @@ export type FunctionConfSchemaHandlebars = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Field name to store the rendered template result. Defaults to _raw.
|
|
36
36
|
*/
|
|
37
|
-
targetField
|
|
37
|
+
targetField: string;
|
|
38
38
|
/**
|
|
39
39
|
* Parse the rendered template as JSON and store as an object instead of a string. Useful for building structured data like Slack blocks.
|
|
40
40
|
*/
|
|
41
|
-
parseJson
|
|
41
|
+
parseJson: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Remove the target field if the rendered result is empty or null.
|
|
44
44
|
*/
|
|
45
|
-
removeOnNull
|
|
45
|
+
removeOnNull: boolean;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
@@ -19,15 +19,15 @@ export type FunctionConfSchemaLakeExport = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Name of the lake
|
|
21
21
|
*/
|
|
22
|
-
lake
|
|
22
|
+
lake: string;
|
|
23
23
|
/**
|
|
24
24
|
* Tee results to search. When set to true results will be shipped instead of stats
|
|
25
25
|
*/
|
|
26
|
-
tee
|
|
26
|
+
tee: string;
|
|
27
27
|
/**
|
|
28
28
|
* How often are stats flushed in ms
|
|
29
29
|
*/
|
|
30
|
-
flushMs
|
|
30
|
+
flushMs: number;
|
|
31
31
|
/**
|
|
32
32
|
* Disables generation of intermediate stats. When true stats will be emitted only on end
|
|
33
33
|
*/
|
|
@@ -41,7 +41,7 @@ export type FunctionConfSchemaLookup = {
|
|
|
41
41
|
/**
|
|
42
42
|
* Enable to use a disk-based lookup. This option displays only the settings relevant to disk-based mode and hides those for in-memory lookups.
|
|
43
43
|
*/
|
|
44
|
-
dbLookup
|
|
44
|
+
dbLookup: boolean;
|
|
45
45
|
matchMode?: any | undefined;
|
|
46
46
|
matchType?: any | undefined;
|
|
47
47
|
reloadPeriodSec?: any | undefined;
|
|
@@ -56,7 +56,7 @@ export type FunctionConfSchemaLookup = {
|
|
|
56
56
|
/**
|
|
57
57
|
* Add the looked-up values to _raw, as key=value pairs
|
|
58
58
|
*/
|
|
59
|
-
addToEvent
|
|
59
|
+
addToEvent: boolean;
|
|
60
60
|
ignoreCase?: any | undefined;
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -15,11 +15,11 @@ export type FunctionConfSchemaMaskRule = {
|
|
|
15
15
|
/**
|
|
16
16
|
* A JavaScript expression or literal to replace the matching content. Capturing groups can be referenced as g1, g2, and so on, and event fields as event.<fieldName>.
|
|
17
17
|
*/
|
|
18
|
-
replaceExpr
|
|
18
|
+
replaceExpr: string;
|
|
19
19
|
/**
|
|
20
20
|
* Set to No to disable the evaluation of an individual rule
|
|
21
21
|
*/
|
|
22
|
-
disabled
|
|
22
|
+
disabled: boolean;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export type FunctionConfSchemaMaskFlag = {
|
|
@@ -39,7 +39,7 @@ export type FunctionConfSchemaMask = {
|
|
|
39
39
|
/**
|
|
40
40
|
* Depth to which the Mask Function will search for fields to mask
|
|
41
41
|
*/
|
|
42
|
-
depth
|
|
42
|
+
depth: number;
|
|
43
43
|
/**
|
|
44
44
|
* Fields to evaluate if one or more masking rules are matched
|
|
45
45
|
*/
|
|
@@ -41,7 +41,7 @@ export type FunctionConfSchemaMvExpand = {
|
|
|
41
41
|
/**
|
|
42
42
|
* max. number of rows generated out of every source events
|
|
43
43
|
*/
|
|
44
|
-
rowLimit
|
|
44
|
+
rowLimit: number;
|
|
45
45
|
/**
|
|
46
46
|
* name of an optional index property generated into the output
|
|
47
47
|
*/
|
|
@@ -49,7 +49,7 @@ export type FunctionConfSchemaMvExpand = {
|
|
|
49
49
|
/**
|
|
50
50
|
* decides if bag-values are expanded to bags or arrays
|
|
51
51
|
*/
|
|
52
|
-
bagExpansionMode
|
|
52
|
+
bagExpansionMode: FunctionConfSchemaMvExpandBagExpansionMode;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
/** @internal */
|