Skip to content

Commit

Permalink
fix appContextValue for log threshold embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Oct 1, 2024
1 parent d3a7e1e commit 0164ab1
Showing 1 changed file with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,31 +207,33 @@ export const LogRateAnalysis: FC<AlertDetailsLogRateAnalysisSectionProps> = ({ r
</EuiFlexItem>
<EuiFlexItem>
<LogRateAnalysisContent
embeddingOrigin="observability_log_threshold_alert_details"
dataView={dataView}
timeRange={timeRange}
esSearchQuery={esSearchQuery}
initialAnalysisStart={windowParameters}
barColorOverride={colorTransformer(Color.color0)}
barHighlightColorOverride={colorTransformer(Color.color1)}
onAnalysisCompleted={onAnalysisCompleted}
appDependencies={pick(services, [
'analytics',
'application',
'data',
'executionContext',
'charts',
'fieldFormats',
'http',
'notifications',
'share',
'storage',
'uiSettings',
'unifiedSearch',
'theme',
'lens',
'i18n',
])}
appContextValue={{
embeddingOrigin: 'observability_log_threshold_alert_details',
...pick(services, [
'analytics',
'application',
'data',
'executionContext',
'charts',
'fieldFormats',
'http',
'notifications',
'share',
'storage',
'uiSettings',
'unifiedSearch',
'theme',
'lens',
'i18n',
]),
}}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit 0164ab1

Please sign in to comment.