include port in update payload for port monitors
This commit is contained in:
1 parent
a750176037
commit
b7b6724ce5
1 file changed
+1
@@ -266,6 +266,7 @@ class NetworkService {
|
|||||||
matchMethod: monitor.matchMethod,
|
matchMethod: monitor.matchMethod,
|
||||||
expectedValue: monitor.expectedValue,
|
expectedValue: monitor.expectedValue,
|
||||||
jsonPath: monitor.jsonPath,
|
jsonPath: monitor.jsonPath,
|
||||||
|
...(monitor.type === "port" && { port: monitor.port }),
|
||||||
};
|
};
|
||||||
return this.axiosInstance.put(`/monitors/${monitorId}`, payload, {
|
return this.axiosInstance.put(`/monitors/${monitorId}`, payload, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in new issue
Block a user