vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352617 additions and 1004734 deletions
+74 -44
View File
@@ -313,6 +313,21 @@ func (c *XRay) GetTraceSummariesRequest(input *GetTraceSummariesInput) (req *req
// Retrieves IDs and metadata 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 (http://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html)
// in the AWS X-Ray Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -482,6 +497,48 @@ func (c *XRay) PutTraceSegmentsRequest(input *PutTraceSegmentsInput) (req *reque
// 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 (http://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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -772,7 +829,7 @@ type Edge struct {
// Identifier of the edge. Unique within a service map.
ReferenceId *int64 `type:"integer"`
// Histogram describing the prominence of response times on the edge.
// A histogram that maps the spread of client response times on an edge.
ResponseTimeHistogram []*HistogramEntry `type:"list"`
// The start time of the first segment on the edge.
@@ -1474,46 +1531,7 @@ func (s PutTelemetryRecordsOutput) GoString() string {
type PutTraceSegmentsInput struct {
_ struct{} `type:"structure"`
// A JSON document defining one or more segments or subsegments. Segments must
// include the following fields.
//
// 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.
// A string containing a JSON document defining one or more segments or subsegments.
//
// TraceSegmentDocuments is a required field
TraceSegmentDocuments []*string `type:"list" required:"true"`
@@ -1572,12 +1590,15 @@ func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTra
return s
}
// Information about a segment
// A segment from a trace that has been ingested by the X-Ray service. The segment
// can be compiled from documents uploaded with PutTraceSegments, or an inferred
// segment for a downstream service, generated from a subsegment sent by the
// service that called it.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/Segment
type Segment struct {
_ struct{} `type:"structure"`
// The segment document.
// The segment document
Document *string `min:"1" type:"string"`
// The segment's ID.
@@ -1616,7 +1637,7 @@ type Service struct {
// Identifier of the AWS account in which the service runs.
AccountId *string `type:"string"`
// Histogram mapping the spread of trace durations
// A histogram that maps the spread of service durations.
DurationHistogram []*HistogramEntry `type:"list"`
// Connections to downstream services.
@@ -1634,6 +1655,9 @@ type Service struct {
// Identifier for the service. Unique within the service map.
ReferenceId *int64 `type:"integer"`
// A histogram that maps the spread of service response times.
ResponseTimeHistogram []*HistogramEntry `type:"list"`
// Indicates that the service was the first service to process a request.
Root *bool `type:"boolean"`
@@ -1714,6 +1738,12 @@ func (s *Service) SetReferenceId(v int64) *Service {
return s
}
// SetResponseTimeHistogram sets the ResponseTimeHistogram field's value.
func (s *Service) SetResponseTimeHistogram(v []*HistogramEntry) *Service {
s.ResponseTimeHistogram = v
return s
}
// SetRoot sets the Root field's value.
func (s *Service) SetRoot(v bool) *Service {
s.Root = &v
-179
View File
@@ -1,179 +0,0 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package xray_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/xray"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleXRay_BatchGetTraces() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.BatchGetTracesInput{
TraceIds: []*string{ // Required
aws.String("TraceId"), // Required
// More values...
},
NextToken: aws.String("String"),
}
resp, err := svc.BatchGetTraces(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleXRay_GetServiceGraph() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.GetServiceGraphInput{
EndTime: aws.Time(time.Now()), // Required
StartTime: aws.Time(time.Now()), // Required
NextToken: aws.String("String"),
}
resp, err := svc.GetServiceGraph(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleXRay_GetTraceGraph() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.GetTraceGraphInput{
TraceIds: []*string{ // Required
aws.String("TraceId"), // Required
// More values...
},
NextToken: aws.String("String"),
}
resp, err := svc.GetTraceGraph(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleXRay_GetTraceSummaries() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.GetTraceSummariesInput{
EndTime: aws.Time(time.Now()), // Required
StartTime: aws.Time(time.Now()), // Required
FilterExpression: aws.String("FilterExpression"),
NextToken: aws.String("String"),
Sampling: aws.Bool(true),
}
resp, err := svc.GetTraceSummaries(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleXRay_PutTelemetryRecords() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.PutTelemetryRecordsInput{
TelemetryRecords: []*xray.TelemetryRecord{ // Required
{ // Required
BackendConnectionErrors: &xray.BackendConnectionErrors{
ConnectionRefusedCount: aws.Int64(1),
HTTPCode4XXCount: aws.Int64(1),
HTTPCode5XXCount: aws.Int64(1),
OtherCount: aws.Int64(1),
TimeoutCount: aws.Int64(1),
UnknownHostCount: aws.Int64(1),
},
SegmentsReceivedCount: aws.Int64(1),
SegmentsRejectedCount: aws.Int64(1),
SegmentsSentCount: aws.Int64(1),
SegmentsSpilloverCount: aws.Int64(1),
Timestamp: aws.Time(time.Now()),
},
// More values...
},
EC2InstanceId: aws.String("String"),
Hostname: aws.String("String"),
ResourceARN: aws.String("String"),
}
resp, err := svc.PutTelemetryRecords(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleXRay_PutTraceSegments() {
sess := session.Must(session.NewSession())
svc := xray.New(sess)
params := &xray.PutTraceSegmentsInput{
TraceSegmentDocuments: []*string{ // Required
aws.String("TraceSegmentDocument"), // Required
// More values...
},
}
resp, err := svc.PutTraceSegments(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}