Skip to content

Commit 30d6253

Browse files
juandagrJuan Galarza
andauthored
ENG-56184 - adding on demand endpoint to iris v3 client (#835)
Co-authored-by: Juan Galarza <[email protected]>
1 parent 6b8f225 commit 30d6253

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/iris/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@al/iris",
3-
"version": "2.0.87",
3+
"version": "2.0.88",
44
"license": "MIT",
55
"description": "A client for interacting with the Alert Logic Iris Public API",
66
"author": {

packages/iris/src/al-iris-client-v3.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,22 @@ export class AlIrisClientV3Instance extends AlIrisClientInstance {
12961296
});
12971297
}
12981298

1299+
/**
1300+
* this endpoint enable Customers/Analysts to request Enrichment of a specific type “on-demand”
1301+
* GET
1302+
* /iris/v3/on_demand_enrichment/<enrichment_type>/<value>
1303+
* @param enrichment_type
1304+
* @param value
1305+
*/
1306+
public getEnrichmentOnDemand(enrichmentType: string, value: string): Promise<unknown> {
1307+
return this.client.get<any[]>({
1308+
service_stack: AlLocation.InsightAPI,
1309+
service_name: this.serviceName,
1310+
version: this.serviceVersion,
1311+
path: `on_demand_enrichment/${enrichmentType}/${value}`,
1312+
});
1313+
}
1314+
12991315
/**
13001316
* The latest evidence functionality allows for an incident generated from a Real Time Analytic (RTA) to be queried for data for up to 24hrs after the incident was created.
13011317
* Return an object with the request status

packages/iris/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export interface MetaDataDictionary {
3636
"incident-history-types":{ [i:string]:string };
3737
"log-types":{ [i:string]:string };
3838
"sourceMap":{ [i:string]:string };
39+
"enrichment_type":{ [i:string]:string };
3940
}
4041

4142
/**

0 commit comments

Comments
 (0)