Class: Aws::AppMonetization::Types::MetricDefinition

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

Overview

The definition of how raw events are aggregated into a metric: which events to include (filters), how to combine them (function and functionField), how to group them, and over what period.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#filters ⇒ Array<Types::MetricFilter>

The predicates selecting which events contribute to the metric. Combined with logical AND.

Returns:



3788
3789
3790
3791
3792
3793
3794
3795
3796
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3788

class MetricDefinition < Struct.new(
  :filters,
  :function,
  :function_field,
  :group_by,
  :period)
  SENSITIVE = []
  include Aws::Structure
end

#function ⇒ String

The aggregation function applied to matching events (SUM, COUNT, or MAX).

Returns:

  • (String)


3788
3789
3790
3791
3792
3793
3794
3795
3796
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3788

class MetricDefinition < Struct.new(
  :filters,
  :function,
  :function_field,
  :group_by,
  :period)
  SENSITIVE = []
  include Aws::Structure
end

#function_field ⇒ String

The event property key the aggregation function operates on. Required for SUM and MAX; ignored for COUNT.

Returns:

  • (String)


3788
3789
3790
3791
3792
3793
3794
3795
3796
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3788

class MetricDefinition < Struct.new(
  :filters,
  :function,
  :function_field,
  :group_by,
  :period)
  SENSITIVE = []
  include Aws::Structure
end

#group_by ⇒ Array<String>

The event fields to group aggregated results by.

Returns:

  • (Array<String>)


3788
3789
3790
3791
3792
3793
3794
3795
3796
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3788

class MetricDefinition < Struct.new(
  :filters,
  :function,
  :function_field,
  :group_by,
  :period)
  SENSITIVE = []
  include Aws::Structure
end

#period ⇒ String

The reset or rollup period for the aggregation.

Returns:

  • (String)


3788
3789
3790
3791
3792
3793
3794
3795
3796
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 3788

class MetricDefinition < Struct.new(
  :filters,
  :function,
  :function_field,
  :group_by,
  :period)
  SENSITIVE = []
  include Aws::Structure
end