Class: Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1TimelineSpec
- Inherits:
-
Object
- Object
- Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1TimelineSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb,
lib/google/apis/playdeveloperreporting_v1alpha1/representations.rb,
lib/google/apis/playdeveloperreporting_v1alpha1/representations.rb
Overview
Specification of the time-related aggregation parameters of a timeline.
Timelines have an aggregation period (DAILY, HOURLY, etc) which defines
how events are aggregated in metrics. The points in a timeline are defined by
the starting DateTime of the aggregation period. The duration is implicit in
the AggregationPeriod. Hourly aggregation periods, when supported by a metric
set, are always specified in UTC to avoid ambiguities around daylight saving
time transitions, where an hour is skipped when adopting DST, and repeated
when abandoning DST. For example, the timestamp '2021-11-07 01:00:00 America/
Los_Angeles' is ambiguous since it can correspond to '2021-11-07 08:00:00 UTC'
or '2021-11-07 09:00:00 UTC'. Daily aggregation periods require specifying a
timezone which will determine the precise instants of the start and the end of
the day. Not all metric sets support all timezones, so make sure to check
which timezones are supported by the metric set you want to query.
Instance Attribute Summary collapse
-
#aggregation_period ⇒ String
Type of the aggregation period of the datapoints in the timeline.
-
#end_time ⇒ Google::Apis::PlaydeveloperreportingV1alpha1::GoogleTypeDateTime
Represents civil time (or occasionally physical time).
-
#start_time ⇒ Google::Apis::PlaydeveloperreportingV1alpha1::GoogleTypeDateTime
Represents civil time (or occasionally physical time).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePlayDeveloperReportingV1alpha1TimelineSpec
constructor
A new instance of GooglePlayDeveloperReportingV1alpha1TimelineSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePlayDeveloperReportingV1alpha1TimelineSpec
Returns a new instance of GooglePlayDeveloperReportingV1alpha1TimelineSpec.
1510 1511 1512 |
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 1510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_period ⇒ String
Type of the aggregation period of the datapoints in the timeline. Intervals
are identified by the date and time at the start of the interval.
Corresponds to the JSON property aggregationPeriod
1472 1473 1474 |
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 1472 def aggregation_period @aggregation_period end |
#end_time ⇒ Google::Apis::PlaydeveloperreportingV1alpha1::GoogleTypeDateTime
Represents civil time (or occasionally physical time). This type can represent
a civil time in one of a few possible ways: * When utc_offset is set and
time_zone is unset: a civil time on a calendar day with a particular offset
from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
calendar day in a particular time zone. * When neither time_zone nor
utc_offset is set: a civil time on a calendar day in local time. The date is
relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
the DateTime is considered not to have a specific year, month, or day
respectively. This type may also be used to represent a physical time if all
the date and time fields are set and either case of the time_offset oneof is
set. Consider using Timestamp message for physical time instead. If your use
case also would like to store the user's timezone, that can be done in another
field. This type is more flexible than some applications may want. Make sure
to document and validate your application's limitations.
Corresponds to the JSON property endTime
1490 1491 1492 |
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 1490 def end_time @end_time end |
#start_time ⇒ Google::Apis::PlaydeveloperreportingV1alpha1::GoogleTypeDateTime
Represents civil time (or occasionally physical time). This type can represent
a civil time in one of a few possible ways: * When utc_offset is set and
time_zone is unset: a civil time on a calendar day with a particular offset
from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
calendar day in a particular time zone. * When neither time_zone nor
utc_offset is set: a civil time on a calendar day in local time. The date is
relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
the DateTime is considered not to have a specific year, month, or day
respectively. This type may also be used to represent a physical time if all
the date and time fields are set and either case of the time_offset oneof is
set. Consider using Timestamp message for physical time instead. If your use
case also would like to store the user's timezone, that can be done in another
field. This type is more flexible than some applications may want. Make sure
to document and validate your application's limitations.
Corresponds to the JSON property startTime
1508 1509 1510 |
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 1508 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1515 1516 1517 1518 1519 |
# File 'lib/google/apis/playdeveloperreporting_v1alpha1/classes.rb', line 1515 def update!(**args) @aggregation_period = args[:aggregation_period] if args.key?(:aggregation_period) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |