File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import _ from 'lodash';
8
8
import { INDEX } from '../../utils/constants' ;
9
9
import { isIndexNotFoundError } from './utils/helpers' ;
10
10
import { MDSEnabledClientService } from './MDSEnabledClientService' ;
11
+ import { DEFAULT_HEADERS } from "./utils/constants" ;
11
12
12
13
export default class MonitorService extends MDSEnabledClientService {
13
14
createMonitor = async ( context , req , res ) => {
@@ -103,7 +104,7 @@ export default class MonitorService extends MDSEnabledClientService {
103
104
getMonitor = async ( context , req , res ) => {
104
105
try {
105
106
const { id } = req . params ;
106
- const params = { monitorId : id } ;
107
+ const params = { monitorId : id , headers : DEFAULT_HEADERS } ;
107
108
const client = this . getClientBasedOnDataSource ( context , req ) ;
108
109
const getResponse = await client ( 'alerting.getMonitor' , params ) ;
109
110
let monitor = _ . get ( getResponse , 'monitor' , null ) ;
You can’t perform that action at this time.
0 commit comments