package xray
import "github.com/aws/aws-sdk-go-v2/service/xray"
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type BatchGetTracesInput
- type BatchGetTracesOutput
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) BatchGetTraces(ctx context.Context, params *BatchGetTracesInput, optFns ...func(*Options)) (*BatchGetTracesOutput, error)
- func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optFns ...func(*Options)) (*CreateGroupOutput, error)
- func (c *Client) CreateSamplingRule(ctx context.Context, params *CreateSamplingRuleInput, optFns ...func(*Options)) (*CreateSamplingRuleOutput, error)
- func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optFns ...func(*Options)) (*DeleteGroupOutput, error)
- func (c *Client) DeleteSamplingRule(ctx context.Context, params *DeleteSamplingRuleInput, optFns ...func(*Options)) (*DeleteSamplingRuleOutput, error)
- func (c *Client) GetEncryptionConfig(ctx context.Context, params *GetEncryptionConfigInput, optFns ...func(*Options)) (*GetEncryptionConfigOutput, error)
- func (c *Client) GetGroup(ctx context.Context, params *GetGroupInput, optFns ...func(*Options)) (*GetGroupOutput, error)
- func (c *Client) GetGroups(ctx context.Context, params *GetGroupsInput, optFns ...func(*Options)) (*GetGroupsOutput, error)
- func (c *Client) GetSamplingRules(ctx context.Context, params *GetSamplingRulesInput, optFns ...func(*Options)) (*GetSamplingRulesOutput, error)
- func (c *Client) GetSamplingStatisticSummaries(ctx context.Context, params *GetSamplingStatisticSummariesInput, optFns ...func(*Options)) (*GetSamplingStatisticSummariesOutput, error)
- func (c *Client) GetSamplingTargets(ctx context.Context, params *GetSamplingTargetsInput, optFns ...func(*Options)) (*GetSamplingTargetsOutput, error)
- func (c *Client) GetServiceGraph(ctx context.Context, params *GetServiceGraphInput, optFns ...func(*Options)) (*GetServiceGraphOutput, error)
- func (c *Client) GetTimeSeriesServiceStatistics(ctx context.Context, params *GetTimeSeriesServiceStatisticsInput, optFns ...func(*Options)) (*GetTimeSeriesServiceStatisticsOutput, error)
- func (c *Client) GetTraceGraph(ctx context.Context, params *GetTraceGraphInput, optFns ...func(*Options)) (*GetTraceGraphOutput, error)
- func (c *Client) GetTraceSummaries(ctx context.Context, params *GetTraceSummariesInput, optFns ...func(*Options)) (*GetTraceSummariesOutput, error)
- func (c *Client) PutEncryptionConfig(ctx context.Context, params *PutEncryptionConfigInput, optFns ...func(*Options)) (*PutEncryptionConfigOutput, error)
- func (c *Client) PutTelemetryRecords(ctx context.Context, params *PutTelemetryRecordsInput, optFns ...func(*Options)) (*PutTelemetryRecordsOutput, error)
- func (c *Client) PutTraceSegments(ctx context.Context, params *PutTraceSegmentsInput, optFns ...func(*Options)) (*PutTraceSegmentsOutput, error)
- func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optFns ...func(*Options)) (*UpdateGroupOutput, error)
- func (c *Client) UpdateSamplingRule(ctx context.Context, params *UpdateSamplingRuleInput, optFns ...func(*Options)) (*UpdateSamplingRuleOutput, error)
- type CreateGroupInput
- type CreateGroupOutput
- type CreateSamplingRuleInput
- type CreateSamplingRuleOutput
- type DeleteGroupInput
- type DeleteGroupOutput
- type DeleteSamplingRuleInput
- type DeleteSamplingRuleOutput
- type EndpointResolver
- type EndpointResolverFunc
- type GetEncryptionConfigInput
- type GetEncryptionConfigOutput
- type GetGroupInput
- type GetGroupOutput
- type GetGroupsInput
- type GetGroupsOutput
- type GetSamplingRulesInput
- type GetSamplingRulesOutput
- type GetSamplingStatisticSummariesInput
- type GetSamplingStatisticSummariesOutput
- type GetSamplingTargetsInput
- type GetSamplingTargetsOutput
- type GetServiceGraphInput
- type GetServiceGraphOutput
- type GetTimeSeriesServiceStatisticsInput
- type GetTimeSeriesServiceStatisticsOutput
- type GetTraceGraphInput
- type GetTraceGraphOutput
- type GetTraceSummariesInput
- type GetTraceSummariesOutput
- type HTTPClient
- type HTTPSignerV4
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type PutEncryptionConfigInput
- type PutEncryptionConfigOutput
- type PutTelemetryRecordsInput
- type PutTelemetryRecordsOutput
- type PutTraceSegmentsInput
- type PutTraceSegmentsOutput
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type UpdateGroupInput
- type UpdateGroupOutput
- type UpdateSamplingRuleInput
- type UpdateSamplingRuleOutput
Constants ¶
const ServiceAPIVersion = "2016-04-12"
const ServiceID = "XRay"
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type BatchGetTracesInput ¶
type BatchGetTracesInput struct { // Pagination token. NextToken *string // Specify the trace IDs of requests for which to retrieve segments. TraceIds []*string }
type BatchGetTracesOutput ¶
type BatchGetTracesOutput struct { // Pagination token. NextToken *string // Trace IDs of requests that haven't been processed. UnprocessedTraceIds []*string // Full traces for the specified requests. Traces []*types.Trace // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
AWS X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those traces.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) BatchGetTraces ¶
func (c *Client) BatchGetTraces(ctx context.Context, params *BatchGetTracesInput, optFns ...func(*Options)) (*BatchGetTracesOutput, error)
Retrieves a list of traces specified by ID. Each trace is a collection of segment documents that originates from a single request. Use GetTraceSummaries to get a list of trace IDs.
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(ctx context.Context, params *CreateGroupInput, optFns ...func(*Options)) (*CreateGroupOutput, error)
Creates a group resource with a name and a filter expression.
func (*Client) CreateSamplingRule ¶
func (c *Client) CreateSamplingRule(ctx context.Context, params *CreateSamplingRuleInput, optFns ...func(*Options)) (*CreateSamplingRuleOutput, error)
Creates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules (), and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets () to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(ctx context.Context, params *DeleteGroupInput, optFns ...func(*Options)) (*DeleteGroupOutput, error)
Deletes a group resource.
func (*Client) DeleteSamplingRule ¶
func (c *Client) DeleteSamplingRule(ctx context.Context, params *DeleteSamplingRuleInput, optFns ...func(*Options)) (*DeleteSamplingRuleOutput, error)
Deletes a sampling rule.
func (*Client) GetEncryptionConfig ¶
func (c *Client) GetEncryptionConfig(ctx context.Context, params *GetEncryptionConfigInput, optFns ...func(*Options)) (*GetEncryptionConfigOutput, error)
Retrieves the current encryption configuration for X-Ray data.
func (*Client) GetGroup ¶
func (c *Client) GetGroup(ctx context.Context, params *GetGroupInput, optFns ...func(*Options)) (*GetGroupOutput, error)
Retrieves group resource details.
func (*Client) GetGroups ¶
func (c *Client) GetGroups(ctx context.Context, params *GetGroupsInput, optFns ...func(*Options)) (*GetGroupsOutput, error)
Retrieves all active group details.
func (*Client) GetSamplingRules ¶
func (c *Client) GetSamplingRules(ctx context.Context, params *GetSamplingRulesInput, optFns ...func(*Options)) (*GetSamplingRulesOutput, error)
Retrieves all sampling rules.
func (*Client) GetSamplingStatisticSummaries ¶
func (c *Client) GetSamplingStatisticSummaries(ctx context.Context, params *GetSamplingStatisticSummariesInput, optFns ...func(*Options)) (*GetSamplingStatisticSummariesOutput, error)
Retrieves information about recent sampling results for all sampling rules.
func (*Client) GetSamplingTargets ¶
func (c *Client) GetSamplingTargets(ctx context.Context, params *GetSamplingTargetsInput, optFns ...func(*Options)) (*GetSamplingTargetsOutput, error)
Requests a sampling quota for rules that the service is using to sample requests.
func (*Client) GetServiceGraph ¶
func (c *Client) GetServiceGraph(ctx context.Context, params *GetServiceGraphInput, optFns ...func(*Options)) (*GetServiceGraphOutput, error)
Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK (https://docs.aws.amazon.com/xray/index.html). Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.
func (*Client) GetTimeSeriesServiceStatistics ¶
func (c *Client) GetTimeSeriesServiceStatistics(ctx context.Context, params *GetTimeSeriesServiceStatisticsInput, optFns ...func(*Options)) (*GetTimeSeriesServiceStatisticsOutput, error)
Get an aggregation of service statistics defined by a specific time range.
func (*Client) GetTraceGraph ¶
func (c *Client) GetTraceGraph(ctx context.Context, params *GetTraceGraphInput, optFns ...func(*Options)) (*GetTraceGraphOutput, error)
Retrieves a service graph for one or more specific trace IDs.
func (*Client) GetTraceSummaries ¶
func (c *Client) GetTraceSummaries(ctx context.Context, params *GetTraceSummariesInput, optFns ...func(*Options)) (*GetTraceSummariesOutput, error)
Retrieves IDs and annotations for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces. A filter expression can target traced requests that hit specific service nodes or edges, have errors, or come from a known user. For example, the following filter expression targets traces that pass through api.example.com: service("api.example.com") This filter expression finds traces that have an annotation named account with the value 12345: annotation.account = "12345" For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions (https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html) in the AWS X-Ray Developer Guide.
func (*Client) PutEncryptionConfig ¶
func (c *Client) PutEncryptionConfig(ctx context.Context, params *PutEncryptionConfigInput, optFns ...func(*Options)) (*PutEncryptionConfigOutput, error)
Updates the encryption configuration for X-Ray data.
func (*Client) PutTelemetryRecords ¶
func (c *Client) PutTelemetryRecords(ctx context.Context, params *PutTelemetryRecordsInput, optFns ...func(*Options)) (*PutTelemetryRecordsOutput, error)
Used by the AWS X-Ray daemon to upload telemetry.
func (*Client) PutTraceSegments ¶
func (c *Client) PutTraceSegments(ctx context.Context, params *PutTraceSegmentsInput, optFns ...func(*Options)) (*PutTraceSegmentsOutput, error)
Uploads segment documents to AWS X-Ray. The X-Ray SDK (https://docs.aws.amazon.com/xray/index.html) generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments. Segments must include the following fields. For the full segment document schema, see AWS X-Ray Segment Documents (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html) in the AWS X-Ray Developer Guide. Required Segment Document Fields
- name -
The name of the service that handled the request.
- id - A 64-bit
identifier for the segment, unique among segments in the same trace, in 16 hexadecimal digits.
- trace_id - A unique identifier that connects all
segments and subsegments originating from a single client request.
*
start_time - Time the segment or subsegment was created, in floating point seconds in epoch time, accurate to milliseconds. For example, 1480615200.010 or 1.480615200010E9.
- end_time - Time the segment or subsegment was closed.
For example, 1480615200.090 or 1.480615200090E9. Specify either an end_time or in_progress.
- in_progress - Set to true instead of specifying an end_time
to record that a segment has been started, but is not complete. Send an in progress segment when your application receives a request that will take a long time to serve, to trace the fact that the request was received. When the response is sent, send the complete segment to overwrite the in-progress segment.
A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes: Trace ID Format
* The version number, i.e. 1.
- The time of the original request, in Unix
epoch time, in 8 hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is 1480615200 seconds, or 58406520 in hexadecimal.
- A 96-bit
identifier for the trace, globally unique, in 24 hexadecimal digits.
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(ctx context.Context, params *UpdateGroupInput, optFns ...func(*Options)) (*UpdateGroupOutput, error)
Updates a group resource.
func (*Client) UpdateSamplingRule ¶
func (c *Client) UpdateSamplingRule(ctx context.Context, params *UpdateSamplingRuleInput, optFns ...func(*Options)) (*UpdateSamplingRuleOutput, error)
Modifies a sampling rule's configuration.
type CreateGroupInput ¶
type CreateGroupInput struct { // The case-sensitive name of the new group. Default is a reserved name and names // must be unique. GroupName *string // The filter expression defining criteria by which to group traces. FilterExpression *string }
type CreateGroupOutput ¶
type CreateGroupOutput struct { // The group that was created. Contains the name of the group that was created, the // ARN of the group that was generated based on the group name, and the filter // expression that was assigned to the group. Group *types.Group // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateSamplingRuleInput ¶
type CreateSamplingRuleInput struct { // The rule definition. SamplingRule *types.SamplingRule }
type CreateSamplingRuleOutput ¶
type CreateSamplingRuleOutput struct { // The saved rule definition and metadata. SamplingRuleRecord *types.SamplingRuleRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteGroupInput ¶
type DeleteGroupInput struct { // The case-sensitive name of the group. GroupName *string // The ARN of the group that was generated on creation. GroupARN *string }
type DeleteGroupOutput ¶
type DeleteGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteSamplingRuleInput ¶
type DeleteSamplingRuleInput struct { // 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 }
type DeleteSamplingRuleOutput ¶
type DeleteSamplingRuleOutput struct { // The deleted rule definition and metadata. SamplingRuleRecord *types.SamplingRuleRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type GetEncryptionConfigInput ¶
type GetEncryptionConfigInput struct { }
type GetEncryptionConfigOutput ¶
type GetEncryptionConfigOutput struct { // The encryption configuration document. EncryptionConfig *types.EncryptionConfig // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetGroupInput ¶
type GetGroupInput struct { // The case-sensitive name of the group. GroupName *string // The ARN of the group that was generated on creation. GroupARN *string }
type GetGroupOutput ¶
type GetGroupOutput struct { // The group that was requested. Contains the name of the group, the ARN of the // group, and the filter expression that assigned to the group. Group *types.Group // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetGroupsInput ¶
type GetGroupsInput struct { // Pagination token. NextToken *string }
type GetGroupsOutput ¶
type GetGroupsOutput struct { // The collection of all active groups. Groups []*types.GroupSummary // Pagination token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetSamplingRulesInput ¶
type GetSamplingRulesInput struct { // Pagination token. NextToken *string }
type GetSamplingRulesOutput ¶
type GetSamplingRulesOutput struct { // Rule definitions and metadata. SamplingRuleRecords []*types.SamplingRuleRecord // Pagination token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetSamplingStatisticSummariesInput ¶
type GetSamplingStatisticSummariesInput struct { // Pagination token. NextToken *string }
type GetSamplingStatisticSummariesOutput ¶
type GetSamplingStatisticSummariesOutput struct { // Information about the number of requests instrumented for each sampling rule. SamplingStatisticSummaries []*types.SamplingStatisticSummary // Pagination token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetSamplingTargetsInput ¶
type GetSamplingTargetsInput struct { // Information about rules that the service is using to sample requests. SamplingStatisticsDocuments []*types.SamplingStatisticsDocument }
type GetSamplingTargetsOutput ¶
type GetSamplingTargetsOutput struct { // The last time a user changed the sampling rule configuration. If the sampling // rule configuration changed since the service last retrieved it, the service // should call GetSamplingRules () to get the latest version. LastRuleModification *time.Time // Information about SamplingStatisticsDocument () that X-Ray could not process. UnprocessedStatistics []*types.UnprocessedStatistics // Updated rules that the service should use to sample requests. SamplingTargetDocuments []*types.SamplingTargetDocument // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetServiceGraphInput ¶
type GetServiceGraphInput struct { // The name of a group to generate a graph based on. GroupName *string // The end of the timeframe for which to generate a graph. EndTime *time.Time // The ARN of a group to generate a graph based on. GroupARN *string // Pagination token. NextToken *string // The start of the time frame for which to generate a graph. StartTime *time.Time }
type GetServiceGraphOutput ¶
type GetServiceGraphOutput struct { // A flag indicating whether the group's filter expression has been consistent, or // if the returned service graph may show traces from an older version of the // group's filter expression. ContainsOldGroupVersions *bool // Pagination token. NextToken *string // The end of the time frame for which the graph was generated. EndTime *time.Time // The start of the time frame for which the graph was generated. StartTime *time.Time // The services that have processed a traced request during the specified time // frame. Services []*types.Service // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetTimeSeriesServiceStatisticsInput ¶
type GetTimeSeriesServiceStatisticsInput struct { // The case-sensitive name of the group for which to pull statistics from. GroupName *string // Pagination token. NextToken *string // Aggregation period in seconds. Period *int32 // The ARN of the group for which to pull statistics from. GroupARN *string // The start of the time frame for which to aggregate statistics. StartTime *time.Time // The end of the time frame for which to aggregate statistics. EndTime *time.Time // A filter expression defining entities that will be aggregated for statistics. // Supports ID, service, and edge functions. If no selector expression is // specified, edge statistics are returned. EntitySelectorExpression *string }
type GetTimeSeriesServiceStatisticsOutput ¶
type GetTimeSeriesServiceStatisticsOutput struct { // Pagination token. NextToken *string // The collection of statistics. TimeSeriesServiceStatistics []*types.TimeSeriesServiceStatistics // A flag indicating whether or not a group's filter expression has been // consistent, or if a returned aggregation may show statistics from an older // version of the group's filter expression. ContainsOldGroupVersions *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetTraceGraphInput ¶
type GetTraceGraphInput struct { // Trace IDs of requests for which to generate a service graph. TraceIds []*string // Pagination token. NextToken *string }
type GetTraceGraphOutput ¶
type GetTraceGraphOutput struct { // The services that have processed one of the specified requests. Services []*types.Service // Pagination token. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetTraceSummariesInput ¶
type GetTraceSummariesInput struct { // The end of the time frame for which to retrieve traces. EndTime *time.Time // Set to true to get summaries for only a subset of available traces. Sampling *bool // A paramater to indicate whether to enable sampling on trace summaries. Input // parameters are Name and Value. SamplingStrategy *types.SamplingStrategy // Specify the pagination token returned by a previous request to retrieve the next // page of results. NextToken *string // Specify a filter expression to retrieve trace summaries for services or requests // that meet certain requirements. FilterExpression *string // A parameter to indicate whether to query trace summaries by TraceId or Event // time. TimeRangeType types.TimeRangeType // The start of the time frame for which to retrieve traces. StartTime *time.Time }
type GetTraceSummariesOutput ¶
type GetTraceSummariesOutput struct { // Trace IDs and annotations for traces that were found in the specified time // frame. TraceSummaries []*types.TraceSummary // The start time of this page of results. ApproximateTime *time.Time // If the requested time frame contained more than one page of results, you can use // this token to retrieve the next page. The first page contains the most most // recent results, closest to the end of the time frame. NextToken *string // The total number of traces processed, including traces that did not match the // specified filter expression. TracesProcessedCount *int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetRegion ¶
func (Options) GetRetryer ¶
type PutEncryptionConfigInput ¶
type PutEncryptionConfigInput struct { // An AWS KMS customer master key (CMK) in one of the following formats: // // * // Alias - The name of the key. For example, alias/MyKey. // // * Key ID - The KMS // key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. AWS X-Ray // does not support asymmetric CMKs. // // * ARN - The full Amazon Resource Name of // the key ID or alias. For example, // arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. // Use this format to specify a key in a different account. // // Omit this key if you // set Type to NONE. KeyId *string // The type of encryption. Set to KMS to use your own key for encryption. Set to // NONE for default encryption. Type types.EncryptionType }
type PutEncryptionConfigOutput ¶
type PutEncryptionConfigOutput struct { // The new encryption configuration. EncryptionConfig *types.EncryptionConfig // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PutTelemetryRecordsInput ¶
type PutTelemetryRecordsInput struct { // TelemetryRecords []*types.TelemetryRecord // EC2InstanceId *string // Hostname *string // ResourceARN *string }
type PutTelemetryRecordsOutput ¶
type PutTelemetryRecordsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PutTraceSegmentsInput ¶
type PutTraceSegmentsInput struct { // A string containing a JSON document defining one or more segments or // subsegments. TraceSegmentDocuments []*string }
type PutTraceSegmentsOutput ¶
type PutTraceSegmentsOutput struct { // Segments that failed processing. UnprocessedTraceSegments []*types.UnprocessedTraceSegment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type UpdateGroupInput ¶
type UpdateGroupInput struct { // The case-sensitive name of the group. GroupName *string // The updated filter expression defining criteria by which to group traces. FilterExpression *string // The ARN that was generated upon creation. GroupARN *string }
type UpdateGroupOutput ¶
type UpdateGroupOutput struct { // The group that was updated. Contains the name of the group that was updated, the // ARN of the group that was updated, and the updated filter expression assigned to // the group. Group *types.Group // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateSamplingRuleInput ¶
type UpdateSamplingRuleInput struct { // The rule and fields to change. SamplingRuleUpdate *types.SamplingRuleUpdate }
type UpdateSamplingRuleOutput ¶
type UpdateSamplingRuleOutput struct { // The updated rule definition and metadata. SamplingRuleRecord *types.SamplingRuleRecord // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
api_client.go api_op_BatchGetTraces.go api_op_CreateGroup.go api_op_CreateSamplingRule.go api_op_DeleteGroup.go api_op_DeleteSamplingRule.go api_op_GetEncryptionConfig.go api_op_GetGroup.go api_op_GetGroups.go api_op_GetSamplingRules.go api_op_GetSamplingStatisticSummaries.go api_op_GetSamplingTargets.go api_op_GetServiceGraph.go api_op_GetTimeSeriesServiceStatistics.go api_op_GetTraceGraph.go api_op_GetTraceSummaries.go api_op_PutEncryptionConfig.go api_op_PutTelemetryRecords.go api_op_PutTraceSegments.go api_op_UpdateGroup.go api_op_UpdateSamplingRule.go deserializers.go endpoints.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- now –
Tools for package owners.