23 lines
683 B
Go
23 lines
683 B
Go
package monitoringService
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
"houston/contracts"
|
|
"houston/pkg/rest"
|
|
)
|
|
|
|
type EEMonitoringServiceClient interface {
|
|
TriggerSeverityUpdateWebhook(
|
|
incidentId uint, triggerredBy string, requestId string, oldSeverity, newSeverity contracts.SeverityInfo,
|
|
) error
|
|
}
|
|
|
|
func NewEEMonitoringServiceClient(client rest.HttpRestClient) EEMonitoringServiceClient {
|
|
return &EEMonitoringServiceClientImpl{
|
|
Client: client,
|
|
BaseURL: viper.GetString("EE_MONITORING_SERVICE_BASEURL"),
|
|
DefaultTimeout: viper.GetDuration("DEFAULT_EE_MONITORING_SERVICE_TIMEOUT"),
|
|
WebhookAPIPath: viper.GetString("EE_MONITORING_SERVICE_WEBHOOK_API_PATH"),
|
|
}
|
|
}
|