This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,14 @@ func sendUpdateMonitorStateRequest(
6969 restApiVersion , err = embedded .GetGalasactlRestApiVersion ()
7070
7171 if err == nil {
72- requestBody := * galasaapi .NewGalasaMonitor ()
73- monitorData := * galasaapi .NewGalasaMonitorData ()
72+ requestBody := * galasaapi .NewUpdateGalasaMonitorRequest ()
73+ monitorData := * galasaapi .NewUpdateGalasaMonitorRequestData ()
7474 monitorData .SetIsEnabled (isEnabled )
7575
7676 requestBody .SetData (monitorData )
7777
7878 httpResponse , err = apiClient .MonitorsAPIApi .SetMonitorStatus (context , monitorName ).
79- GalasaMonitor (requestBody ).
79+ UpdateGalasaMonitorRequest (requestBody ).
8080 ClientApiVersion (restApiVersion ).
8181 Execute ()
8282
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ import (
1818 "github.com/stretchr/testify/assert"
1919)
2020
21- func readMonitorRequestBody (req * http.Request ) galasaapi.GalasaMonitor {
22- var monitorUpdateRequest galasaapi.GalasaMonitor
21+ func readMonitorRequestBody (req * http.Request ) galasaapi.UpdateGalasaMonitorRequest {
22+ var monitorUpdateRequest galasaapi.UpdateGalasaMonitorRequest
2323 requestBodyBytes , _ := io .ReadAll (req .Body )
2424 defer req .Body .Close ()
2525
You can’t perform that action at this time.
0 commit comments