@@ -33,13 +33,13 @@ type AlertmanagerNotification struct {
3333
3434// AlertmanagerOptions cluster configuration
3535type AlertmanagerOptions struct {
36- Targets [] string `json:"targets"`
37- Scheme string `json:"scheme"`
38- APIPath string `json:"apiPath"`
39- BasicAuth * BasicAuth `json:"basicAuth"`
40- BearerToken string `json:"bearerToken"`
41- InsecureSkipVerify bool `json:"insecureSkipVerify "`
42- Timeout int `json:"timeout"`
36+ Targets [] string `json:"targets"`
37+ Scheme string `json:"scheme"`
38+ APIPath string `json:"apiPath"`
39+ BasicAuth * BasicAuth `json:"basicAuth"`
40+ BearerToken string `json:"bearerToken"`
41+ Transport httputil. HTTPTransportSettings `json:"transport "`
42+ Timeout int `json:"timeout"`
4343}
4444
4545// NewAlertmanagerService new service
@@ -207,7 +207,7 @@ func (s alertmanagerService) Send(notification Notification, dest Destination) e
207207func (s alertmanagerService ) sendOneTarget (ctx context.Context , target string , rawBody []byte ) error {
208208 rawURL := fmt .Sprintf ("%v://%v%v" , s .opts .Scheme , target , s .opts .APIPath )
209209
210- transport := httputil .NewTransport (rawURL , s .opts .InsecureSkipVerify )
210+ transport := httputil .NewTransport (rawURL , s .opts .Transport )
211211 client := & http.Client {
212212 Transport : httputil .NewLoggingRoundTripper (transport , s .entry ),
213213 }
0 commit comments