telemetriesgql

package
v0.0.0-...-94c76a7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ReportErrors_Operation = `
mutation ReportErrors ($component: Component!, $errors: [Error!]!) {
	sendErrors(component: $component, errors: $errors)
}
`

The query or mutation executed by ReportErrors.

View Source
const SendTelemetries_Operation = `
mutation SendTelemetries ($telemetries: [TelemetryInput!]!) {
	sendTelemetries(telemetries: $telemetries)
}
`

The query or mutation executed by SendTelemetries.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	ComponentType       TelemetryComponentType `json:"componentType"`
	ComponentInstanceId string                 `json:"componentInstanceId"`
	ContextId           string                 `json:"contextId"`
	Version             string                 `json:"version"`
	CloudClientId       string                 `json:"cloudClientId"`
}

func (*Component) GetCloudClientId

func (v *Component) GetCloudClientId() string

GetCloudClientId returns Component.CloudClientId, and is useful for accessing the field via an interface.

func (*Component) GetComponentInstanceId

func (v *Component) GetComponentInstanceId() string

GetComponentInstanceId returns Component.ComponentInstanceId, and is useful for accessing the field via an interface.

func (*Component) GetComponentType

func (v *Component) GetComponentType() TelemetryComponentType

GetComponentType returns Component.ComponentType, and is useful for accessing the field via an interface.

func (*Component) GetContextId

func (v *Component) GetContextId() string

GetContextId returns Component.ContextId, and is useful for accessing the field via an interface.

func (*Component) GetVersion

func (v *Component) GetVersion() string

GetVersion returns Component.Version, and is useful for accessing the field via an interface.

type Error

type Error struct {
	Message    *string          `json:"message"`
	ErrorClass *string          `json:"errorClass"`
	Cause      *Error           `json:"cause"`
	Stack      []*StackFrame    `json:"stack"`
	Metadata   []*MetadataEntry `json:"metadata"`
}

func (*Error) GetCause

func (v *Error) GetCause() *Error

GetCause returns Error.Cause, and is useful for accessing the field via an interface.

func (*Error) GetErrorClass

func (v *Error) GetErrorClass() *string

GetErrorClass returns Error.ErrorClass, and is useful for accessing the field via an interface.

func (*Error) GetMessage

func (v *Error) GetMessage() *string

GetMessage returns Error.Message, and is useful for accessing the field via an interface.

func (*Error) GetMetadata

func (v *Error) GetMetadata() []*MetadataEntry

GetMetadata returns Error.Metadata, and is useful for accessing the field via an interface.

func (*Error) GetStack

func (v *Error) GetStack() []*StackFrame

GetStack returns Error.Stack, and is useful for accessing the field via an interface.

type EventType

type EventType string
const (
	EventTypeIntentsDeleted              EventType = "INTENTS_DELETED"
	EventTypeIntentsApplied              EventType = "INTENTS_APPLIED"
	EventTypeIntentsAppliedKafka         EventType = "INTENTS_APPLIED_KAFKA"
	EventTypeIntentsAppliedHttp          EventType = "INTENTS_APPLIED_HTTP"
	EventTypeIntentsAppliedDatabase      EventType = "INTENTS_APPLIED_DATABASE"
	EventTypeIntentsAppliedInternet      EventType = "INTENTS_APPLIED_INTERNET"
	EventTypeIntentsDiscovered           EventType = "INTENTS_DISCOVERED"
	EventTypeIntentsDiscoveredSocketScan EventType = "INTENTS_DISCOVERED_SOCKET_SCAN"
	EventTypeIntentsDiscoveredCapture    EventType = "INTENTS_DISCOVERED_CAPTURE"
	EventTypeIntentsDiscoveredKafka      EventType = "INTENTS_DISCOVERED_KAFKA"
	EventTypeIntentsDiscoveredIstio      EventType = "INTENTS_DISCOVERED_ISTIO"
	EventTypeIntentsDiscoveredTcp        EventType = "INTENTS_DISCOVERED_TCP"
	EventTypeMapperExport                EventType = "MAPPER_EXPORT"
	EventTypeMapperVisualize             EventType = "MAPPER_VISUALIZE"
	EventTypeKafkaServerConfigApplied    EventType = "KAFKA_SERVER_CONFIG_APPLIED"
	EventTypeKafkaServerConfigDeleted    EventType = "KAFKA_SERVER_CONFIG_DELETED"
	EventTypeNetworkPoliciesCreated      EventType = "NETWORK_POLICIES_CREATED"
	EventTypeNetworkPoliciesDeleted      EventType = "NETWORK_POLICIES_DELETED"
	EventTypeKafkaAclsCreated            EventType = "KAFKA_ACLS_CREATED"
	EventTypeKafkaAclsDeleted            EventType = "KAFKA_ACLS_DELETED"
	EventTypeIstioPoliciesCreated        EventType = "ISTIO_POLICIES_CREATED"
	EventTypeIstioPoliciesDeleted        EventType = "ISTIO_POLICIES_DELETED"
	EventTypeStarted                     EventType = "STARTED"
	EventTypeServiceDiscovered           EventType = "SERVICE_DISCOVERED"
	EventTypeNamespaceDiscovered         EventType = "NAMESPACE_DISCOVERED"
	EventTypeProtectedServiceApplied     EventType = "PROTECTED_SERVICE_APPLIED"
	EventTypeProtectedServiceDeleted     EventType = "PROTECTED_SERVICE_DELETED"
	EventTypeActive                      EventType = "ACTIVE"
)

type MetadataEntry

type MetadataEntry struct {
	Key   *string `json:"key"`
	Value *string `json:"value"`
}

func (*MetadataEntry) GetKey

func (v *MetadataEntry) GetKey() *string

GetKey returns MetadataEntry.Key, and is useful for accessing the field via an interface.

func (*MetadataEntry) GetValue

func (v *MetadataEntry) GetValue() *string

GetValue returns MetadataEntry.Value, and is useful for accessing the field via an interface.

type ReportErrorsResponse

type ReportErrorsResponse struct {
	SendErrors *bool `json:"sendErrors"`
}

ReportErrorsResponse is returned by ReportErrors on success.

func ReportErrors

func ReportErrors(
	ctx_ context.Context,
	client_ graphql.Client,
	component *Component,
	errors []*Error,
) (*ReportErrorsResponse, error)

func (*ReportErrorsResponse) GetSendErrors

func (v *ReportErrorsResponse) GetSendErrors() *bool

GetSendErrors returns ReportErrorsResponse.SendErrors, and is useful for accessing the field via an interface.

type SendTelemetriesResponse

type SendTelemetriesResponse struct {
	SendTelemetries bool `json:"sendTelemetries"`
}

SendTelemetriesResponse is returned by SendTelemetries on success.

func SendTelemetries

func SendTelemetries(
	ctx_ context.Context,
	client_ graphql.Client,
	telemetries []TelemetryInput,
) (*SendTelemetriesResponse, error)

func (*SendTelemetriesResponse) GetSendTelemetries

func (v *SendTelemetriesResponse) GetSendTelemetries() bool

GetSendTelemetries returns SendTelemetriesResponse.SendTelemetries, and is useful for accessing the field via an interface.

type StackFrame

type StackFrame struct {
	File       *string `json:"file"`
	LineNumber *int    `json:"lineNumber"`
	Name       *string `json:"name"`
	Package    *string `json:"package"`
}

func (*StackFrame) GetFile

func (v *StackFrame) GetFile() *string

GetFile returns StackFrame.File, and is useful for accessing the field via an interface.

func (*StackFrame) GetLineNumber

func (v *StackFrame) GetLineNumber() *int

GetLineNumber returns StackFrame.LineNumber, and is useful for accessing the field via an interface.

func (*StackFrame) GetName

func (v *StackFrame) GetName() *string

GetName returns StackFrame.Name, and is useful for accessing the field via an interface.

func (*StackFrame) GetPackage

func (v *StackFrame) GetPackage() *string

GetPackage returns StackFrame.Package, and is useful for accessing the field via an interface.

type TelemetryComponentType

type TelemetryComponentType string
const (
	TelemetryComponentTypeIntentsOperator     TelemetryComponentType = "INTENTS_OPERATOR"
	TelemetryComponentTypeCredentialsOperator TelemetryComponentType = "CREDENTIALS_OPERATOR"
	TelemetryComponentTypeNetworkMapper       TelemetryComponentType = "NETWORK_MAPPER"
	TelemetryComponentTypeCli                 TelemetryComponentType = "CLI"
)

type TelemetryData

type TelemetryData struct {
	EventType EventType `json:"eventType"`
	Count     int       `json:"count"`
}

func (*TelemetryData) GetCount

func (v *TelemetryData) GetCount() int

GetCount returns TelemetryData.Count, and is useful for accessing the field via an interface.

func (*TelemetryData) GetEventType

func (v *TelemetryData) GetEventType() EventType

GetEventType returns TelemetryData.EventType, and is useful for accessing the field via an interface.

type TelemetryInput

type TelemetryInput struct {
	Component Component     `json:"component"`
	Data      TelemetryData `json:"data"`
}

func (*TelemetryInput) GetComponent

func (v *TelemetryInput) GetComponent() Component

GetComponent returns TelemetryInput.Component, and is useful for accessing the field via an interface.

func (*TelemetryInput) GetData

func (v *TelemetryInput) GetData() TelemetryData

GetData returns TelemetryInput.Data, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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