Class: Aws::AppMonetization::Types::Metric

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb

Overview

A usage metric definition for an app. Metrics aggregate raw usage events (by event type) into a metered quantity used for quota enforcement and usage-based billing.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#app_id ⇒ String

The ID of the app the metric belongs to.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#arn ⇒ String

The Amazon Resource Name (ARN) of the metric. Output only.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#definition ⇒ Types::MetricDefinition

The aggregation definition: filters, aggregation function, grouping, and period.



3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#description ⇒ String

A description of what the metric measures.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#event_type ⇒ String

The event type this metric aggregates.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#metric_id ⇒ String

The ID of the metric. We assign this value when you create the metric; it is unique within the app. Treat it as opaque.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

A human-readable display name for the metric.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#stage ⇒ String

The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end

#unit_name ⇒ String

The unit of measure for the metric.

Returns:

  • (String)


3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3745

class Metric < Struct.new(
  :app_id,
  :metric_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :arn,
  :stage)
  SENSITIVE = []
  include Aws::Structure
end