Skip to content

Commit

Permalink
ENG-56184 - adding on demand endpoint to iris v3 client (#835)
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Galarza <[email protected]>
  • Loading branch information
juandagr and Juan Galarza authored Sep 3, 2024
1 parent 6b8f225 commit 30d6253
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/iris/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@al/iris",
"version": "2.0.87",
"version": "2.0.88",
"license": "MIT",
"description": "A client for interacting with the Alert Logic Iris Public API",
"author": {
Expand Down
16 changes: 16 additions & 0 deletions packages/iris/src/al-iris-client-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,22 @@ export class AlIrisClientV3Instance extends AlIrisClientInstance {
});
}

/**
* this endpoint enable Customers/Analysts to request Enrichment of a specific type “on-demand”
* GET
* /iris/v3/on_demand_enrichment/<enrichment_type>/<value>
* @param enrichment_type
* @param value
*/
public getEnrichmentOnDemand(enrichmentType: string, value: string): Promise<unknown> {
return this.client.get<any[]>({
service_stack: AlLocation.InsightAPI,
service_name: this.serviceName,
version: this.serviceVersion,
path: `on_demand_enrichment/${enrichmentType}/${value}`,
});
}

/**
* 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.
* Return an object with the request status
Expand Down
1 change: 1 addition & 0 deletions packages/iris/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface MetaDataDictionary {
"incident-history-types":{ [i:string]:string };
"log-types":{ [i:string]:string };
"sourceMap":{ [i:string]:string };
"enrichment_type":{ [i:string]:string };
}

/**
Expand Down

0 comments on commit 30d6253

Please sign in to comment.