report

package
v0.0.0-...-6bcc214 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Aggregation_name = map[int32]string{
		0: "AGGREGATION_UNSPECIFIED",
		1: "AGGREGATION_MIN",
		2: "AGGREGATION_MAX",
		4: "AGGREGATION_AVG",
		5: "AGGREGATION_MEDIAN",
		6: "AGGREGATION_STD_DEV",
	}
	Aggregation_value = map[string]int32{
		"AGGREGATION_UNSPECIFIED": 0,
		"AGGREGATION_MIN":         1,
		"AGGREGATION_MAX":         2,
		"AGGREGATION_AVG":         4,
		"AGGREGATION_MEDIAN":      5,
		"AGGREGATION_STD_DEV":     6,
	}
)

Enum value maps for Aggregation.

View Source
var (
	Comparison_name = map[int32]string{
		0: "COMPARISON_UNSPECIFIED",
		1: "COMPARISON_LT",
		2: "COMPARISON_LTE",
		3: "COMPARISON_GT",
		4: "COMPARISON_GTE",
	}
	Comparison_value = map[string]int32{
		"COMPARISON_UNSPECIFIED": 0,
		"COMPARISON_LT":          1,
		"COMPARISON_LTE":         2,
		"COMPARISON_GT":          3,
		"COMPARISON_GTE":         4,
	}
)

Enum value maps for Comparison.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "COLLECTING",
		2: "CALCULATING",
		3: "READY",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"COLLECTING":         1,
		"CALCULATING":        2,
		"READY":              3,
	}
)

Enum value maps for Status.

View Source
var File_yandex_cloud_loadtesting_api_v1_report_kpi_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_loadtesting_api_v1_report_kpi_value_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_loadtesting_api_v1_report_status_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Aggregation

type Aggregation int32

Aggregation function.

const (
	// Unspecified.
	Aggregation_AGGREGATION_UNSPECIFIED Aggregation = 0
	// Minimum.
	Aggregation_AGGREGATION_MIN Aggregation = 1
	// Maximum.
	Aggregation_AGGREGATION_MAX Aggregation = 2
	// Average.
	Aggregation_AGGREGATION_AVG Aggregation = 4
	// Median.
	Aggregation_AGGREGATION_MEDIAN Aggregation = 5
	// Standard deviation.
	Aggregation_AGGREGATION_STD_DEV Aggregation = 6
)

func (Aggregation) Descriptor

func (Aggregation) Enum

func (x Aggregation) Enum() *Aggregation

func (Aggregation) EnumDescriptor deprecated

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

Deprecated: Use Aggregation.Descriptor instead.

func (Aggregation) Number

func (x Aggregation) Number() protoreflect.EnumNumber

func (Aggregation) String

func (x Aggregation) String() string

func (Aggregation) Type

type Comparison

type Comparison int32

Comparison operator.

const (
	// Unspecified.
	Comparison_COMPARISON_UNSPECIFIED Comparison = 0
	// Less than the specified value.
	Comparison_COMPARISON_LT Comparison = 1
	// Less than or equal to the specified value.
	Comparison_COMPARISON_LTE Comparison = 2
	// Greater than the specified value.
	Comparison_COMPARISON_GT Comparison = 3
	// Greater than or equal to the specified value.
	Comparison_COMPARISON_GTE Comparison = 4
)

func (Comparison) Descriptor

func (Comparison) Descriptor() protoreflect.EnumDescriptor

func (Comparison) Enum

func (x Comparison) Enum() *Comparison

func (Comparison) EnumDescriptor deprecated

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

Deprecated: Use Comparison.Descriptor instead.

func (Comparison) Number

func (x Comparison) Number() protoreflect.EnumNumber

func (Comparison) String

func (x Comparison) String() string

func (Comparison) Type

type Kpi

type Kpi struct {

	// Kind of KPI.
	Selector *KpiSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
	// A condition that should be specified.
	Threshold *KpiThreshold `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

KPI (Key Performance Indicator) represents some integral indicator measured during test.

func (*Kpi) Descriptor deprecated

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

Deprecated: Use Kpi.ProtoReflect.Descriptor instead.

func (*Kpi) GetSelector

func (x *Kpi) GetSelector() *KpiSelector

func (*Kpi) GetThreshold

func (x *Kpi) GetThreshold() *KpiThreshold

func (*Kpi) ProtoMessage

func (*Kpi) ProtoMessage()

func (*Kpi) ProtoReflect

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

func (*Kpi) Reset

func (x *Kpi) Reset()

func (*Kpi) SetSelector

func (m *Kpi) SetSelector(v *KpiSelector)

func (*Kpi) SetThreshold

func (m *Kpi) SetThreshold(v *KpiThreshold)

func (*Kpi) String

func (x *Kpi) String() string

type KpiSelector

type KpiSelector struct {

	// Types that are assignable to Kind:
	//
	//	*KpiSelector_ResponseTime_
	//	*KpiSelector_Instances_
	//	*KpiSelector_ImbalanceRps_
	//	*KpiSelector_ProtocolCodesAbsolute_
	//	*KpiSelector_ProtocolCodesRelative_
	//	*KpiSelector_NetworkCodesAbsolute_
	//	*KpiSelector_NetworkCodesRelative_
	Kind isKpiSelector_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

KPI selector.

func (*KpiSelector) Descriptor deprecated

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

Deprecated: Use KpiSelector.ProtoReflect.Descriptor instead.

func (*KpiSelector) GetImbalanceRps

func (x *KpiSelector) GetImbalanceRps() *KpiSelector_ImbalanceRps

func (*KpiSelector) GetInstances

func (x *KpiSelector) GetInstances() *KpiSelector_Instances

func (*KpiSelector) GetKind

func (m *KpiSelector) GetKind() isKpiSelector_Kind

func (*KpiSelector) GetNetworkCodesAbsolute

func (x *KpiSelector) GetNetworkCodesAbsolute() *KpiSelector_NetworkCodesAbsolute

func (*KpiSelector) GetNetworkCodesRelative

func (x *KpiSelector) GetNetworkCodesRelative() *KpiSelector_NetworkCodesRelative

func (*KpiSelector) GetProtocolCodesAbsolute

func (x *KpiSelector) GetProtocolCodesAbsolute() *KpiSelector_ProtocolCodesAbsolute

func (*KpiSelector) GetProtocolCodesRelative

func (x *KpiSelector) GetProtocolCodesRelative() *KpiSelector_ProtocolCodesRelative

func (*KpiSelector) GetResponseTime

func (x *KpiSelector) GetResponseTime() *KpiSelector_ResponseTime

func (*KpiSelector) ProtoMessage

func (*KpiSelector) ProtoMessage()

func (*KpiSelector) ProtoReflect

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

func (*KpiSelector) Reset

func (x *KpiSelector) Reset()

func (*KpiSelector) SetImbalanceRps

func (m *KpiSelector) SetImbalanceRps(v *KpiSelector_ImbalanceRps)

func (*KpiSelector) SetInstances

func (m *KpiSelector) SetInstances(v *KpiSelector_Instances)

func (*KpiSelector) SetKind

func (m *KpiSelector) SetKind(v KpiSelector_Kind)

func (*KpiSelector) SetNetworkCodesAbsolute

func (m *KpiSelector) SetNetworkCodesAbsolute(v *KpiSelector_NetworkCodesAbsolute)

func (*KpiSelector) SetNetworkCodesRelative

func (m *KpiSelector) SetNetworkCodesRelative(v *KpiSelector_NetworkCodesRelative)

func (*KpiSelector) SetProtocolCodesAbsolute

func (m *KpiSelector) SetProtocolCodesAbsolute(v *KpiSelector_ProtocolCodesAbsolute)

func (*KpiSelector) SetProtocolCodesRelative

func (m *KpiSelector) SetProtocolCodesRelative(v *KpiSelector_ProtocolCodesRelative)

func (*KpiSelector) SetResponseTime

func (m *KpiSelector) SetResponseTime(v *KpiSelector_ResponseTime)

func (*KpiSelector) String

func (x *KpiSelector) String() string

type KpiSelector_ImbalanceRps

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

Imbalance RPS.

func (*KpiSelector_ImbalanceRps) Descriptor deprecated

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

Deprecated: Use KpiSelector_ImbalanceRps.ProtoReflect.Descriptor instead.

func (*KpiSelector_ImbalanceRps) ProtoMessage

func (*KpiSelector_ImbalanceRps) ProtoMessage()

func (*KpiSelector_ImbalanceRps) ProtoReflect

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

func (*KpiSelector_ImbalanceRps) Reset

func (x *KpiSelector_ImbalanceRps) Reset()

func (*KpiSelector_ImbalanceRps) String

func (x *KpiSelector_ImbalanceRps) String() string

type KpiSelector_ImbalanceRps_

type KpiSelector_ImbalanceRps_ struct {
	// An RPS at the moment the test has been auto-stopped.
	ImbalanceRps *KpiSelector_ImbalanceRps `protobuf:"bytes,3,opt,name=imbalance_rps,json=imbalanceRps,proto3,oneof"`
}

type KpiSelector_Instances

type KpiSelector_Instances struct {

	// Aggregation function.
	Agg Aggregation `protobuf:"varint,1,opt,name=agg,proto3,enum=yandex.cloud.loadtesting.api.v1.report.Aggregation" json:"agg,omitempty"`
	// contains filtered or unexported fields
}

Aggregated number of instances.

func (*KpiSelector_Instances) Descriptor deprecated

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

Deprecated: Use KpiSelector_Instances.ProtoReflect.Descriptor instead.

func (*KpiSelector_Instances) GetAgg

func (x *KpiSelector_Instances) GetAgg() Aggregation

func (*KpiSelector_Instances) ProtoMessage

func (*KpiSelector_Instances) ProtoMessage()

func (*KpiSelector_Instances) ProtoReflect

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

func (*KpiSelector_Instances) Reset

func (x *KpiSelector_Instances) Reset()

func (*KpiSelector_Instances) SetAgg

func (m *KpiSelector_Instances) SetAgg(v Aggregation)

func (*KpiSelector_Instances) String

func (x *KpiSelector_Instances) String() string

type KpiSelector_Instances_

type KpiSelector_Instances_ struct {
	// A number of instances throughout the test.
	Instances *KpiSelector_Instances `protobuf:"bytes,2,opt,name=instances,proto3,oneof"`
}

type KpiSelector_Kind

type KpiSelector_Kind = isKpiSelector_Kind

type KpiSelector_NetworkCodesAbsolute

type KpiSelector_NetworkCodesAbsolute struct {

	// Network code patterns to match.
	//
	// All successful network responses: ['0'].
	// All failed network responses: ['xx', 'xxx'].
	CodesPatterns []string `protobuf:"bytes,1,rep,name=codes_patterns,json=codesPatterns,proto3" json:"codes_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*KpiSelector_NetworkCodesAbsolute) Descriptor deprecated

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

Deprecated: Use KpiSelector_NetworkCodesAbsolute.ProtoReflect.Descriptor instead.

func (*KpiSelector_NetworkCodesAbsolute) GetCodesPatterns

func (x *KpiSelector_NetworkCodesAbsolute) GetCodesPatterns() []string

func (*KpiSelector_NetworkCodesAbsolute) ProtoMessage

func (*KpiSelector_NetworkCodesAbsolute) ProtoMessage()

func (*KpiSelector_NetworkCodesAbsolute) ProtoReflect

func (*KpiSelector_NetworkCodesAbsolute) Reset

func (*KpiSelector_NetworkCodesAbsolute) SetCodesPatterns

func (m *KpiSelector_NetworkCodesAbsolute) SetCodesPatterns(v []string)

func (*KpiSelector_NetworkCodesAbsolute) String

type KpiSelector_NetworkCodesAbsolute_

type KpiSelector_NetworkCodesAbsolute_ struct {
	// A total number of requests completed with certain network codes.
	NetworkCodesAbsolute *KpiSelector_NetworkCodesAbsolute `protobuf:"bytes,6,opt,name=network_codes_absolute,json=networkCodesAbsolute,proto3,oneof"`
}

type KpiSelector_NetworkCodesRelative

type KpiSelector_NetworkCodesRelative struct {

	// Network code patterns to match.
	//
	// All successful network responses: ['0'].
	// All failed network responses: ['xx', 'xxx'].
	CodesPatterns []string `protobuf:"bytes,1,rep,name=codes_patterns,json=codesPatterns,proto3" json:"codes_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*KpiSelector_NetworkCodesRelative) Descriptor deprecated

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

Deprecated: Use KpiSelector_NetworkCodesRelative.ProtoReflect.Descriptor instead.

func (*KpiSelector_NetworkCodesRelative) GetCodesPatterns

func (x *KpiSelector_NetworkCodesRelative) GetCodesPatterns() []string

func (*KpiSelector_NetworkCodesRelative) ProtoMessage

func (*KpiSelector_NetworkCodesRelative) ProtoMessage()

func (*KpiSelector_NetworkCodesRelative) ProtoReflect

func (*KpiSelector_NetworkCodesRelative) Reset

func (*KpiSelector_NetworkCodesRelative) SetCodesPatterns

func (m *KpiSelector_NetworkCodesRelative) SetCodesPatterns(v []string)

func (*KpiSelector_NetworkCodesRelative) String

type KpiSelector_NetworkCodesRelative_

type KpiSelector_NetworkCodesRelative_ struct {
	// A percentage of requests completed with certain network codes.
	NetworkCodesRelative *KpiSelector_NetworkCodesRelative `protobuf:"bytes,7,opt,name=network_codes_relative,json=networkCodesRelative,proto3,oneof"`
}

type KpiSelector_ProtocolCodesAbsolute

type KpiSelector_ProtocolCodesAbsolute struct {

	// Protocol (HTTP, GRPC) code patterns to match.
	//
	// All successful HTTP responses: ['2xx', '3xx'].
	// All failed HTTP responses: ['0', '4xx', '5xx'].
	CodesPatterns []string `protobuf:"bytes,1,rep,name=codes_patterns,json=codesPatterns,proto3" json:"codes_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*KpiSelector_ProtocolCodesAbsolute) Descriptor deprecated

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

Deprecated: Use KpiSelector_ProtocolCodesAbsolute.ProtoReflect.Descriptor instead.

func (*KpiSelector_ProtocolCodesAbsolute) GetCodesPatterns

func (x *KpiSelector_ProtocolCodesAbsolute) GetCodesPatterns() []string

func (*KpiSelector_ProtocolCodesAbsolute) ProtoMessage

func (*KpiSelector_ProtocolCodesAbsolute) ProtoMessage()

func (*KpiSelector_ProtocolCodesAbsolute) ProtoReflect

func (*KpiSelector_ProtocolCodesAbsolute) Reset

func (*KpiSelector_ProtocolCodesAbsolute) SetCodesPatterns

func (m *KpiSelector_ProtocolCodesAbsolute) SetCodesPatterns(v []string)

func (*KpiSelector_ProtocolCodesAbsolute) String

type KpiSelector_ProtocolCodesAbsolute_

type KpiSelector_ProtocolCodesAbsolute_ struct {
	// A total number of requests completed with certain protocol (HTTP, GRPC, etc.) codes.
	ProtocolCodesAbsolute *KpiSelector_ProtocolCodesAbsolute `protobuf:"bytes,4,opt,name=protocol_codes_absolute,json=protocolCodesAbsolute,proto3,oneof"`
}

type KpiSelector_ProtocolCodesRelative

type KpiSelector_ProtocolCodesRelative struct {

	// Protocol (HTTP, GRPC) code patterns to match.
	//
	// All successful HTTP responses: ['2xx', '3xx'].
	// All failed HTTP responses: ['0', '4xx', '5xx'].
	CodesPatterns []string `protobuf:"bytes,1,rep,name=codes_patterns,json=codesPatterns,proto3" json:"codes_patterns,omitempty"`
	// contains filtered or unexported fields
}

func (*KpiSelector_ProtocolCodesRelative) Descriptor deprecated

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

Deprecated: Use KpiSelector_ProtocolCodesRelative.ProtoReflect.Descriptor instead.

func (*KpiSelector_ProtocolCodesRelative) GetCodesPatterns

func (x *KpiSelector_ProtocolCodesRelative) GetCodesPatterns() []string

func (*KpiSelector_ProtocolCodesRelative) ProtoMessage

func (*KpiSelector_ProtocolCodesRelative) ProtoMessage()

func (*KpiSelector_ProtocolCodesRelative) ProtoReflect

func (*KpiSelector_ProtocolCodesRelative) Reset

func (*KpiSelector_ProtocolCodesRelative) SetCodesPatterns

func (m *KpiSelector_ProtocolCodesRelative) SetCodesPatterns(v []string)

func (*KpiSelector_ProtocolCodesRelative) String

type KpiSelector_ProtocolCodesRelative_

type KpiSelector_ProtocolCodesRelative_ struct {
	// A percentage of requests completed with certain protocol (HTTP, GRPC, etc.) codes.
	ProtocolCodesRelative *KpiSelector_ProtocolCodesRelative `protobuf:"bytes,5,opt,name=protocol_codes_relative,json=protocolCodesRelative,proto3,oneof"`
}

type KpiSelector_ResponseTime

type KpiSelector_ResponseTime struct {

	// Cummulative quantile (percentile).
	Quantile common.QuantileType `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response time.

func (*KpiSelector_ResponseTime) Descriptor deprecated

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

Deprecated: Use KpiSelector_ResponseTime.ProtoReflect.Descriptor instead.

func (*KpiSelector_ResponseTime) GetQuantile

func (x *KpiSelector_ResponseTime) GetQuantile() common.QuantileType

func (*KpiSelector_ResponseTime) ProtoMessage

func (*KpiSelector_ResponseTime) ProtoMessage()

func (*KpiSelector_ResponseTime) ProtoReflect

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

func (*KpiSelector_ResponseTime) Reset

func (x *KpiSelector_ResponseTime) Reset()

func (*KpiSelector_ResponseTime) SetQuantile

func (m *KpiSelector_ResponseTime) SetQuantile(v common.QuantileType)

func (*KpiSelector_ResponseTime) String

func (x *KpiSelector_ResponseTime) String() string

type KpiSelector_ResponseTime_

type KpiSelector_ResponseTime_ struct {
	// Response time cummulative quantile (percentile).
	ResponseTime *KpiSelector_ResponseTime `protobuf:"bytes,1,opt,name=response_time,json=responseTime,proto3,oneof"`
}

type KpiThreshold

type KpiThreshold struct {

	// Value for comparison with an actual KPI value.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// Comparison operator for comparing actual with the threshold value.
	//
	// Rule: actual (</<=/>/>=) reference
	Comparison Comparison `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

KPI threshold represents a condition that an actual value of test's KPI should satisfy.

func (*KpiThreshold) Descriptor deprecated

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

Deprecated: Use KpiThreshold.ProtoReflect.Descriptor instead.

func (*KpiThreshold) GetComparison

func (x *KpiThreshold) GetComparison() Comparison

func (*KpiThreshold) GetValue

func (x *KpiThreshold) GetValue() float64

func (*KpiThreshold) ProtoMessage

func (*KpiThreshold) ProtoMessage()

func (*KpiThreshold) ProtoReflect

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

func (*KpiThreshold) Reset

func (x *KpiThreshold) Reset()

func (*KpiThreshold) SetComparison

func (m *KpiThreshold) SetComparison(v Comparison)

func (*KpiThreshold) SetValue

func (m *KpiThreshold) SetValue(v float64)

func (*KpiThreshold) String

func (x *KpiThreshold) String() string

type KpiValue

type KpiValue struct {

	// ID of a test.
	TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	// Value of KPI.
	Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// A flag indicating whether the value satisfies KPI threshold condition.
	IsOk bool `protobuf:"varint,3,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"`
	// contains filtered or unexported fields
}

An actual value of test's KPI.

func (*KpiValue) Descriptor deprecated

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

Deprecated: Use KpiValue.ProtoReflect.Descriptor instead.

func (*KpiValue) GetIsOk

func (x *KpiValue) GetIsOk() bool

func (*KpiValue) GetTestId

func (x *KpiValue) GetTestId() string

func (*KpiValue) GetValue

func (x *KpiValue) GetValue() float64

func (*KpiValue) ProtoMessage

func (*KpiValue) ProtoMessage()

func (*KpiValue) ProtoReflect

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

func (*KpiValue) Reset

func (x *KpiValue) Reset()

func (*KpiValue) SetIsOk

func (m *KpiValue) SetIsOk(v bool)

func (*KpiValue) SetTestId

func (m *KpiValue) SetTestId(v string)

func (*KpiValue) SetValue

func (m *KpiValue) SetValue(v float64)

func (*KpiValue) String

func (x *KpiValue) String() string

type Status

type Status int32

Report status.

const (
	// Status is not specified.
	Status_STATUS_UNSPECIFIED Status = 0
	// Report is being collected.
	Status_COLLECTING Status = 1
	// Report is being calculated.
	Status_CALCULATING Status = 2
	// Report is ready.
	Status_READY Status = 3
)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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