diff --git a/internal/api/filter-alerts.go b/internal/api/filter-alerts.go index f510ca1..3f39ca3 100644 --- a/internal/api/filter-alerts.go +++ b/internal/api/filter-alerts.go @@ -87,7 +87,7 @@ func (fa *FilterAlerts) Create(searchDomainName string, newFilterAlert *FilterAl newFilterAlert.Enabled, ownershipRunAsID, newFilterAlert.ThrottleField, - *newFilterAlert.ThrottleTimeSeconds, + newFilterAlert.ThrottleTimeSeconds, humiographql.QueryOwnershipType(newFilterAlert.QueryOwnershipType), ) if err != nil { diff --git a/internal/api/humiographql/graphql/filter-alerts.graphql b/internal/api/humiographql/graphql/filter-alerts.graphql index 6ced42a..44bdd93 100644 --- a/internal/api/humiographql/graphql/filter-alerts.graphql +++ b/internal/api/humiographql/graphql/filter-alerts.graphql @@ -39,7 +39,7 @@ mutation CreateFilterAlert( $Enabled: Boolean! $RunAsUserID: String $ThrottleField: String - $ThrottleTimeSeconds: Long! + $ThrottleTimeSeconds: Long $QueryOwnershipType: QueryOwnershipType! ) { createFilterAlert(input: { @@ -80,4 +80,4 @@ query GetFilterAlertByID( ...FilterAlertDetails } } -} \ No newline at end of file +} diff --git a/internal/api/humiographql/humiographql.go b/internal/api/humiographql/humiographql.go index ef69318..31c2962 100644 --- a/internal/api/humiographql/humiographql.go +++ b/internal/api/humiographql/humiographql.go @@ -15488,7 +15488,7 @@ type __CreateFilterAlertInput struct { Enabled bool `json:"Enabled"` RunAsUserID *string `json:"RunAsUserID"` ThrottleField *string `json:"ThrottleField"` - ThrottleTimeSeconds int64 `json:"ThrottleTimeSeconds"` + ThrottleTimeSeconds *int64 `json:"ThrottleTimeSeconds"` QueryOwnershipType QueryOwnershipType `json:"QueryOwnershipType"` } @@ -15520,7 +15520,7 @@ func (v *__CreateFilterAlertInput) GetRunAsUserID() *string { return v.RunAsUser func (v *__CreateFilterAlertInput) GetThrottleField() *string { return v.ThrottleField } // GetThrottleTimeSeconds returns __CreateFilterAlertInput.ThrottleTimeSeconds, and is useful for accessing the field via an interface. -func (v *__CreateFilterAlertInput) GetThrottleTimeSeconds() int64 { return v.ThrottleTimeSeconds } +func (v *__CreateFilterAlertInput) GetThrottleTimeSeconds() *int64 { return v.ThrottleTimeSeconds } // GetQueryOwnershipType returns __CreateFilterAlertInput.QueryOwnershipType, and is useful for accessing the field via an interface. func (v *__CreateFilterAlertInput) GetQueryOwnershipType() QueryOwnershipType { @@ -16942,7 +16942,7 @@ func CreateEmailAction( // The query or mutation executed by CreateFilterAlert. const CreateFilterAlert_Operation = ` -mutation CreateFilterAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long!, $QueryOwnershipType: QueryOwnershipType!) { +mutation CreateFilterAlert ($SearchDomainName: RepoOrViewName!, $Name: String!, $Description: String, $QueryString: String!, $ActionIdsOrNames: [String!]!, $Labels: [String!]!, $Enabled: Boolean!, $RunAsUserID: String, $ThrottleField: String, $ThrottleTimeSeconds: Long, $QueryOwnershipType: QueryOwnershipType!) { createFilterAlert(input: {viewName:$SearchDomainName,name:$Name,description:$Description,queryString:$QueryString,actionIdsOrNames:$ActionIdsOrNames,labels:$Labels,enabled:$Enabled,runAsUserId:$RunAsUserID,throttleField:$ThrottleField,throttleTimeSeconds:$ThrottleTimeSeconds,queryOwnershipType:$QueryOwnershipType}) { ... FilterAlertDetails } @@ -16982,7 +16982,7 @@ func CreateFilterAlert( Enabled bool, RunAsUserID *string, ThrottleField *string, - ThrottleTimeSeconds int64, + ThrottleTimeSeconds *int64, QueryOwnershipType QueryOwnershipType, ) (*CreateFilterAlertResponse, error) { req_ := &graphql.Request{