Skip to content

Commit

Permalink
add spaceId to viewInAppUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi committed Nov 27, 2024
1 parent 5a5fecd commit bd6e2a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface GetViewInAppUrlArgs {
logsExplorerLocator?: LocatorPublic<LogsExplorerLocatorParams>;
metrics?: CustomThresholdExpressionMetric[];
startedAt?: string;
spaceId?: string;
}

export const getViewInAppUrl = ({
Expand All @@ -32,6 +33,7 @@ export const getViewInAppUrl = ({
metrics = [],
searchConfiguration,
startedAt = new Date().toISOString(),
spaceId,
}: GetViewInAppUrlArgs) => {
if (!logsExplorerLocator) return '';

Expand Down Expand Up @@ -60,6 +62,7 @@ export const getViewInAppUrl = ({
dataset,
timeRange,
query,
spaceId,
filters: [...searchConfigurationFilters, ...groupFilters],
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ export const createCustomThresholdExecutor = ({
metrics: alertResults.length === 1 ? alertResults[0][group].metrics : [],
searchConfiguration: params.searchConfiguration,
startedAt: indexedStartedAt,
spaceId,
}),
...additionalContext,
},
Expand Down

0 comments on commit bd6e2a4

Please sign in to comment.