Skip to content

Commit

Permalink
APIGOV-29054 - fix for monitoring API call
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekschauhan committed Nov 6, 2024
1 parent 878c0ed commit f3e15b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/traceability/muleemitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (me *MuleEventEmitter) Start() error {

func (me *MuleEventEmitter) getMetrics(bootInfo *anypoint.MonitoringBootInfo, apiID, apiVersionID string, startTime, endTime time.Time) ([]anypoint.APIMonitoringMetric, error) {
if me.useMonitoringAPI {
return me.client.GetMonitoringArchive(apiID, startTime)
return me.client.GetMonitoringArchive(apiVersionID, startTime)
}

return me.client.GetMonitoringMetrics(bootInfo.Settings.DataSource.InfluxDB.Database, bootInfo.Settings.DataSource.InfluxDB.ID, apiID, apiVersionID, startTime, endTime)
Expand Down

0 comments on commit f3e15b1

Please sign in to comment.