Class: Aws::AppMonetization::Types::CreateMetricRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMonetization::Types::CreateMetricRequest
- 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
-
#app_id ⇒ String
The ID of the app the metric belongs to.
-
#client_token ⇒ String
A unique, case-sensitive identifier to ensure that the operation completes no more than one time.
-
#definition ⇒ Types::MetricDefinition
The aggregation definition: filters, aggregation function, grouping, and period.
-
#description ⇒ String
A description of what the metric measures.
-
#event_type ⇒ String
The event type this metric aggregates.
-
#name ⇒ String
A human-readable display name for the metric (for example,
Riddles Solved). -
#tags ⇒ Hash<String,String>
Optional tags to add to the metric when it is created.
-
#unit_name ⇒ String
The unit of measure for the metric (for example, "requests" or "tokens").
Instance Attribute Details
#app_id ⇒ String
The ID of the app the metric belongs to.
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.
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.
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.
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).
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.
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").
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 |