Skip to content

Commit

Permalink
Cleanup unused graphql from generated client (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike authored Nov 20, 2024
1 parent 01dc02c commit 49273f4
Show file tree
Hide file tree
Showing 7 changed files with 4,357 additions and 8,108 deletions.
228 changes: 0 additions & 228 deletions internal/api/humiographql/graphql/actions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -105,234 +105,6 @@ mutation DeleteActionByID(
})
}

mutation UpdateEmailAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$Recipients: [String!]!
$SubjectTemplate: String
$BodyTemplate: String
$UseProxy: Boolean!
) {
updateEmailAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
recipients: $Recipients
subjectTemplate: $SubjectTemplate
bodyTemplate: $BodyTemplate
useProxy: $UseProxy
}) {
id
name
recipients
subjectTemplate
bodyTemplate
useProxy
}
}

mutation UpdateHumioRepoAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$IngestToken: String!
) {
updateHumioRepoAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
ingestToken: $IngestToken
}) {
id
name
ingestToken
}
}

mutation UpdateOpsGenieAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$ApiUrl: String!
$GenieKey: String!
$UseProxy: Boolean!
) {
updateOpsGenieAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
apiUrl: $ApiUrl
genieKey: $GenieKey
useProxy: $UseProxy
}) {
id
name
apiUrl
genieKey
useProxy
}
}

mutation UpdatePagerDutyAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$Severity: String!
$RoutingKey: String!
$UseProxy: Boolean!
) {
updatePagerDutyAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
severity: $Severity
routingKey: $RoutingKey
useProxy: $UseProxy
}) {
id
name
severity
routingKey
useProxy
}
}

mutation UpdateSlackAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$Fields: [SlackFieldEntryInput!]!
$Url: String!
$UseProxy: Boolean!
) {
updateSlackAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
fields: $Fields
url: $Url
useProxy: $UseProxy
}) {
id
name
fields {
value
fieldName
}
url
useProxy
}
}

mutation UpdateSlackPostMessageAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$ApiToken: String!
$Channels: [String!]!
$Fields: [SlackFieldEntryInput!]!
$UseProxy: Boolean!
) {
updateSlackPostMessageAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
apiToken: $ApiToken
channels: $Channels
fields: $Fields
useProxy: $UseProxy
}) {
id
name
apiToken
channels
fields {
value
fieldName
}
useProxy
}
}

mutation UpdateVictorOpsAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$MessageType: String!
$NotifyUrl: String!
$UseProxy: Boolean!
) {
updateVictorOpsAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
messageType: $MessageType
notifyUrl: $NotifyUrl
useProxy: $UseProxy
}) {
id
name
messageType
notifyUrl
useProxy
}
}

mutation UpdateUploadFileAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$FileName: String!
) {
updateUploadFileAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
fileName: $FileName
}) {
id
name
fileName
}
}

mutation UpdateWebhookAction(
$SearchDomainName: String!
$ActionID: String!
$ActionName: String!
$Url: String!
$Method: String!
$Headers: [HttpHeaderEntryInput!]!
$BodyTemplate: String!
$IgnoreSSL: Boolean!
$UseProxy: Boolean!
) {
updateWebhookAction(input: {
viewName: $SearchDomainName
id: $ActionID
name: $ActionName
url: $Url
method: $Method
headers: $Headers
bodyTemplate: $BodyTemplate
ignoreSSL: $IgnoreSSL
useProxy: $UseProxy
}) {
id
name
url
method
headers {
value
header
}
bodyTemplate
ignoreSSL
useProxy
}
}

mutation CreateEmailAction(
$SearchDomainName: String!
$ActionName: String!
Expand Down
38 changes: 0 additions & 38 deletions internal/api/humiographql/graphql/aggregate-alerts.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,44 +32,6 @@ query ListAggregateAlerts(
}
}

mutation UpdateAggregateAlert(
$SearchDomainName: RepoOrViewName!
$ID: String!
$Name: String!
$Description: String
$QueryString: String!
$SearchIntervalSeconds: Long!
$ActionIdsOrNames: [String!]!
$Labels: [String!]!
$Enabled: Boolean!
$RunAsUserID: String
$ThrottleField: String
$ThrottleTimeSeconds: Long!
$TriggerMode: TriggerMode!
$QueryTimestampMode: QueryTimestampType!
$QueryOwnershipType: QueryOwnershipType!
) {
updateAggregateAlert(input: {
viewName: $SearchDomainName
id: $ID
name: $Name
description: $Description
queryString: $QueryString
searchIntervalSeconds: $SearchIntervalSeconds
actionIdsOrNames: $ActionIdsOrNames
labels: $Labels
enabled: $Enabled
runAsUserId: $RunAsUserID
throttleField: $ThrottleField
throttleTimeSeconds: $ThrottleTimeSeconds
triggerMode: $TriggerMode
queryTimestampType: $QueryTimestampMode
queryOwnershipType: $QueryOwnershipType
}) {
...AggregateAlertDetails
}
}

mutation CreateAggregateAlert(
$SearchDomainName: RepoOrViewName!
$Name: String!
Expand Down
34 changes: 0 additions & 34 deletions internal/api/humiographql/graphql/alerts.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,6 @@ query ListAlerts(
}
}

mutation UpdateAlert(
$SearchDomainName: String!
$AlertID: String!
$Name: String!
$Description: String
$QueryString: String!
$QueryStart: String!
$ThrottleTimeMillis: Long!
$Enabled: Boolean!
$Actions: [String!]!
$Labels: [String!]!
$RunAsUserID: String
$QueryOwnershipType: QueryOwnershipType
$ThrottleField: String
) {
updateAlert(input: {
id: $AlertID
viewName: $SearchDomainName
name: $Name
description: $Description
queryString: $QueryString
queryStart: $QueryStart
throttleTimeMillis: $ThrottleTimeMillis
enabled: $Enabled
actions: $Actions
labels: $Labels
runAsUserId: $RunAsUserID
queryOwnershipType: $QueryOwnershipType
throttleField: $ThrottleField
}) {
...AlertDetails
}
}

mutation CreateAlert(
$SearchDomainName: String!
$Name: String!
Expand Down
32 changes: 0 additions & 32 deletions internal/api/humiographql/graphql/filter-alerts.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,6 @@ query ListFilterAlerts(
}
}

mutation UpdateFilterAlert(
$SearchDomainName: RepoOrViewName!
$ID: String!
$Name: String!
$Description: String
$QueryString: String!
$ActionIdsOrNames: [String!]!
$Labels: [String!]!
$Enabled: Boolean!
$RunAsUserID: String
$ThrottleField: String
$ThrottleTimeSeconds: Long!
$QueryOwnershipType: QueryOwnershipType!
) {
updateFilterAlert(input: {
viewName: $SearchDomainName
id: $ID
name: $Name
description: $Description
queryString: $QueryString
actionIdsOrNames: $ActionIdsOrNames
labels: $Labels
enabled: $Enabled
runAsUserId: $RunAsUserID
throttleField: $ThrottleField
throttleTimeSeconds: $ThrottleTimeSeconds
queryOwnershipType: $QueryOwnershipType
}) {
...FilterAlertDetails
}
}

mutation CreateFilterAlert(
$SearchDomainName: RepoOrViewName!
$Name: String!
Expand Down
Loading

0 comments on commit 49273f4

Please sign in to comment.