Skip to content

Commit

Permalink
Schedules search - Small fix for omitting empty fields to the exporte…
Browse files Browse the repository at this point in the history
…d yaml file
  • Loading branch information
fjerlov-cs committed Jul 12, 2024
1 parent b24a1e9 commit 00358f3
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions api/internal/humiographql/scheduled-search.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ package humiographql
import graphql "github.com/cli/shurcooL-graphql"

type ScheduledSearch struct {
ID graphql.String `json:"id"`
Name graphql.String `json:"name"`
Description graphql.String `json:"description,omitempty"`
QueryString graphql.String `json:"queryString"`
Start graphql.String `json:"start"`
End graphql.String `json:"end"`
TimeZone graphql.String `json:"timezone"`
Schedule graphql.String `json:"schedule"`
BackfillLimit graphql.Int `json:"backfillLimit"`
Enabled graphql.Boolean `json:"enabled"`
ActionsV2 []Action `json:"actionsV2"`
RunAsUser User `json:"runAsUser,omitempty"`
TimeOfNextPlannedExecution Long `json:"timeOfNextPlannedExecution"`
Labels []graphql.String `json:"labels"`
QueryOwnership QueryOwnership `json:"queryOwnership"`
ID graphql.String `graphql:"id"`
Name graphql.String `graphql:"name"`
Description graphql.String `graphql:"description"`
QueryString graphql.String `graphql:"queryString"`
Start graphql.String `graphql:"start"`
End graphql.String `graphql:"end"`
TimeZone graphql.String `graphql:"timeZone"`
Schedule graphql.String `graphql:"schedule"`
BackfillLimit graphql.Int `graphql:"backfillLimit"`
Enabled graphql.Boolean `graphql:"enabled"`
ActionsV2 []Action `graphql:"actionsV2"`
RunAsUser User `graphql:"runAsUser"`
Labels []graphql.String `graphql:"labels"`
QueryOwnership QueryOwnership `graphql:"queryOwnership"`
}

type CreateScheduledSearch struct {
Expand Down

0 comments on commit 00358f3

Please sign in to comment.