humiographql

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultS3ArchivingFormat = S3ArchivingFormat("NDSON")

Variables

View Source
var ValidS3ArchivingFormats = []S3ArchivingFormat{"NDJSON", "RAW"}

Functions

This section is empty.

Types

type Action added in v0.34.0

type Action struct {
	Name graphql.String `graphql:"name"`
}

type Alert

type Alert struct {
	ID                 graphql.String   `graphql:"id"`
	Name               graphql.String   `graphql:"name"`
	QueryString        graphql.String   `graphql:"queryString"`
	QueryStart         graphql.String   `graphql:"queryStart"`
	ThrottleField      graphql.String   `graphql:"throttleField"`
	TimeOfLastTrigger  Long             `graphql:"timeOfLastTrigger"`
	IsStarred          graphql.Boolean  `graphql:"isStarred"`
	Description        graphql.String   `graphql:"description"`
	ThrottleTimeMillis Long             `graphql:"throttleTimeMillis"`
	Enabled            graphql.Boolean  `graphql:"enabled"`
	Actions            []graphql.String `graphql:"actions"`
	Labels             []graphql.String `graphql:"labels"`
	LastError          graphql.String   `graphql:"lastError"`
	QueryOwnership     QueryOwnership   `graphql:"queryOwnership"`
	RunAsUser          struct {
		ID graphql.String `graphql:"id"`
	} `graphql:"runAsUser"`
}

type CreateAlert

type CreateAlert struct {
	ViewName           graphql.String     `json:"viewName"`
	Name               graphql.String     `json:"name"`
	Description        graphql.String     `json:"description,omitempty"`
	QueryString        graphql.String     `json:"queryString"`
	QueryStart         graphql.String     `json:"queryStart"`
	ThrottleTimeMillis Long               `json:"throttleTimeMillis"`
	ThrottleField      graphql.String     `json:"throttleField,omitempty"`
	RunAsUserID        graphql.String     `json:"runAsUserId,omitempty"`
	Enabled            graphql.Boolean    `json:"enabled"`
	Actions            []graphql.String   `json:"actions"`
	Labels             []graphql.String   `json:"labels"`
	QueryOwnershipType QueryOwnershipType `json:"queryOwnershipType,omitempty"`
}

type CreateFilterAlert added in v0.34.0

type CreateFilterAlert struct {
	ViewName           RepoOrViewName     `json:"viewName"`
	Name               graphql.String     `json:"name"`
	Description        graphql.String     `json:"description,omitempty"`
	QueryString        graphql.String     `json:"queryString"`
	ActionIdsOrNames   []graphql.String   `json:"actionIdsOrNames"`
	Labels             []graphql.String   `json:"labels"`
	Enabled            graphql.Boolean    `json:"enabled"`
	RunAsUserID        graphql.String     `json:"runAsUserId,omitempty"`
	QueryOwnershipType QueryOwnershipType `json:"queryOwnershipType"`
}

type FilterAlert added in v0.34.0

type FilterAlert struct {
	ID             graphql.String   `graphql:"id"`
	Name           graphql.String   `graphql:"name"`
	Description    graphql.String   `graphql:"description"`
	QueryString    graphql.String   `graphql:"queryString"`
	Actions        []Action         `graphql:"actions"`
	Labels         []graphql.String `graphql:"labels"`
	Enabled        graphql.Boolean  `graphql:"enabled"`
	QueryOwnership QueryOwnership   `graphql:"queryOwnership"`
}

type Long

type Long int64

type QueryOwnership

type QueryOwnership struct {
	ID                     graphql.String         `graphql:"id"`
	QueryOwnershipTypeName QueryOwnershipTypeName `graphql:"__typename"`
}

type QueryOwnershipType

type QueryOwnershipType string
const (
	QueryOwnershipTypeUser         QueryOwnershipType = "User"
	QueryOwnershipTypeOrganization QueryOwnershipType = "Organization"
)

type QueryOwnershipTypeName

type QueryOwnershipTypeName string
const (
	QueryOwnershipTypeNameOrganization QueryOwnershipTypeName = "OrganizationOwnership"
	QueryOwnershipTypeNameUser         QueryOwnershipTypeName = "UserOwnership"
)

type RepoOrViewName added in v0.34.0

type RepoOrViewName string

type S3ArchivingFormat added in v0.34.0

type S3ArchivingFormat string

S3ArchivingFormat - the format in which to store the archived data on S3, either RAW or NDJSON

func NewS3ArchivingFormat added in v0.34.0

func NewS3ArchivingFormat(format string) (S3ArchivingFormat, error)

NewS3ArchivingFormat - creates a S3ArchivingFormat and ensures the value is uppercase

func (*S3ArchivingFormat) Validate added in v0.34.0

func (f *S3ArchivingFormat) Validate() error

type S3Configuration added in v0.34.0

type S3Configuration struct {
	Bucket   string            `graphql:"bucket"`
	Region   string            `graphql:"region"`
	Disabled bool              `graphql:"disabled"`
	Format   S3ArchivingFormat `graphql:"format"`
}

func (*S3Configuration) IsConfigured added in v0.34.0

func (s *S3Configuration) IsConfigured() bool

func (*S3Configuration) IsEnabled added in v0.34.0

func (s *S3Configuration) IsEnabled() bool

IsEnabled - determine if S3Configuration is enabled based on values and the Disabled field to avoid a bool defaulting to false

type UpdateAlert

type UpdateAlert struct {
	ViewName           graphql.String     `json:"viewName"`
	ID                 graphql.String     `json:"id"`
	Name               graphql.String     `json:"name"`
	Description        graphql.String     `json:"description,omitempty"`
	QueryString        graphql.String     `json:"queryString"`
	QueryStart         graphql.String     `json:"queryStart"`
	ThrottleTimeMillis Long               `json:"throttleTimeMillis"`
	ThrottleField      graphql.String     `json:"throttleField,omitempty"`
	RunAsUserID        graphql.String     `json:"runAsUserId,omitempty"`
	Enabled            graphql.Boolean    `json:"enabled"`
	Actions            []graphql.String   `json:"actions"`
	Labels             []graphql.String   `json:"labels"`
	QueryOwnershipType QueryOwnershipType `json:"queryOwnershipType,omitempty"`
}

type UpdateFilterAlert added in v0.34.0

type UpdateFilterAlert struct {
	ViewName           RepoOrViewName     `json:"viewName"`
	ID                 graphql.String     `json:"id"`
	Name               graphql.String     `json:"name"`
	Description        graphql.String     `json:"description,omitempty"`
	QueryString        graphql.String     `json:"queryString"`
	ActionIdsOrNames   []graphql.String   `json:"actionIdsOrNames"`
	Labels             []graphql.String   `json:"labels"`
	Enabled            graphql.Boolean    `json:"enabled"`
	RunAsUserID        graphql.String     `json:"runAsUserId,omitempty"`
	QueryOwnershipType QueryOwnershipType `json:"queryOwnershipType"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL