Class: Aws::ClientSideMonitoring::RequestMetrics::ApiCallAttempt Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/client_side_monitoring/request_metrics.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, api, client_id, version, timestamp, fqdn, region, user_agent, access_key, session_token) ⇒ ApiCallAttempt

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ApiCallAttempt



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 131

def initialize(
  service,
  api,
  client_id,
  version,
  timestamp,
  fqdn,
  region,
  user_agent,
  access_key,
  session_token
)
  @service = service
  @api = api
  @client_id = client_id
  @version = version
  @timestamp = timestamp
  @fqdn = fqdn
  @region = region
  @user_agent = user_agent
  @access_key = access_key
  @session_token = session_token
end

Instance Attribute Details

#access_keyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def access_key
  @access_key
end

#apiObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def api
  @api
end

#aws_exceptionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def aws_exception
  @aws_exception
end

#aws_exception_msgObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def aws_exception_msg
  @aws_exception_msg
end

#client_idObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def client_id
  @client_id
end

#fqdnObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def fqdn
  @fqdn
end

#http_status_codeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def http_status_code
  @http_status_code
end

#regionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def region
  @region
end

#request_latencyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def request_latency
  @request_latency
end

#sdk_exceptionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def sdk_exception
  @sdk_exception
end

#sdk_exception_msgObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def sdk_exception_msg
  @sdk_exception_msg
end

#serviceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def service
  @service
end

#session_tokenObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def session_token
  @session_token
end

#timestampObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def timestamp
  @timestamp
end

#user_agentObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def user_agent
  @user_agent
end

#versionObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



125
126
127
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 125

def version
  @version
end

#x_amz_id_2Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def x_amz_id_2
  @x_amz_id_2
end

#x_amz_request_idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def x_amz_request_id
  @x_amz_request_id
end

#x_amzn_request_idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



127
128
129
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127

def x_amzn_request_id
  @x_amzn_request_id
end

Instance Method Details

#to_json(*a) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 155

def to_json(*a)
  json = {
    "Type" => "ApiCallAttempt",
    "Service" => @service,
    "Api" => @api,
    "ClientId" => @client_id,
    "Timestamp" => @timestamp,
    "Version" => @version,
    "Fqdn" => @fqdn,
    "Region" => @region,
    "UserAgent" => @user_agent,
    "AccessKey" => @access_key
  }
  # Optional Fields
  json["SessionToken"] = @session_token if @session_token
  json["HttpStatusCode"] = @http_status_code if @http_status_code
  json["AwsException"] = @aws_exception if @aws_exception
  json["AwsExceptionMessage"] = @aws_exception_msg if @aws_exception_msg
  json["XAmznRequestId"] = @x_amzn_request_id if @x_amzn_request_id
  json["XAmzRequestId"] = @x_amz_request_id if @x_amz_request_id
  json["XAmzId2"] = @x_amz_id_2 if @x_amz_id_2
  json["AttemptLatency"] = @request_latency if @request_latency
  json["SdkException"] = @sdk_exception if @sdk_exception
  json["SdkExceptionMessage"] = @sdk_exception_msg if @sdk_exception_msg
  json = _truncate(json)
  json.to_json
end