agent

package
v0.0.0-...-76a0cfc Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0:  "STATUS_UNSPECIFIED",
		1:  "PREPARING_TEST",
		2:  "READY_FOR_TEST",
		3:  "TESTING",
		4:  "TANK_FAILED",
		5:  "PROVISIONING",
		6:  "STOPPING",
		7:  "STOPPED",
		8:  "STARTING",
		9:  "RESTARTING",
		10: "UPDATING",
		11: "ERROR",
		12: "CRASHED",
		13: "DELETING",
		15: "INITIALIZING_CONNECTION",
		16: "LOST_CONNECTION_WITH_AGENT",
		17: "UPLOADING_ARTIFACTS",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":         0,
		"PREPARING_TEST":             1,
		"READY_FOR_TEST":             2,
		"TESTING":                    3,
		"TANK_FAILED":                4,
		"PROVISIONING":               5,
		"STOPPING":                   6,
		"STOPPED":                    7,
		"STARTING":                   8,
		"RESTARTING":                 9,
		"UPDATING":                   10,
		"ERROR":                      11,
		"CRASHED":                    12,
		"DELETING":                   13,
		"INITIALIZING_CONNECTION":    15,
		"LOST_CONNECTION_WITH_AGENT": 16,
		"UPLOADING_ARTIFACTS":        17,
	}
)

Enum value maps for Status.

View Source
var File_yandex_cloud_loadtesting_api_v1_agent_agent_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_loadtesting_api_v1_agent_create_compute_instance_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_loadtesting_api_v1_agent_log_settings_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_loadtesting_api_v1_agent_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Agent

type Agent struct {

	// ID of the agent. Generated at creation time.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the agent belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the agent.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the agent.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// ID of the compute instance managed by the agent.
	//
	// Empty if there is no such instance (i.e. the case of external agent).
	ComputeInstanceId string `protobuf:"bytes,5,opt,name=compute_instance_id,json=computeInstanceId,proto3" json:"compute_instance_id,omitempty"`
	// Status of the agent.
	Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.loadtesting.api.v1.agent.Status" json:"status,omitempty"`
	// List of errors reported by the agent.
	Errors []string `protobuf:"bytes,8,rep,name=errors,proto3" json:"errors,omitempty"`
	// ID of the test that is currently being executed by the agent.
	CurrentJobId string `protobuf:"bytes,9,opt,name=current_job_id,json=currentJobId,proto3" json:"current_job_id,omitempty"`
	// Version of the agent.
	AgentVersionId string `protobuf:"bytes,10,opt,name=agent_version_id,json=agentVersionId,proto3" json:"agent_version_id,omitempty"`
	// Agent labels as `key:value` pairs.
	Labels map[string]string `` /* 154-byte string literal not displayed */
	// Agent log settings
	LogSettings *LogSettings `protobuf:"bytes,13,opt,name=log_settings,json=logSettings,proto3" json:"log_settings,omitempty"`
	// contains filtered or unexported fields
}

Load testing agent on which tests are executed.

func (*Agent) Descriptor deprecated

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

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetAgentVersionId

func (x *Agent) GetAgentVersionId() string

func (*Agent) GetComputeInstanceId

func (x *Agent) GetComputeInstanceId() string

func (*Agent) GetCurrentJobId

func (x *Agent) GetCurrentJobId() string

func (*Agent) GetDescription

func (x *Agent) GetDescription() string

func (*Agent) GetErrors

func (x *Agent) GetErrors() []string

func (*Agent) GetFolderId

func (x *Agent) GetFolderId() string

func (*Agent) GetId

func (x *Agent) GetId() string

func (*Agent) GetLabels

func (x *Agent) GetLabels() map[string]string

func (*Agent) GetLogSettings

func (x *Agent) GetLogSettings() *LogSettings

func (*Agent) GetName

func (x *Agent) GetName() string

func (*Agent) GetStatus

func (x *Agent) GetStatus() Status

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect

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

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) SetAgentVersionId

func (m *Agent) SetAgentVersionId(v string)

func (*Agent) SetComputeInstanceId

func (m *Agent) SetComputeInstanceId(v string)

func (*Agent) SetCurrentJobId

func (m *Agent) SetCurrentJobId(v string)

func (*Agent) SetDescription

func (m *Agent) SetDescription(v string)

func (*Agent) SetErrors

func (m *Agent) SetErrors(v []string)

func (*Agent) SetFolderId

func (m *Agent) SetFolderId(v string)

func (*Agent) SetId

func (m *Agent) SetId(v string)

func (*Agent) SetLabels

func (m *Agent) SetLabels(v map[string]string)

func (*Agent) SetLogSettings

func (m *Agent) SetLogSettings(v *LogSettings)

func (*Agent) SetName

func (m *Agent) SetName(v string)

func (*Agent) SetStatus

func (m *Agent) SetStatus(v Status)

func (*Agent) String

func (x *Agent) String() string

type CreateComputeInstance

type CreateComputeInstance struct {

	// Resource labels as `key:value` pairs.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// ID of the availability zone where the instance resides.
	// To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
	ZoneId string `protobuf:"bytes,5,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Computing resources of the instance, such as the amount of memory and number of cores.
	// To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
	ResourcesSpec *v1.ResourcesSpec `protobuf:"bytes,7,opt,name=resources_spec,json=resourcesSpec,proto3" json:"resources_spec,omitempty"`
	// The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
	// The total size of all keys and values must be less than 512 KB.
	//
	// Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
	// The values must be 256 KB or less.
	//
	// For example, you may use the metadata in order to provide your public SSH key to the instance.
	// For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// Boot disk to attach to the instance.
	BootDiskSpec *v1.AttachedDiskSpec `protobuf:"bytes,9,opt,name=boot_disk_spec,json=bootDiskSpec,proto3" json:"boot_disk_spec,omitempty"`
	// Network configuration for the instance. Specifies how the network interface is configured
	// to interact with other services on the internal network and on the internet.
	// Currently only one network interface is supported per instance.
	NetworkInterfaceSpecs []*v1.NetworkInterfaceSpec `` /* 127-byte string literal not displayed */
	// ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
	// To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
	ServiceAccountId string `protobuf:"bytes,14,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// ID of the [Compute VM platform](docs/compute/concepts/vm-platforms) on which the agent will be created.
	// Default value: "standard-v2"
	PlatformId string `protobuf:"bytes,15,opt,name=platform_id,json=platformId,proto3" json:"platform_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateComputeInstance) Descriptor deprecated

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

Deprecated: Use CreateComputeInstance.ProtoReflect.Descriptor instead.

func (*CreateComputeInstance) GetBootDiskSpec

func (x *CreateComputeInstance) GetBootDiskSpec() *v1.AttachedDiskSpec

func (*CreateComputeInstance) GetLabels

func (x *CreateComputeInstance) GetLabels() map[string]string

func (*CreateComputeInstance) GetMetadata

func (x *CreateComputeInstance) GetMetadata() map[string]string

func (*CreateComputeInstance) GetNetworkInterfaceSpecs

func (x *CreateComputeInstance) GetNetworkInterfaceSpecs() []*v1.NetworkInterfaceSpec

func (*CreateComputeInstance) GetPlatformId

func (x *CreateComputeInstance) GetPlatformId() string

func (*CreateComputeInstance) GetResourcesSpec

func (x *CreateComputeInstance) GetResourcesSpec() *v1.ResourcesSpec

func (*CreateComputeInstance) GetServiceAccountId

func (x *CreateComputeInstance) GetServiceAccountId() string

func (*CreateComputeInstance) GetZoneId

func (x *CreateComputeInstance) GetZoneId() string

func (*CreateComputeInstance) ProtoMessage

func (*CreateComputeInstance) ProtoMessage()

func (*CreateComputeInstance) ProtoReflect

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

func (*CreateComputeInstance) Reset

func (x *CreateComputeInstance) Reset()

func (*CreateComputeInstance) SetBootDiskSpec

func (m *CreateComputeInstance) SetBootDiskSpec(v *v1.AttachedDiskSpec)

func (*CreateComputeInstance) SetLabels

func (m *CreateComputeInstance) SetLabels(v map[string]string)

func (*CreateComputeInstance) SetMetadata

func (m *CreateComputeInstance) SetMetadata(v map[string]string)

func (*CreateComputeInstance) SetNetworkInterfaceSpecs

func (m *CreateComputeInstance) SetNetworkInterfaceSpecs(v []*v1.NetworkInterfaceSpec)

func (*CreateComputeInstance) SetPlatformId

func (m *CreateComputeInstance) SetPlatformId(v string)

func (*CreateComputeInstance) SetResourcesSpec

func (m *CreateComputeInstance) SetResourcesSpec(v *v1.ResourcesSpec)

func (*CreateComputeInstance) SetServiceAccountId

func (m *CreateComputeInstance) SetServiceAccountId(v string)

func (*CreateComputeInstance) SetZoneId

func (m *CreateComputeInstance) SetZoneId(v string)

func (*CreateComputeInstance) String

func (x *CreateComputeInstance) String() string

type LogSettings

type LogSettings struct {

	// Id of Yandex Cloud log group to upload agent logs to
	CloudLogGroupId string `protobuf:"bytes,1,opt,name=cloud_log_group_id,json=cloudLogGroupId,proto3" json:"cloud_log_group_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LogSettings) Descriptor deprecated

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

Deprecated: Use LogSettings.ProtoReflect.Descriptor instead.

func (*LogSettings) GetCloudLogGroupId

func (x *LogSettings) GetCloudLogGroupId() string

func (*LogSettings) ProtoMessage

func (*LogSettings) ProtoMessage()

func (*LogSettings) ProtoReflect

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

func (*LogSettings) Reset

func (x *LogSettings) Reset()

func (*LogSettings) SetCloudLogGroupId

func (m *LogSettings) SetCloudLogGroupId(v string)

func (*LogSettings) String

func (x *LogSettings) String() string

type Status

type Status int32

Agent status.

const (
	// Status is not specified.
	Status_STATUS_UNSPECIFIED Status = 0
	// Agent is preparing a test to be executed.
	Status_PREPARING_TEST Status = 1
	// Agent is ready to take a test.
	Status_READY_FOR_TEST Status = 2
	// Agent is executing a test.
	Status_TESTING Status = 3
	// Agent application encountered an error and cannot operate normally.
	Status_TANK_FAILED Status = 4
	// Agent is waiting for resources to be allocated.
	Status_PROVISIONING Status = 5
	// Agent is being stopped.
	Status_STOPPING Status = 6
	// Agent is stopped.
	Status_STOPPED Status = 7
	// Agent is being started.
	Status_STARTING Status = 8
	// Agent is being restarted.
	Status_RESTARTING Status = 9
	// Agent is being updated.
	Status_UPDATING Status = 10
	// Agent encountered an error and cannot operate.
	Status_ERROR Status = 11
	// Agent is crashed and will be restarted automatically.
	Status_CRASHED Status = 12
	// Agent is being deleted.
	Status_DELETING Status = 13
	// Service is waiting for connection with agent to be established.
	Status_INITIALIZING_CONNECTION Status = 15
	// Service has lost connection with agent.
	Status_LOST_CONNECTION_WITH_AGENT Status = 16
	// Agent is uploading test artifacts.
	Status_UPLOADING_ARTIFACTS Status = 17
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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