collectorv1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operation_OpType_name = map[int32]string{
		0: "UNKNOWN",
		1: "ADD",
		2: "REMOVE",
		3: "REPLACE",
		4: "MOVE",
		5: "COPY",
	}
	Operation_OpType_value = map[string]int32{
		"UNKNOWN": 0,
		"ADD":     1,
		"REMOVE":  2,
		"REPLACE": 3,
		"MOVE":    4,
		"COPY":    5,
	}
)

Enum value maps for Operation_OpType.

View Source
var File_collector_v1_collector_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

Attributes represents a list of values for a single attribute.

func (*Attributes) Descriptor deprecated

func (*Attributes) Descriptor() ([]byte, []int)

Deprecated: Use Attributes.ProtoReflect.Descriptor instead.

func (*Attributes) GetValues

func (x *Attributes) GetValues() []*Value

func (*Attributes) ProtoMessage

func (*Attributes) ProtoMessage()

func (*Attributes) ProtoReflect

func (x *Attributes) ProtoReflect() protoreflect.Message

func (*Attributes) Reset

func (x *Attributes) Reset()

func (*Attributes) String

func (x *Attributes) String() string

type BulkDeleteCollectorsRequest

type BulkDeleteCollectorsRequest struct {

	// (required) The IDs of the Collectors to delete, must be non-empty. If any Collectors do not exist, the
	// request will fail and no Collectors will be deleted.
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

BulkDeleteCollectorsRequest is a request to delete multiple Collectors.

func (*BulkDeleteCollectorsRequest) Descriptor deprecated

func (*BulkDeleteCollectorsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BulkDeleteCollectorsRequest.ProtoReflect.Descriptor instead.

func (*BulkDeleteCollectorsRequest) GetIds

func (x *BulkDeleteCollectorsRequest) GetIds() []string

func (*BulkDeleteCollectorsRequest) ProtoMessage

func (*BulkDeleteCollectorsRequest) ProtoMessage()

func (*BulkDeleteCollectorsRequest) ProtoReflect

func (*BulkDeleteCollectorsRequest) Reset

func (x *BulkDeleteCollectorsRequest) Reset()

func (*BulkDeleteCollectorsRequest) String

func (x *BulkDeleteCollectorsRequest) String() string

type BulkDeleteCollectorsResponse

type BulkDeleteCollectorsResponse struct {
	// contains filtered or unexported fields
}

BulkDeleteCollectorsResponse is the response to a BulkDeleteCollectorsRequest. This message is empty and the results of the delete are defined by the HTTP status code of the response.

func (*BulkDeleteCollectorsResponse) Descriptor deprecated

func (*BulkDeleteCollectorsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BulkDeleteCollectorsResponse.ProtoReflect.Descriptor instead.

func (*BulkDeleteCollectorsResponse) ProtoMessage

func (*BulkDeleteCollectorsResponse) ProtoMessage()

func (*BulkDeleteCollectorsResponse) ProtoReflect

func (*BulkDeleteCollectorsResponse) Reset

func (x *BulkDeleteCollectorsResponse) Reset()

func (*BulkDeleteCollectorsResponse) String

type BulkUpdateCollectorsRequest

type BulkUpdateCollectorsRequest struct {

	// (required)The IDs of the Collectors to update, must be non-empty.
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// (required) The operations to apply to the Collectors. They are applied in the order they are provided.
	Ops []*Operation `protobuf:"bytes,2,rep,name=ops,proto3" json:"ops,omitempty"`
	// contains filtered or unexported fields
}

BulkUpdateCollectorsRequest is a request to update multiple Collectors' remote_attributes in a single request. The update will be applied in a single transaction, so any errors will cause the entire request to fail and no Collectors will be updated.

A BulkUpdateCollectorsRequest can be used to add, remove, replace, move, or copy remote attributes for the specified Collectors.

func (*BulkUpdateCollectorsRequest) Descriptor deprecated

func (*BulkUpdateCollectorsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BulkUpdateCollectorsRequest.ProtoReflect.Descriptor instead.

func (*BulkUpdateCollectorsRequest) GetIds

func (x *BulkUpdateCollectorsRequest) GetIds() []string

func (*BulkUpdateCollectorsRequest) GetOps

func (x *BulkUpdateCollectorsRequest) GetOps() []*Operation

func (*BulkUpdateCollectorsRequest) ProtoMessage

func (*BulkUpdateCollectorsRequest) ProtoMessage()

func (*BulkUpdateCollectorsRequest) ProtoReflect

func (*BulkUpdateCollectorsRequest) Reset

func (x *BulkUpdateCollectorsRequest) Reset()

func (*BulkUpdateCollectorsRequest) String

func (x *BulkUpdateCollectorsRequest) String() string

type BulkUpdateCollectorsResponse

type BulkUpdateCollectorsResponse struct {
	// contains filtered or unexported fields
}

BulkUpdateCollectorsResponse is the response to a BulkUpdateCollectorsRequest. This message is empty and the results of the update are defined by the HTTP status code of the response.

func (*BulkUpdateCollectorsResponse) Descriptor deprecated

func (*BulkUpdateCollectorsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BulkUpdateCollectorsResponse.ProtoReflect.Descriptor instead.

func (*BulkUpdateCollectorsResponse) ProtoMessage

func (*BulkUpdateCollectorsResponse) ProtoMessage()

func (*BulkUpdateCollectorsResponse) ProtoReflect

func (*BulkUpdateCollectorsResponse) Reset

func (x *BulkUpdateCollectorsResponse) Reset()

func (*BulkUpdateCollectorsResponse) String

type Collector

type Collector struct {

	// The ID of the collector.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// DEPRECATED. Use remote_attributes instead.
	//
	// Deprecated: Marked as deprecated in collector/v1/collector.proto.
	AttributeOverrides map[string]string `` /* 203-byte string literal not displayed */
	// The remote attribute for the collector. Remote attributes used to be
	// named attribute overrides.
	// These will take precedence over any local attributes that are set in the
	// collector's local configuration *except* for any attributes prefixed with
	// "collector". collector.* attributes are reserved for use by the Fleet
	// Management service.
	RemoteAttributes map[string]string `` /* 197-byte string literal not displayed */
	// The timestamp that the collector was created in the Fleet Management service.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	// The timestamp that the collector was last updated in the Fleet Management service.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	// The name of the collector. This is used for display purposes only and is not
	// used to determine the collector's configuration.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// DEPRECATED. Use local_attributes instead.
	//
	// Deprecated: Marked as deprecated in collector/v1/collector.proto.
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// The last set of received local attributes from the Collector in a
	// RegisterCollectorRequest.
	LocalAttributes map[string]string `` /* 194-byte string literal not displayed */
	// Whether the collector is enabled or not. If the collector is disabled, it will receive
	// empty configurations from the Fleet Management service.
	Enabled *bool `protobuf:"varint,7,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"`
	// The timestamp of when the collector was marked inactive.
	MarkedInactiveAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=marked_inactive_at,json=markedInactiveAt,proto3,oneof" json:"marked_inactive_at,omitempty"`
	// contains filtered or unexported fields
}

Collector represents the data for a single Alloy Collector. The ID is used to uniquely identify the Collector, while the combination of local_attributes and remote_attributes are used to determine which pipelines to include in the collector's configuration.

func (*Collector) Descriptor deprecated

func (*Collector) Descriptor() ([]byte, []int)

Deprecated: Use Collector.ProtoReflect.Descriptor instead.

func (*Collector) GetAttributeOverrides deprecated

func (x *Collector) GetAttributeOverrides() map[string]string

Deprecated: Marked as deprecated in collector/v1/collector.proto.

func (*Collector) GetAttributes deprecated

func (x *Collector) GetAttributes() map[string]string

Deprecated: Marked as deprecated in collector/v1/collector.proto.

func (*Collector) GetCreatedAt

func (x *Collector) GetCreatedAt() *timestamppb.Timestamp

func (*Collector) GetEnabled

func (x *Collector) GetEnabled() bool

func (*Collector) GetId

func (x *Collector) GetId() string

func (*Collector) GetLocalAttributes added in v1.0.0

func (x *Collector) GetLocalAttributes() map[string]string

func (*Collector) GetMarkedInactiveAt added in v1.0.0

func (x *Collector) GetMarkedInactiveAt() *timestamppb.Timestamp

func (*Collector) GetName

func (x *Collector) GetName() string

func (*Collector) GetRemoteAttributes added in v0.1.2

func (x *Collector) GetRemoteAttributes() map[string]string

func (*Collector) GetUpdatedAt

func (x *Collector) GetUpdatedAt() *timestamppb.Timestamp

func (*Collector) ProtoMessage

func (*Collector) ProtoMessage()

func (*Collector) ProtoReflect

func (x *Collector) ProtoReflect() protoreflect.Message

func (*Collector) Reset

func (x *Collector) Reset()

func (*Collector) String

func (x *Collector) String() string

type Collectors

type Collectors struct {
	Collectors []*Collector `protobuf:"bytes,1,rep,name=collectors,proto3" json:"collectors,omitempty"`
	// contains filtered or unexported fields
}

Collectors represents a list of Collectors.

func (*Collectors) Descriptor deprecated

func (*Collectors) Descriptor() ([]byte, []int)

Deprecated: Use Collectors.ProtoReflect.Descriptor instead.

func (*Collectors) GetCollectors

func (x *Collectors) GetCollectors() []*Collector

func (*Collectors) ProtoMessage

func (*Collectors) ProtoMessage()

func (*Collectors) ProtoReflect

func (x *Collectors) ProtoReflect() protoreflect.Message

func (*Collectors) Reset

func (x *Collectors) Reset()

func (*Collectors) String

func (x *Collectors) String() string

type CreateCollectorRequest

type CreateCollectorRequest struct {

	// (required) The Collector to create.
	Collector *Collector `protobuf:"bytes,1,opt,name=collector,proto3" json:"collector,omitempty"`
	// contains filtered or unexported fields
}

CreateCollectorRequest is the request to create a new Collector.

func (*CreateCollectorRequest) Descriptor deprecated

func (*CreateCollectorRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCollectorRequest.ProtoReflect.Descriptor instead.

func (*CreateCollectorRequest) GetCollector

func (x *CreateCollectorRequest) GetCollector() *Collector

func (*CreateCollectorRequest) ProtoMessage

func (*CreateCollectorRequest) ProtoMessage()

func (*CreateCollectorRequest) ProtoReflect

func (x *CreateCollectorRequest) ProtoReflect() protoreflect.Message

func (*CreateCollectorRequest) Reset

func (x *CreateCollectorRequest) Reset()

func (*CreateCollectorRequest) String

func (x *CreateCollectorRequest) String() string

type DeleteCollectorRequest

type DeleteCollectorRequest struct {

	// (required) The ID of the collector to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteCollectorRequest is the request to delete an existing Collector.

func (*DeleteCollectorRequest) Descriptor deprecated

func (*DeleteCollectorRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCollectorRequest.ProtoReflect.Descriptor instead.

func (*DeleteCollectorRequest) GetId

func (x *DeleteCollectorRequest) GetId() string

func (*DeleteCollectorRequest) ProtoMessage

func (*DeleteCollectorRequest) ProtoMessage()

func (*DeleteCollectorRequest) ProtoReflect

func (x *DeleteCollectorRequest) ProtoReflect() protoreflect.Message

func (*DeleteCollectorRequest) Reset

func (x *DeleteCollectorRequest) Reset()

func (*DeleteCollectorRequest) String

func (x *DeleteCollectorRequest) String() string

type DeleteCollectorResponse

type DeleteCollectorResponse struct {
	// contains filtered or unexported fields
}

DeleteCollectorResponse is the response to a DeleteCollectorRequest. This message is empty and the results of the delete are defined by the HTTP status code of the response.

func (*DeleteCollectorResponse) Descriptor deprecated

func (*DeleteCollectorResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCollectorResponse.ProtoReflect.Descriptor instead.

func (*DeleteCollectorResponse) ProtoMessage

func (*DeleteCollectorResponse) ProtoMessage()

func (*DeleteCollectorResponse) ProtoReflect

func (x *DeleteCollectorResponse) ProtoReflect() protoreflect.Message

func (*DeleteCollectorResponse) Reset

func (x *DeleteCollectorResponse) Reset()

func (*DeleteCollectorResponse) String

func (x *DeleteCollectorResponse) String() string

type GetCollectorRequest

type GetCollectorRequest struct {

	// (required) The ID of the collector to retrieve.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetCollectorRequest is the request to retrieve a collector's information. This will return a single collector's information, represented by the Collector message.

func (*GetCollectorRequest) Descriptor deprecated

func (*GetCollectorRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCollectorRequest.ProtoReflect.Descriptor instead.

func (*GetCollectorRequest) GetId

func (x *GetCollectorRequest) GetId() string

func (*GetCollectorRequest) ProtoMessage

func (*GetCollectorRequest) ProtoMessage()

func (*GetCollectorRequest) ProtoReflect

func (x *GetCollectorRequest) ProtoReflect() protoreflect.Message

func (*GetCollectorRequest) Reset

func (x *GetCollectorRequest) Reset()

func (*GetCollectorRequest) String

func (x *GetCollectorRequest) String() string

type ListCollectorAttributesRequest

type ListCollectorAttributesRequest struct {
	// contains filtered or unexported fields
}

ListCollectorAttributesRequest is the request to list all attributes that are used for all collectors.

func (*ListCollectorAttributesRequest) Descriptor deprecated

func (*ListCollectorAttributesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectorAttributesRequest.ProtoReflect.Descriptor instead.

func (*ListCollectorAttributesRequest) ProtoMessage

func (*ListCollectorAttributesRequest) ProtoMessage()

func (*ListCollectorAttributesRequest) ProtoReflect

func (*ListCollectorAttributesRequest) Reset

func (x *ListCollectorAttributesRequest) Reset()

func (*ListCollectorAttributesRequest) String

type ListCollectorAttributesResponse

type ListCollectorAttributesResponse struct {

	// DEPRECATED. Use local_attributes instead.
	//
	// Deprecated: Marked as deprecated in collector/v1/collector.proto.
	Attributes map[string]*Attributes `` /* 161-byte string literal not displayed */
	// DEPRECATED. Use remote_attributes instead.
	//
	// Deprecated: Marked as deprecated in collector/v1/collector.proto.
	AttributeOverrides map[string]*Attributes `` /* 203-byte string literal not displayed */
	LocalAttributes    map[string]*Attributes `` /* 194-byte string literal not displayed */
	RemoteAttributes   map[string]*Attributes `` /* 197-byte string literal not displayed */
	// contains filtered or unexported fields
}

ListCollectorAttributesResponse is the response to a ListCollectorAttributesRequest. It contains maps of all attributes and all their values that are used for all collectors.

func (*ListCollectorAttributesResponse) Descriptor deprecated

func (*ListCollectorAttributesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectorAttributesResponse.ProtoReflect.Descriptor instead.

func (*ListCollectorAttributesResponse) GetAttributeOverrides deprecated

func (x *ListCollectorAttributesResponse) GetAttributeOverrides() map[string]*Attributes

Deprecated: Marked as deprecated in collector/v1/collector.proto.

func (*ListCollectorAttributesResponse) GetAttributes deprecated

func (x *ListCollectorAttributesResponse) GetAttributes() map[string]*Attributes

Deprecated: Marked as deprecated in collector/v1/collector.proto.

func (*ListCollectorAttributesResponse) GetLocalAttributes added in v0.1.2

func (x *ListCollectorAttributesResponse) GetLocalAttributes() map[string]*Attributes

func (*ListCollectorAttributesResponse) GetRemoteAttributes added in v0.1.2

func (x *ListCollectorAttributesResponse) GetRemoteAttributes() map[string]*Attributes

func (*ListCollectorAttributesResponse) ProtoMessage

func (*ListCollectorAttributesResponse) ProtoMessage()

func (*ListCollectorAttributesResponse) ProtoReflect

func (*ListCollectorAttributesResponse) Reset

func (*ListCollectorAttributesResponse) String

type ListCollectorsRequest

type ListCollectorsRequest struct {

	// The matchers to use to filter the list of Collectors.
	Matchers []string `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// contains filtered or unexported fields
}

ListCollectorsRequest is the request to list Collectors according to any specified matchers. If no matchers are specified, all Collectors will be returned.

func (*ListCollectorsRequest) Descriptor deprecated

func (*ListCollectorsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCollectorsRequest.ProtoReflect.Descriptor instead.

func (*ListCollectorsRequest) GetMatchers

func (x *ListCollectorsRequest) GetMatchers() []string

func (*ListCollectorsRequest) ProtoMessage

func (*ListCollectorsRequest) ProtoMessage()

func (*ListCollectorsRequest) ProtoReflect

func (x *ListCollectorsRequest) ProtoReflect() protoreflect.Message

func (*ListCollectorsRequest) Reset

func (x *ListCollectorsRequest) Reset()

func (*ListCollectorsRequest) String

func (x *ListCollectorsRequest) String() string

type Operation

type Operation struct {

	// (required) Operation to perform
	Op Operation_OpType `protobuf:"varint,1,opt,name=op,proto3,enum=collector.v1.Operation_OpType" json:"op,omitempty"`
	// (required) Path for the operation, this is a JSON path. For example, to access the "foo" remote
	// attribute for a Collector, the path would be "remoteAttributes.foo".
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Source path for move or copy operations. Used by the MOVE and COPY operations to specify
	// the source path to move or copy the value from.
	From *string `protobuf:"bytes,3,opt,name=from,proto3,oneof" json:"from,omitempty"`
	// Value for add and replace operations, as well as selective removal.
	Value *string `protobuf:"bytes,4,opt,name=value,proto3,oneof" json:"value,omitempty"`
	// Old value to match against for a selective replace. For example, an oldValue of "bar" would
	// only replace a remote attribute if the current value is "bar".
	OldValue *string `protobuf:"bytes,5,opt,name=oldValue,proto3,oneof" json:"oldValue,omitempty"` // Old value for selective replace
	// contains filtered or unexported fields
}

An Operation is a single operation to apply to a Collector's remote_attributes

func (*Operation) Descriptor deprecated

func (*Operation) Descriptor() ([]byte, []int)

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetFrom

func (x *Operation) GetFrom() string

func (*Operation) GetOldValue

func (x *Operation) GetOldValue() string

func (*Operation) GetOp

func (x *Operation) GetOp() Operation_OpType

func (*Operation) GetPath

func (x *Operation) GetPath() string

func (*Operation) GetValue

func (x *Operation) GetValue() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

func (x *Operation) ProtoReflect() protoreflect.Message

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type Operation_OpType

type Operation_OpType int32
const (
	Operation_UNKNOWN Operation_OpType = 0
	Operation_ADD     Operation_OpType = 1
	Operation_REMOVE  Operation_OpType = 2
	Operation_REPLACE Operation_OpType = 3
	Operation_MOVE    Operation_OpType = 4
	Operation_COPY    Operation_OpType = 5
)

func (Operation_OpType) Descriptor

func (Operation_OpType) Enum

func (Operation_OpType) EnumDescriptor deprecated

func (Operation_OpType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation_OpType.Descriptor instead.

func (Operation_OpType) Number

func (Operation_OpType) String

func (x Operation_OpType) String() string

func (Operation_OpType) Type

type UpdateCollectorRequest

type UpdateCollectorRequest struct {
	Collector *Collector `protobuf:"bytes,1,opt,name=collector,proto3" json:"collector,omitempty"`
	// contains filtered or unexported fields
}

UpdateCollectorRequest is the request to update an existing Collector. It will update the Collector with the exact values provided in the request. Updates are not selective, and any attributes that are not provided will be removed from the Collector.

func (*UpdateCollectorRequest) Descriptor deprecated

func (*UpdateCollectorRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCollectorRequest.ProtoReflect.Descriptor instead.

func (*UpdateCollectorRequest) GetCollector

func (x *UpdateCollectorRequest) GetCollector() *Collector

func (*UpdateCollectorRequest) ProtoMessage

func (*UpdateCollectorRequest) ProtoMessage()

func (*UpdateCollectorRequest) ProtoReflect

func (x *UpdateCollectorRequest) ProtoReflect() protoreflect.Message

func (*UpdateCollectorRequest) Reset

func (x *UpdateCollectorRequest) Reset()

func (*UpdateCollectorRequest) String

func (x *UpdateCollectorRequest) String() string

type Value

type Value struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Value represents a single value for an attribute.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetValue

func (x *Value) GetValue() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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