Files
houston-be/pkg/monitoringService/ee_monitoring_service_client_interface.go
2024-11-12 16:24:06 +05:30

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"),
}
}