types

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {

	// The canonical name of the alias.
	Name *string

	// A list of names for the alias, including the canonical name.
	Names []string

	// The type of the alias.
	Type *string
	// contains filtered or unexported fields
}

An alias for an edge.

type AnnotationValue

type AnnotationValue interface {
	// contains filtered or unexported methods
}

Value of a segment annotation. Has one of three value types: Number, Boolean, or String.

The following types satisfy this interface:

AnnotationValueMemberBooleanValue
AnnotationValueMemberNumberValue
AnnotationValueMemberStringValue
Example (OutputUsage)
// Code generated by smithy-go-codegen DO NOT EDIT.

package main

import (
	"fmt"
	"github.com/aws/aws-sdk-go-v2/service/xray/types"
)

func main() {
	var union types.AnnotationValue
	// type switches can be used to check the union value
	switch v := union.(type) {
	case *types.AnnotationValueMemberBooleanValue:
		_ = v.Value // Value is bool

	case *types.AnnotationValueMemberNumberValue:
		_ = v.Value // Value is float64

	case *types.AnnotationValueMemberStringValue:
		_ = v.Value // Value is string

	case *types.UnknownUnionMember:
		fmt.Println("unknown tag:", v.Tag)

	default:
		fmt.Println("union is nil or unknown type")

	}
}

var _ *string
var _ *bool
var _ *float64
Output:

type AnnotationValueMemberBooleanValue added in v0.31.0

type AnnotationValueMemberBooleanValue struct {
	Value bool
	// contains filtered or unexported fields
}

Value for a Boolean annotation.

type AnnotationValueMemberNumberValue added in v0.31.0

type AnnotationValueMemberNumberValue struct {
	Value float64
	// contains filtered or unexported fields
}

Value for a Number annotation.

type AnnotationValueMemberStringValue added in v0.31.0

type AnnotationValueMemberStringValue struct {
	Value string
	// contains filtered or unexported fields
}

Value for a String annotation.

type AnomalousService added in v0.30.0

type AnomalousService struct {

	//
	ServiceId *ServiceId
	// contains filtered or unexported fields
}

The service within the service graph that has anomalously high fault rates.

type AvailabilityZoneDetail

type AvailabilityZoneDetail struct {

	// The name of a corresponding Availability Zone.
	Name *string
	// contains filtered or unexported fields
}

A list of Availability Zones corresponding to the segments in a trace.

type BackendConnectionErrors

type BackendConnectionErrors struct {

	//
	ConnectionRefusedCount *int32

	//
	HTTPCode4XXCount *int32

	//
	HTTPCode5XXCount *int32

	//
	OtherCount *int32

	//
	TimeoutCount *int32

	//
	UnknownHostCount *int32
	// contains filtered or unexported fields
}

type Edge

type Edge struct {

	// Aliases for the edge.
	Aliases []Alias

	// Describes an asynchronous connection, with a value of link .
	EdgeType *string

	// The end time of the last segment on the edge.
	EndTime *time.Time

	// A histogram that maps the spread of event age when received by consumers. Age
	// is calculated each time an event is received. Only populated when EdgeType is
	// link .
	ReceivedEventAgeHistogram []HistogramEntry

	// Identifier of the edge. Unique within a service map.
	ReferenceId *int32

	// A histogram that maps the spread of client response times on an edge. Only
	// populated for synchronous edges.
	ResponseTimeHistogram []HistogramEntry

	// The start time of the first segment on the edge.
	StartTime *time.Time

	// Response statistics for segments on the edge.
	SummaryStatistics *EdgeStatistics
	// contains filtered or unexported fields
}

Information about a connection between two services. An edge can be a synchronous connection, such as typical call between client and service, or an asynchronous link, such as a Lambda function which retrieves an event from an SNS queue.

type EdgeStatistics

type EdgeStatistics struct {

	// Information about requests that failed with a 4xx Client Error status code.
	ErrorStatistics *ErrorStatistics

	// Information about requests that failed with a 5xx Server Error status code.
	FaultStatistics *FaultStatistics

	// The number of requests that completed with a 2xx Success status code.
	OkCount *int64

	// The total number of completed requests.
	TotalCount *int64

	// The aggregate response time of completed requests.
	TotalResponseTime *float64
	// contains filtered or unexported fields
}

Response statistics for an edge.

type EncryptionConfig

type EncryptionConfig struct {

	// The ID of the KMS key used for encryption, if applicable.
	KeyId *string

	// The encryption status. While the status is UPDATING , X-Ray may encrypt data
	// with a combination of the new and old settings.
	Status EncryptionStatus

	// The type of encryption. Set to KMS for encryption with KMS keys. Set to NONE
	// for default encryption.
	Type EncryptionType
	// contains filtered or unexported fields
}

A configuration document that specifies encryption configuration settings.

type EncryptionStatus

type EncryptionStatus string
const (
	EncryptionStatusUpdating EncryptionStatus = "UPDATING"
	EncryptionStatusActive   EncryptionStatus = "ACTIVE"
)

Enum values for EncryptionStatus

func (EncryptionStatus) Values added in v0.29.0

Values returns all known values for EncryptionStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type EncryptionType

type EncryptionType string
const (
	EncryptionTypeNone EncryptionType = "NONE"
	EncryptionTypeKms  EncryptionType = "KMS"
)

Enum values for EncryptionType

func (EncryptionType) Values added in v0.29.0

func (EncryptionType) Values() []EncryptionType

Values returns all known values for EncryptionType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ErrorRootCause

type ErrorRootCause struct {

	// A flag that denotes that the root cause impacts the trace client.
	ClientImpacting *bool

	// A list of services corresponding to an error. A service identifies a segment
	// and it contains a name, account ID, type, and inferred flag.
	Services []ErrorRootCauseService
	// contains filtered or unexported fields
}

The root cause of a trace summary error.

type ErrorRootCauseEntity

type ErrorRootCauseEntity struct {

	// The types and messages of the exceptions.
	Exceptions []RootCauseException

	// The name of the entity.
	Name *string

	// A flag that denotes a remote subsegment.
	Remote *bool
	// contains filtered or unexported fields
}

A collection of segments and corresponding subsegments associated to a trace summary error.

type ErrorRootCauseService

type ErrorRootCauseService struct {

	// The account ID associated to the service.
	AccountId *string

	// The path of root cause entities found on the service.
	EntityPath []ErrorRootCauseEntity

	// A Boolean value indicating if the service is inferred from the trace.
	Inferred *bool

	// The service name.
	Name *string

	// A collection of associated service names.
	Names []string

	// The type associated to the service.
	Type *string
	// contains filtered or unexported fields
}

A collection of fields identifying the services in a trace summary error.

type ErrorStatistics

type ErrorStatistics struct {

	// The number of requests that failed with untracked 4xx Client Error status codes.
	OtherCount *int64

	// The number of requests that failed with a 419 throttling status code.
	ThrottleCount *int64

	// The total number of requests that failed with a 4xx Client Error status code.
	TotalCount *int64
	// contains filtered or unexported fields
}

Information about requests that failed with a 4xx Client Error status code.

type FaultRootCause

type FaultRootCause struct {

	// A flag that denotes that the root cause impacts the trace client.
	ClientImpacting *bool

	// A list of corresponding services. A service identifies a segment and it
	// contains a name, account ID, type, and inferred flag.
	Services []FaultRootCauseService
	// contains filtered or unexported fields
}

The root cause information for a trace summary fault.

type FaultRootCauseEntity

type FaultRootCauseEntity struct {

	// The types and messages of the exceptions.
	Exceptions []RootCauseException

	// The name of the entity.
	Name *string

	// A flag that denotes a remote subsegment.
	Remote *bool
	// contains filtered or unexported fields
}

A collection of segments and corresponding subsegments associated to a trace summary fault error.

type FaultRootCauseService

type FaultRootCauseService struct {

	// The account ID associated to the service.
	AccountId *string

	// The path of root cause entities found on the service.
	EntityPath []FaultRootCauseEntity

	// A Boolean value indicating if the service is inferred from the trace.
	Inferred *bool

	// The service name.
	Name *string

	// A collection of associated service names.
	Names []string

	// The type associated to the service.
	Type *string
	// contains filtered or unexported fields
}

A collection of fields identifying the services in a trace summary fault.

type FaultStatistics

type FaultStatistics struct {

	// The number of requests that failed with untracked 5xx Server Error status codes.
	OtherCount *int64

	// The total number of requests that failed with a 5xx Server Error status code.
	TotalCount *int64
	// contains filtered or unexported fields
}

Information about requests that failed with a 5xx Server Error status code.

type ForecastStatistics added in v0.30.0

type ForecastStatistics struct {

	// The upper limit of fault counts for a service.
	FaultCountHigh *int64

	// The lower limit of fault counts for a service.
	FaultCountLow *int64
	// contains filtered or unexported fields
}

The predicted high and low fault count. This is used to determine if a service has become anomalous and if an insight should be created.

type Group

type Group struct {

	// The filter expression defining the parameters to include traces.
	FilterExpression *string

	// The Amazon Resource Name (ARN) of the group generated based on the GroupName.
	GroupARN *string

	// The unique case-sensitive name of the group.
	GroupName *string

	// The structure containing configurations related to insights.
	//   - The InsightsEnabled boolean can be set to true to enable insights for the
	//   group or false to disable insights for the group.
	//   - The NotificationsEnabled boolean can be set to true to enable insights
	//   notifications through Amazon EventBridge for the group.
	InsightsConfiguration *InsightsConfiguration
	// contains filtered or unexported fields
}

Details and metadata for a group.

type GroupSummary

type GroupSummary struct {

	// The filter expression defining the parameters to include traces.
	FilterExpression *string

	// The ARN of the group generated based on the GroupName.
	GroupARN *string

	// The unique case-sensitive name of the group.
	GroupName *string

	// The structure containing configurations related to insights.
	//   - The InsightsEnabled boolean can be set to true to enable insights for the
	//   group or false to disable insights for the group.
	//   - The NotificationsEnabled boolean can be set to true to enable insights
	//   notifications. Notifications can only be enabled on a group with InsightsEnabled
	//   set to true.
	InsightsConfiguration *InsightsConfiguration
	// contains filtered or unexported fields
}

Details for a group without metadata.

type HistogramEntry

type HistogramEntry struct {

	// The prevalence of the entry.
	Count int32

	// The value of the entry.
	Value float64
	// contains filtered or unexported fields
}

An entry in a histogram for a statistic. A histogram maps the range of observed values on the X axis, and the prevalence of each value on the Y axis.

type Http

type Http struct {

	// The IP address of the requestor.
	ClientIp *string

	// The request method.
	HttpMethod *string

	// The response status.
	HttpStatus *int32

	// The request URL.
	HttpURL *string

	// The request's user agent string.
	UserAgent *string
	// contains filtered or unexported fields
}

Information about an HTTP request.

type Insight added in v0.30.0

type Insight struct {

	// The categories that label and describe the type of insight.
	Categories []InsightCategory

	// The impact statistics of the client side service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	ClientRequestImpactStatistics *RequestImpactStatistics

	// The time, in Unix seconds, at which the insight ended.
	EndTime *time.Time

	// The Amazon Resource Name (ARN) of the group that the insight belongs to.
	GroupARN *string

	// The name of the group that the insight belongs to.
	GroupName *string

	// The insights unique identifier.
	InsightId *string

	//
	RootCauseServiceId *ServiceId

	// The impact statistics of the root cause service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	RootCauseServiceRequestImpactStatistics *RequestImpactStatistics

	// The time, in Unix seconds, at which the insight began.
	StartTime *time.Time

	// The current state of the insight.
	State InsightState

	// A brief description of the insight.
	Summary *string

	// The service within the insight that is most impacted by the incident.
	TopAnomalousServices []AnomalousService
	// contains filtered or unexported fields
}

When fault rates go outside of the expected range, X-Ray creates an insight. Insights tracks emergent issues within your applications.

type InsightCategory added in v0.30.0

type InsightCategory string
const (
	InsightCategoryFault InsightCategory = "FAULT"
)

Enum values for InsightCategory

func (InsightCategory) Values added in v0.30.0

func (InsightCategory) Values() []InsightCategory

Values returns all known values for InsightCategory. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InsightEvent added in v0.30.0

type InsightEvent struct {

	// The impact statistics of the client side service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	ClientRequestImpactStatistics *RequestImpactStatistics

	// The time, in Unix seconds, at which the event was recorded.
	EventTime *time.Time

	// The impact statistics of the root cause service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	RootCauseServiceRequestImpactStatistics *RequestImpactStatistics

	// A brief description of the event.
	Summary *string

	// The service during the event that is most impacted by the incident.
	TopAnomalousServices []AnomalousService
	// contains filtered or unexported fields
}

X-Ray reevaluates insights periodically until they are resolved, and records each intermediate state in an event. You can review incident events in the Impact Timeline on the Inspect page in the X-Ray console.

type InsightImpactGraphEdge added in v0.30.0

type InsightImpactGraphEdge struct {

	// Identifier of the edge. Unique within a service map.
	ReferenceId *int32
	// contains filtered or unexported fields
}

The connection between two service in an insight impact graph.

type InsightImpactGraphService added in v0.30.0

type InsightImpactGraphService struct {

	// Identifier of the Amazon Web Services account in which the service runs.
	AccountId *string

	// Connections to downstream services.
	Edges []InsightImpactGraphEdge

	// The canonical name of the service.
	Name *string

	// A list of names for the service, including the canonical name.
	Names []string

	// Identifier for the service. Unique within the service map.
	ReferenceId *int32

	// Identifier for the service. Unique within the service map.
	//   - Amazon Web Services Resource - The type of an Amazon Web Services resource.
	//   For example, AWS::EC2::Instance for an application running on Amazon EC2 or
	//   AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.
	//   - Amazon Web Services Service - The type of an Amazon Web Services service.
	//   For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't
	//   target a specific table.
	//   - Amazon Web Services Service - The type of an Amazon Web Services service.
	//   For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't
	//   target a specific table.
	//   - remote - A downstream service of indeterminate type.
	Type *string
	// contains filtered or unexported fields
}

Information about an application that processed requests, users that made requests, or downstream services, resources, and applications that an application used.

type InsightState added in v0.30.0

type InsightState string
const (
	InsightStateActive InsightState = "ACTIVE"
	InsightStateClosed InsightState = "CLOSED"
)

Enum values for InsightState

func (InsightState) Values added in v0.30.0

func (InsightState) Values() []InsightState

Values returns all known values for InsightState. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InsightSummary added in v0.30.0

type InsightSummary struct {

	// Categories The categories that label and describe the type of insight.
	Categories []InsightCategory

	// The impact statistics of the client side service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	ClientRequestImpactStatistics *RequestImpactStatistics

	// The time, in Unix seconds, at which the insight ended.
	EndTime *time.Time

	// The Amazon Resource Name (ARN) of the group that the insight belongs to.
	GroupARN *string

	// The name of the group that the insight belongs to.
	GroupName *string

	// The insights unique identifier.
	InsightId *string

	// The time, in Unix seconds, that the insight was last updated.
	LastUpdateTime *time.Time

	//
	RootCauseServiceId *ServiceId

	// The impact statistics of the root cause service. This includes the number of
	// requests to the client service and whether the requests were faults or okay.
	RootCauseServiceRequestImpactStatistics *RequestImpactStatistics

	// The time, in Unix seconds, at which the insight began.
	StartTime *time.Time

	// The current state of the insight.
	State InsightState

	// A brief description of the insight.
	Summary *string

	// The service within the insight that is most impacted by the incident.
	TopAnomalousServices []AnomalousService
	// contains filtered or unexported fields
}

Information that describes an insight.

type InsightsConfiguration added in v0.29.0

type InsightsConfiguration struct {

	// Set the InsightsEnabled value to true to enable insights or false to disable
	// insights.
	InsightsEnabled *bool

	// Set the NotificationsEnabled value to true to enable insights notifications.
	// Notifications can only be enabled on a group with InsightsEnabled set to true.
	NotificationsEnabled *bool
	// contains filtered or unexported fields
}

The structure containing configurations related to insights.

type InstanceIdDetail

type InstanceIdDetail struct {

	// The ID of a corresponding EC2 instance.
	Id *string
	// contains filtered or unexported fields
}

A list of EC2 instance IDs corresponding to the segments in a trace.

type InvalidPolicyRevisionIdException added in v1.15.0

type InvalidPolicyRevisionIdException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

A policy revision id was provided which does not match the latest policy revision. This exception is also if a policy revision id of 0 is provided via PutResourcePolicy and a policy with the same name already exists.

func (*InvalidPolicyRevisionIdException) Error added in v1.15.0

func (*InvalidPolicyRevisionIdException) ErrorCode added in v1.15.0

func (*InvalidPolicyRevisionIdException) ErrorFault added in v1.15.0

func (*InvalidPolicyRevisionIdException) ErrorMessage added in v1.15.0

func (e *InvalidPolicyRevisionIdException) ErrorMessage() string

type InvalidRequestException

type InvalidRequestException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request is missing required parameters or has invalid parameters.

func (*InvalidRequestException) Error

func (e *InvalidRequestException) Error() string

func (*InvalidRequestException) ErrorCode

func (e *InvalidRequestException) ErrorCode() string

func (*InvalidRequestException) ErrorFault

func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault

func (*InvalidRequestException) ErrorMessage

func (e *InvalidRequestException) ErrorMessage() string

type LockoutPreventionException added in v1.15.0

type LockoutPreventionException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The provided resource policy would prevent the caller of this request from calling PutResourcePolicy in the future.

func (*LockoutPreventionException) Error added in v1.15.0

func (*LockoutPreventionException) ErrorCode added in v1.15.0

func (e *LockoutPreventionException) ErrorCode() string

func (*LockoutPreventionException) ErrorFault added in v1.15.0

func (*LockoutPreventionException) ErrorMessage added in v1.15.0

func (e *LockoutPreventionException) ErrorMessage() string

type MalformedPolicyDocumentException added in v1.15.0

type MalformedPolicyDocumentException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Invalid policy document provided in request.

func (*MalformedPolicyDocumentException) Error added in v1.15.0

func (*MalformedPolicyDocumentException) ErrorCode added in v1.15.0

func (*MalformedPolicyDocumentException) ErrorFault added in v1.15.0

func (*MalformedPolicyDocumentException) ErrorMessage added in v1.15.0

func (e *MalformedPolicyDocumentException) ErrorMessage() string

type PolicyCountLimitExceededException added in v1.15.0

type PolicyCountLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Exceeded the maximum number of resource policies for a target Amazon Web Services account.

func (*PolicyCountLimitExceededException) Error added in v1.15.0

func (*PolicyCountLimitExceededException) ErrorCode added in v1.15.0

func (*PolicyCountLimitExceededException) ErrorFault added in v1.15.0

func (*PolicyCountLimitExceededException) ErrorMessage added in v1.15.0

func (e *PolicyCountLimitExceededException) ErrorMessage() string

type PolicySizeLimitExceededException added in v1.15.0

type PolicySizeLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Exceeded the maximum size for a resource policy.

func (*PolicySizeLimitExceededException) Error added in v1.15.0

func (*PolicySizeLimitExceededException) ErrorCode added in v1.15.0

func (*PolicySizeLimitExceededException) ErrorFault added in v1.15.0

func (*PolicySizeLimitExceededException) ErrorMessage added in v1.15.0

func (e *PolicySizeLimitExceededException) ErrorMessage() string

type RequestImpactStatistics added in v0.30.0

type RequestImpactStatistics struct {

	// The number of requests that have resulted in a fault,
	FaultCount *int64

	// The number of successful requests.
	OkCount *int64

	// The total number of requests to the service.
	TotalCount *int64
	// contains filtered or unexported fields
}

Statistics that describe how the incident has impacted a service.

type ResourceARNDetail

type ResourceARNDetail struct {

	// The ARN of a corresponding resource.
	ARN *string
	// contains filtered or unexported fields
}

A list of resources ARNs corresponding to the segments in a trace.

type ResourceNotFoundException added in v0.29.0

type ResourceNotFoundException struct {
	Message *string

	ErrorCodeOverride *string

	ResourceName *string
	// contains filtered or unexported fields
}

The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is correct.

func (*ResourceNotFoundException) Error added in v0.29.0

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode added in v0.29.0

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault added in v0.29.0

func (*ResourceNotFoundException) ErrorMessage added in v0.29.0

func (e *ResourceNotFoundException) ErrorMessage() string

type ResourcePolicy added in v1.15.0

type ResourcePolicy struct {

	// When the policy was last updated, in Unix time seconds.
	LastUpdatedTime *time.Time

	// The resource policy document, which can be up to 5kb in size.
	PolicyDocument *string

	// The name of the resource policy. Must be unique within a specific Amazon Web
	// Services account.
	PolicyName *string

	// Returns the current policy revision id for this policy name.
	PolicyRevisionId *string
	// contains filtered or unexported fields
}

A resource policy grants one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy is associated with a specific Amazon Web Services account.

type ResponseTimeRootCause

type ResponseTimeRootCause struct {

	// A flag that denotes that the root cause impacts the trace client.
	ClientImpacting *bool

	// A list of corresponding services. A service identifies a segment and contains a
	// name, account ID, type, and inferred flag.
	Services []ResponseTimeRootCauseService
	// contains filtered or unexported fields
}

The root cause information for a response time warning.

type ResponseTimeRootCauseEntity

type ResponseTimeRootCauseEntity struct {

	// The type and messages of the exceptions.
	Coverage *float64

	// The name of the entity.
	Name *string

	// A flag that denotes a remote subsegment.
	Remote *bool
	// contains filtered or unexported fields
}

A collection of segments and corresponding subsegments associated to a response time warning.

type ResponseTimeRootCauseService

type ResponseTimeRootCauseService struct {

	// The account ID associated to the service.
	AccountId *string

	// The path of root cause entities found on the service.
	EntityPath []ResponseTimeRootCauseEntity

	// A Boolean value indicating if the service is inferred from the trace.
	Inferred *bool

	// The service name.
	Name *string

	// A collection of associated service names.
	Names []string

	// The type associated to the service.
	Type *string
	// contains filtered or unexported fields
}

A collection of fields identifying the service in a response time warning.

type RootCauseException

type RootCauseException struct {

	// The message of the exception.
	Message *string

	// The name of the exception.
	Name *string
	// contains filtered or unexported fields
}

The exception associated with a root cause.

type RuleLimitExceededException

type RuleLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You have reached the maximum number of sampling rules.

func (*RuleLimitExceededException) Error

func (*RuleLimitExceededException) ErrorCode

func (e *RuleLimitExceededException) ErrorCode() string

func (*RuleLimitExceededException) ErrorFault

func (*RuleLimitExceededException) ErrorMessage

func (e *RuleLimitExceededException) ErrorMessage() string

type SamplingRule

type SamplingRule struct {

	// The percentage of matching requests to instrument, after the reservoir is
	// exhausted.
	//
	// This member is required.
	FixedRate float64

	// Matches the HTTP method of a request.
	//
	// This member is required.
	HTTPMethod *string

	// Matches the hostname from a request URL.
	//
	// This member is required.
	Host *string

	// The priority of the sampling rule.
	//
	// This member is required.
	Priority *int32

	// A fixed number of matching requests to instrument per second, prior to applying
	// the fixed rate. The reservoir is not used directly by services, but applies to
	// all services using the rule collectively.
	//
	// This member is required.
	ReservoirSize int32

	// Matches the ARN of the Amazon Web Services resource on which the service runs.
	//
	// This member is required.
	ResourceARN *string

	// Matches the name that the service uses to identify itself in segments.
	//
	// This member is required.
	ServiceName *string

	// Matches the origin that the service uses to identify its type in segments.
	//
	// This member is required.
	ServiceType *string

	// Matches the path from a request URL.
	//
	// This member is required.
	URLPath *string

	// The version of the sampling rule format ( 1 ).
	//
	// This member is required.
	Version *int32

	// Matches attributes derived from the request.
	Attributes map[string]string

	// The ARN of the sampling rule. Specify a rule by either name or ARN, but not
	// both.
	RuleARN *string

	// The name of the sampling rule. Specify a rule by either name or ARN, but not
	// both.
	RuleName *string
	// contains filtered or unexported fields
}

A sampling rule that services use to decide whether to instrument a request. Rule fields can match properties of the service, or properties of a request. The service can ignore rules that don't match its properties.

type SamplingRuleRecord

type SamplingRuleRecord struct {

	// When the rule was created.
	CreatedAt *time.Time

	// When the rule was last modified.
	ModifiedAt *time.Time

	// The sampling rule.
	SamplingRule *SamplingRule
	// contains filtered or unexported fields
}

A SamplingRule (https://docs.aws.amazon.com/xray/latest/api/API_SamplingRule.html) and its metadata.

type SamplingRuleUpdate

type SamplingRuleUpdate struct {

	// Matches attributes derived from the request.
	Attributes map[string]string

	// The percentage of matching requests to instrument, after the reservoir is
	// exhausted.
	FixedRate *float64

	// Matches the HTTP method of a request.
	HTTPMethod *string

	// Matches the hostname from a request URL.
	Host *string

	// The priority of the sampling rule.
	Priority *int32

	// A fixed number of matching requests to instrument per second, prior to applying
	// the fixed rate. The reservoir is not used directly by services, but applies to
	// all services using the rule collectively.
	ReservoirSize *int32

	// Matches the ARN of the Amazon Web Services resource on which the service runs.
	ResourceARN *string

	// The ARN of the sampling rule. Specify a rule by either name or ARN, but not
	// both.
	RuleARN *string

	// The name of the sampling rule. Specify a rule by either name or ARN, but not
	// both.
	RuleName *string

	// Matches the name that the service uses to identify itself in segments.
	ServiceName *string

	// Matches the origin that the service uses to identify its type in segments.
	ServiceType *string

	// Matches the path from a request URL.
	URLPath *string
	// contains filtered or unexported fields
}

A document specifying changes to a sampling rule's configuration.

type SamplingStatisticSummary

type SamplingStatisticSummary struct {

	// The number of requests recorded with borrowed reservoir quota.
	BorrowCount int32

	// The number of requests that matched the rule.
	RequestCount int32

	// The name of the sampling rule.
	RuleName *string

	// The number of requests recorded.
	SampledCount int32

	// The start time of the reporting window.
	Timestamp *time.Time
	// contains filtered or unexported fields
}

Aggregated request sampling data for a sampling rule across all services for a 10-second window.

type SamplingStatisticsDocument

type SamplingStatisticsDocument struct {

	// A unique identifier for the service in hexadecimal.
	//
	// This member is required.
	ClientID *string

	// The number of requests that matched the rule.
	//
	// This member is required.
	RequestCount int32

	// The name of the sampling rule.
	//
	// This member is required.
	RuleName *string

	// The number of requests recorded.
	//
	// This member is required.
	SampledCount int32

	// The current time.
	//
	// This member is required.
	Timestamp *time.Time

	// The number of requests recorded with borrowed reservoir quota.
	BorrowCount int32
	// contains filtered or unexported fields
}

Request sampling results for a single rule from a service. Results are for the last 10 seconds unless the service has been assigned a longer reporting interval after a previous call to GetSamplingTargets (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) .

type SamplingStrategy

type SamplingStrategy struct {

	// The name of a sampling rule.
	Name SamplingStrategyName

	// The value of a sampling rule.
	Value *float64
	// contains filtered or unexported fields
}

The name and value of a sampling rule to apply to a trace summary.

type SamplingStrategyName

type SamplingStrategyName string
const (
	SamplingStrategyNamePartialScan SamplingStrategyName = "PartialScan"
	SamplingStrategyNameFixedRate   SamplingStrategyName = "FixedRate"
)

Enum values for SamplingStrategyName

func (SamplingStrategyName) Values added in v0.29.0

Values returns all known values for SamplingStrategyName. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SamplingTargetDocument

type SamplingTargetDocument struct {

	// The percentage of matching requests to instrument, after the reservoir is
	// exhausted.
	FixedRate float64

	// The number of seconds for the service to wait before getting sampling targets
	// again.
	Interval *int32

	// The number of requests per second that X-Ray allocated for this service.
	ReservoirQuota *int32

	// When the reservoir quota expires.
	ReservoirQuotaTTL *time.Time

	// The name of the sampling rule.
	RuleName *string
	// contains filtered or unexported fields
}

Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) .

type Segment

type Segment struct {

	// The segment document.
	Document *string

	// The segment's ID.
	Id *string
	// contains filtered or unexported fields
}

A segment from a trace that has been ingested by the X-Ray service. The segment can be compiled from documents uploaded with PutTraceSegments (https://docs.aws.amazon.com/xray/latest/api/API_PutTraceSegments.html) , or an inferred segment for a downstream service, generated from a subsegment sent by the service that called it. For the full segment document schema, see Amazon Web Services X-Ray Segment Documents (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html) in the Amazon Web Services X-Ray Developer Guide.

type Service

type Service struct {

	// Identifier of the Amazon Web Services account in which the service runs.
	AccountId *string

	// A histogram that maps the spread of service durations.
	DurationHistogram []HistogramEntry

	// Connections to downstream services.
	Edges []Edge

	// The end time of the last segment that the service generated.
	EndTime *time.Time

	// The canonical name of the service.
	Name *string

	// A list of names for the service, including the canonical name.
	Names []string

	// Identifier for the service. Unique within the service map.
	ReferenceId *int32

	// A histogram that maps the spread of service response times.
	ResponseTimeHistogram []HistogramEntry

	// Indicates that the service was the first service to process a request.
	Root *bool

	// The start time of the first segment that the service generated.
	StartTime *time.Time

	// The service's state.
	State *string

	// Aggregated statistics for the service.
	SummaryStatistics *ServiceStatistics

	// The type of service.
	//   - Amazon Web Services Resource - The type of an Amazon Web Services resource.
	//   For example, AWS::EC2::Instance for an application running on Amazon EC2 or
	//   AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.
	//   - Amazon Web Services Service - The type of an Amazon Web Services service.
	//   For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't
	//   target a specific table.
	//   - client - Represents the clients that sent requests to a root service.
	//   - remote - A downstream service of indeterminate type.
	Type *string
	// contains filtered or unexported fields
}

Information about an application that processed requests, users that made requests, or downstream services, resources, and applications that an application used.

type ServiceId

type ServiceId struct {

	//
	AccountId *string

	//
	Name *string

	//
	Names []string

	//
	Type *string
	// contains filtered or unexported fields
}

type ServiceStatistics

type ServiceStatistics struct {

	// Information about requests that failed with a 4xx Client Error status code.
	ErrorStatistics *ErrorStatistics

	// Information about requests that failed with a 5xx Server Error status code.
	FaultStatistics *FaultStatistics

	// The number of requests that completed with a 2xx Success status code.
	OkCount *int64

	// The total number of completed requests.
	TotalCount *int64

	// The aggregate response time of completed requests.
	TotalResponseTime *float64
	// contains filtered or unexported fields
}

Response statistics for a service.

type Tag added in v0.29.0

type Tag struct {

	// A tag key, such as Stage or Name . A tag key cannot be empty. The key can be a
	// maximum of 128 characters, and can contain only Unicode letters, numbers, or
	// separators, or the following special characters: + - = . _ : /
	//
	// This member is required.
	Key *string

	// An optional tag value, such as Production or test-only . The value can be a
	// maximum of 255 characters, and contain only Unicode letters, numbers, or
	// separators, or the following special characters: + - = . _ : /
	//
	// This member is required.
	Value *string
	// contains filtered or unexported fields
}

A map that contains tag keys and tag values to attach to an Amazon Web Services X-Ray group or sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the Amazon Web Services General Reference. The following restrictions apply to tags:

  • Maximum number of user-applied tags per resource: 50
  • Tag keys and values are case sensitive.
  • Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use. You cannot edit or delete system tags.

type TelemetryRecord

type TelemetryRecord struct {

	//
	//
	// This member is required.
	Timestamp *time.Time

	//
	BackendConnectionErrors *BackendConnectionErrors

	//
	SegmentsReceivedCount *int32

	//
	SegmentsRejectedCount *int32

	//
	SegmentsSentCount *int32

	//
	SegmentsSpilloverCount *int32
	// contains filtered or unexported fields
}

type ThrottledException

type ThrottledException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request exceeds the maximum number of requests per second.

func (*ThrottledException) Error

func (e *ThrottledException) Error() string

func (*ThrottledException) ErrorCode

func (e *ThrottledException) ErrorCode() string

func (*ThrottledException) ErrorFault

func (e *ThrottledException) ErrorFault() smithy.ErrorFault

func (*ThrottledException) ErrorMessage

func (e *ThrottledException) ErrorMessage() string

type TimeRangeType

type TimeRangeType string
const (
	TimeRangeTypeTraceId TimeRangeType = "TraceId"
	TimeRangeTypeEvent   TimeRangeType = "Event"
	TimeRangeTypeService TimeRangeType = "Service"
)

Enum values for TimeRangeType

func (TimeRangeType) Values added in v0.29.0

func (TimeRangeType) Values() []TimeRangeType

Values returns all known values for TimeRangeType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type TimeSeriesServiceStatistics

type TimeSeriesServiceStatistics struct {

	// Response statistics for an edge.
	EdgeSummaryStatistics *EdgeStatistics

	// The response time histogram for the selected entities.
	ResponseTimeHistogram []HistogramEntry

	// The forecasted high and low fault count values.
	ServiceForecastStatistics *ForecastStatistics

	// Response statistics for a service.
	ServiceSummaryStatistics *ServiceStatistics

	// Timestamp of the window for which statistics are aggregated.
	Timestamp *time.Time
	// contains filtered or unexported fields
}

A list of TimeSeriesStatistic structures.

type TooManyTagsException added in v0.29.0

type TooManyTagsException struct {
	Message *string

	ErrorCodeOverride *string

	ResourceName *string
	// contains filtered or unexported fields
}

You have exceeded the maximum number of tags you can apply to this resource.

func (*TooManyTagsException) Error added in v0.29.0

func (e *TooManyTagsException) Error() string

func (*TooManyTagsException) ErrorCode added in v0.29.0

func (e *TooManyTagsException) ErrorCode() string

func (*TooManyTagsException) ErrorFault added in v0.29.0

func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault

func (*TooManyTagsException) ErrorMessage added in v0.29.0

func (e *TooManyTagsException) ErrorMessage() string

type Trace

type Trace struct {

	// The length of time in seconds between the start time of the root segment and
	// the end time of the last segment that completed.
	Duration *float64

	// The unique identifier for the request that generated the trace's segments and
	// subsegments.
	Id *string

	// LimitExceeded is set to true when the trace has exceeded the Trace document size
	// limit. For more information about this limit and other X-Ray limits and quotas,
	// see Amazon Web Services X-Ray endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/xray.html)
	// .
	LimitExceeded *bool

	// Segment documents for the segments and subsegments that comprise the trace.
	Segments []Segment
	// contains filtered or unexported fields
}

A collection of segment documents with matching trace IDs.

type TraceSummary

type TraceSummary struct {

	// Annotations from the trace's segment documents.
	Annotations map[string][]ValueWithServiceIds

	// A list of Availability Zones for any zone corresponding to the trace segments.
	AvailabilityZones []AvailabilityZoneDetail

	// The length of time in seconds between the start time of the root segment and
	// the end time of the last segment that completed.
	Duration *float64

	// The root of a trace.
	EntryPoint *ServiceId

	// A collection of ErrorRootCause structures corresponding to the trace segments.
	ErrorRootCauses []ErrorRootCause

	// A collection of FaultRootCause structures corresponding to the trace segments.
	FaultRootCauses []FaultRootCause

	// The root segment document has a 400 series error.
	HasError *bool

	// The root segment document has a 500 series error.
	HasFault *bool

	// One or more of the segment documents has a 429 throttling error.
	HasThrottle *bool

	// Information about the HTTP request served by the trace.
	Http *Http

	// The unique identifier for the request that generated the trace's segments and
	// subsegments.
	Id *string

	// A list of EC2 instance IDs for any instance corresponding to the trace segments.
	InstanceIds []InstanceIdDetail

	// One or more of the segment documents is in progress.
	IsPartial *bool

	// The matched time stamp of a defined event.
	MatchedEventTime *time.Time

	// A list of resource ARNs for any resource corresponding to the trace segments.
	ResourceARNs []ResourceARNDetail

	// The length of time in seconds between the start and end times of the root
	// segment. If the service performs work asynchronously, the response time measures
	// the time before the response is sent to the user, while the duration measures
	// the amount of time before the last traced activity completes.
	ResponseTime *float64

	// A collection of ResponseTimeRootCause structures corresponding to the trace
	// segments.
	ResponseTimeRootCauses []ResponseTimeRootCause

	// The revision number of a trace.
	Revision int32

	// Service IDs from the trace's segment documents.
	ServiceIds []ServiceId

	// The start time of a trace, based on the earliest trace segment start time.
	StartTime *time.Time

	// Users from the trace's segment documents.
	Users []TraceUser
	// contains filtered or unexported fields
}

Metadata generated from the segment documents in a trace.

type TraceUser

type TraceUser struct {

	// Services that the user's request hit.
	ServiceIds []ServiceId

	// The user's name.
	UserName *string
	// contains filtered or unexported fields
}

Information about a user recorded in segment documents.

type UnknownUnionMember added in v0.31.0

type UnknownUnionMember struct {
	Tag   string
	Value []byte
	// contains filtered or unexported fields
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

type UnprocessedStatistics

type UnprocessedStatistics struct {

	// The error code.
	ErrorCode *string

	// The error message.
	Message *string

	// The name of the sampling rule.
	RuleName *string
	// contains filtered or unexported fields
}

Sampling statistics from a call to GetSamplingTargets (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html) that X-Ray could not process.

type UnprocessedTraceSegment

type UnprocessedTraceSegment struct {

	// The error that caused processing to fail.
	ErrorCode *string

	// The segment's ID.
	Id *string

	// The error message.
	Message *string
	// contains filtered or unexported fields
}

Information about a segment that failed processing.

type ValueWithServiceIds

type ValueWithServiceIds struct {

	// Values of the annotation.
	AnnotationValue AnnotationValue

	// Services to which the annotation applies.
	ServiceIds []ServiceId
	// contains filtered or unexported fields
}

Information about a segment annotation.

Jump to

Keyboard shortcuts

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