Skip to content

Commit dda49a8

Browse files
committed
cleanup
1 parent a5fdcd2 commit dda49a8

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

strategy/sampling/xray_service_api.go

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
// Types in this file are copied from:
1+
// Types in this file are modified from:
22
// https://github.com/aws/aws-sdk-go/blob/v1.55.6/service/xray/api.go
33

44
package sampling
55

66
type SamplingStatisticsDocument struct {
7-
_ struct{} `type:"structure"`
8-
97
// The number of requests recorded with borrowed reservoir quota.
108
BorrowCount *int64 `type:"integer"`
119

@@ -39,8 +37,6 @@ type SamplingStatisticsDocument struct {
3937
// Rule fields can match properties of the service, or properties of a request.
4038
// The service can ignore rules that don't match its properties.
4139
type SamplingRule struct {
42-
_ struct{} `type:"structure"`
43-
4440
// Matches attributes derived from the request.
4541
Attributes map[string]*string `json:"Attributes"`
4642

@@ -110,8 +106,6 @@ type SamplingRule struct {
110106
// A SamplingRule (https://docs.aws.amazon.com/xray/latest/api/API_SamplingRule.html)
111107
// and its metadata.
112108
type SamplingRuleRecord struct {
113-
_ struct{} `type:"structure"`
114-
115109
// When the rule was created.
116110
CreatedAt *float64 `json:"CreatedAt"`
117111

@@ -123,8 +117,6 @@ type SamplingRuleRecord struct {
123117
}
124118

125119
type GetSamplingTargetsOutput struct {
126-
_ struct{} `type:"structure"`
127-
128120
// The last time a user changed the sampling rule configuration. If the sampling
129121
// rule configuration changed since the service last retrieved it, the service
130122
// should call GetSamplingRules (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html)
@@ -144,8 +136,6 @@ type GetSamplingTargetsOutput struct {
144136
// on the recent sampling results of all services that called GetSamplingTargets
145137
// (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html).
146138
type SamplingTargetDocument struct {
147-
_ struct{} `type:"structure"`
148-
149139
// The percentage of matching requests to instrument, after the reservoir is
150140
// exhausted.
151141
FixedRate *float64 `json:"FixedRate"`
@@ -167,8 +157,6 @@ type SamplingTargetDocument struct {
167157
// Sampling statistics from a call to GetSamplingTargets (https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingTargets.html)
168158
// that X-Ray could not process.
169159
type UnprocessedStatistics struct {
170-
_ struct{} `type:"structure"`
171-
172160
// The error code.
173161
ErrorCode *string `json:"ErrorCode"`
174162

@@ -180,24 +168,18 @@ type UnprocessedStatistics struct {
180168
}
181169

182170
type GetSamplingTargetsInput struct {
183-
_ struct{} `type:"structure"`
184-
185171
// Information about rules that the service is using to sample requests.
186172
//
187173
// SamplingStatisticsDocuments is a required field
188174
SamplingStatisticsDocuments []*SamplingStatisticsDocument `type:"list" required:"true"`
189175
}
190176

191177
type GetSamplingRulesInput struct {
192-
_ struct{} `type:"structure"`
193-
194178
// Pagination token.
195179
NextToken *string `type:"string"`
196180
}
197181

198182
type GetSamplingRulesOutput struct {
199-
_ struct{} `type:"structure"`
200-
201183
// Pagination token.
202184
NextToken *string `json:"NextToken"`
203185

0 commit comments

Comments
 (0)