Skip to content

Commit

Permalink
Modified url and the struct
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <[email protected]>
  • Loading branch information
ADI-ROXX committed Jan 28, 2025
1 parent dc642b0 commit 61e5f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jaeger-ui/src/api/jaeger.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const JaegerAPI = {
return getJSON(`${this.apiRoot}dependencies`, { query: { endTs, lookback } });
},
fetchQualityMetrics(service, hours) {
return getJSON(`/qualitymetrics-v2`, { query: { hours, service } });
return getJSON(`/api/quality-metrics`, { query: { hours, service } });
},
fetchServiceOperations(serviceName) {
return getJSON(`${this.apiRoot}services/${encodeURIComponent(serviceName)}/operations`);
Expand Down
4 changes: 2 additions & 2 deletions packages/jaeger-ui/src/components/QualityMetrics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class UnconnectedQualityMetrics extends React.PureComponent<TProps, TStat
this.setState({ loading: true });

JaegerAPI.fetchQualityMetrics(service, lookback)
.then((qualityMetrics: TQualityMetrics) => {
this.setState({ qualityMetrics, loading: false });
.then((qualityMetrics: {data: TQualityMetrics}) => {
this.setState({ qualityMetrics: qualityMetrics.data, loading: false });
})
.catch((error: Error) => {
this.setState({
Expand Down

0 comments on commit 61e5f16

Please sign in to comment.