Class: Aws::AppMonetization::Types::CreateMetricRequest

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

Overview

Input for CreateMetric. This operation carries no scope selector: metric authoring always addresses the live app. The sandbox always runs the live app's draft, so its metrics are read-only through this API. Read them with GetMetric or ListMetrics using scope=sandbox or stage=DRAFT.

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)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#client_token ⇒ String

A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#definition ⇒ Types::MetricDefinition

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



1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#description ⇒ String

A description of what the metric measures.

Returns:

  • (String)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#event_type ⇒ String

The event type this metric aggregates. Must match the eventType sent on PutEvent.

Returns:

  • (String)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

A human-readable display name for the metric (for example, Riddles Solved).

Returns:

  • (String)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tags ⇒ Hash<String,String>

Optional tags to add to the metric when it is created. Tagging on create also requires permission for appmonetization:TagResource.

Returns:

  • (Hash<String,String>)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#unit_name ⇒ String

The unit of measure for the metric (for example, "requests" or "tokens").

Returns:

  • (String)


1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1302

class CreateMetricRequest < Struct.new(
  :app_id,
  :name,
  :description,
  :event_type,
  :unit_name,
  :definition,
  :client_token,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end