Class: Aws::ClientSideMonitoring::RequestMetrics Private

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

Overview

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.

API:

  • private

Defined Under Namespace

Classes: ApiCall, ApiCallAttempt

Constant Summary collapse

FIELD_MAX_LENGTH =

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

API:

  • private

{
  "ClientId" => 255,
  "UserAgent" => 256,
  "SdkException" => 128,
  "SdkExceptionMessage" => 512,
  "AwsException" => 128,
  "AwsExceptionMessage" => 512,
  "FinalAwsException" => 128,
  "FinalAwsExceptionMessage" => 512,
  "FinalSdkException" => 128,
  "FinalSdkExceptionMessage" => 512,
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ RequestMetrics

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 RequestMetrics.

API:

  • private



22
23
24
25
26
27
28
29
30
31
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 22

def initialize(opts = {})
  @service = opts[:service]
  @api = opts[:operation]
  @client_id = opts[:client_id]
  @timestamp = opts[:timestamp] # In epoch milliseconds
  @region = opts[:region]
  @version = 1
  @api_call = ApiCall.new(@service, @api, @client_id, @version, @timestamp, @region)
  @api_call_attempts = []
end

Instance Attribute Details

#api_callObject (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.

API:

  • private



7
8
9
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 7

def api_call
  @api_call
end

#api_call_attemptsObject (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.

API:

  • private



7
8
9
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 7

def api_call_attempts
  @api_call_attempts
end

Instance Method Details

#add_call_attempt(attempt) ⇒ 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.

API:

  • private



54
55
56
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 54

def add_call_attempt(attempt)
  @api_call_attempts << attempt
end

#build_call_attempt(opts = {}) ⇒ 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.

API:

  • private



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/aws-sdk-core/client_side_monitoring/request_metrics.rb', line 33

def build_call_attempt(opts = {})
  timestamp = opts[:timestamp]
  fqdn = opts[:fqdn]
  region = opts[:region]
  user_agent = opts[:user_agent]
  access_key = opts[:access_key]
  session_token = opts[:session_token]
  ApiCallAttempt.new(
    @service,
    @api,
    @client_id,
    @version,
    timestamp,
    fqdn,
    region,
    user_agent,
    access_key,
    session_token
  )
end