Class: Aws::ClientSideMonitoring::RequestMetrics::ApiCallAttempt Private
- Inherits:
- 
      Object
      
        - Object
- Aws::ClientSideMonitoring::RequestMetrics::ApiCallAttempt
 
- 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
- #access_key ⇒ Object readonly private
- #api ⇒ Object readonly private
- #aws_exception ⇒ Object private
- #aws_exception_msg ⇒ Object private
- #client_id ⇒ Object readonly private
- #fqdn ⇒ Object private
- #http_status_code ⇒ Object private
- #region ⇒ Object private
- #request_latency ⇒ Object private
- #sdk_exception ⇒ Object private
- #sdk_exception_msg ⇒ Object private
- #service ⇒ Object readonly private
- #session_token ⇒ Object readonly private
- #timestamp ⇒ Object readonly private
- #user_agent ⇒ Object readonly private
- #version ⇒ Object readonly private
- #x_amz_id_2 ⇒ Object private
- #x_amz_request_id ⇒ Object private
- #x_amzn_request_id ⇒ Object private
Instance Method Summary collapse
- 
  
    
      #initialize(service, api, client_id, version, timestamp, fqdn, region, user_agent, access_key, session_token)  ⇒ ApiCallAttempt 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    A new instance of ApiCallAttempt. 
- #to_json(*a) ⇒ Object private
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.
| 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 133 def initialize( service, api, client_id, version, , fqdn, region, user_agent, access_key, session_token ) @service = service @api = api @client_id = client_id @version = version @timestamp = @fqdn = fqdn @region = region @user_agent = user_agent @access_key = access_key @session_token = session_token end | 
Instance Attribute Details
#access_key ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def access_key @access_key end | 
#api ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def api @api end | 
#aws_exception ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def aws_exception @aws_exception end | 
#aws_exception_msg ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def aws_exception_msg @aws_exception_msg end | 
#client_id ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def client_id @client_id end | 
#fqdn ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def fqdn @fqdn end | 
#http_status_code ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def http_status_code @http_status_code end | 
#region ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def region @region end | 
#request_latency ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def request_latency @request_latency end | 
#sdk_exception ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def sdk_exception @sdk_exception end | 
#sdk_exception_msg ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def sdk_exception_msg @sdk_exception_msg end | 
#service ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def service @service end | 
#session_token ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def session_token @session_token end | 
#timestamp ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def @timestamp end | 
#user_agent ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def user_agent @user_agent end | 
#version ⇒ Object (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.
| 127 128 129 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 127 def version @version end | 
#x_amz_id_2 ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def x_amz_id_2 @x_amz_id_2 end | 
#x_amz_request_id ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 def x_amz_request_id @x_amz_request_id end | 
#x_amzn_request_id ⇒ 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.
| 129 130 131 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 129 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.
| 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 182 183 | # File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 157 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 |