Class: Google::Apis::AnalyticsdataV1beta::MinuteRange
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::MinuteRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ..., endMinutesAgo. Requests are allowed up to 2 minute ranges.
Instance Attribute Summary collapse
-
#end_minutes_ago ⇒ Fixnum
The inclusive end minute for the query as a number of minutes before now.
-
#name ⇒ String
Assigns a name to this minute range.
-
#start_minutes_ago ⇒ Fixnum
The inclusive start minute for the query as a number of minutes before now.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MinuteRange
constructor
A new instance of MinuteRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MinuteRange
Returns a new instance of MinuteRange.
1132 1133 1134 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_minutes_ago ⇒ Fixnum
The inclusive end minute for the query as a number of minutes before now.
Cannot be before startMinutesAgo. For example, "endMinutesAgo": 15
specifies the report should include event data from prior to 15 minutes ago.
If unspecified, endMinutesAgo is defaulted to 0. Standard Analytics
properties can request any minute in the last 30 minutes of event data (
endMinutesAgo <= 29), and 360 Analytics properties can request any minute in
the last 60 minutes of event data (endMinutesAgo <= 59).
Corresponds to the JSON property endMinutesAgo
1111 1112 1113 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1111 def end_minutes_ago @end_minutes_ago end |
#name ⇒ String
Assigns a name to this minute range. The dimension dateRange is valued to
this name in a report response. If set, cannot begin with date_range_ or
RESERVED_. If not set, minute ranges are named by their zero based index in
the request: date_range_0, date_range_1, etc.
Corresponds to the JSON property name
1119 1120 1121 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1119 def name @name end |
#start_minutes_ago ⇒ Fixnum
The inclusive start minute for the query as a number of minutes before now.
For example, "startMinutesAgo": 29 specifies the report should include event
data from 29 minutes ago and after. Cannot be after endMinutesAgo. If
unspecified, startMinutesAgo is defaulted to 29. Standard Analytics
properties can request up to the last 30 minutes of event data (
startMinutesAgo <= 29), and 360 Analytics properties can request up to the
last 60 minutes of event data (startMinutesAgo <= 59).
Corresponds to the JSON property startMinutesAgo
1130 1131 1132 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1130 def start_minutes_ago @start_minutes_ago end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1137 1138 1139 1140 1141 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 1137 def update!(**args) @end_minutes_ago = args[:end_minutes_ago] if args.key?(:end_minutes_ago) @name = args[:name] if args.key?(:name) @start_minutes_ago = args[:start_minutes_ago] if args.key?(:start_minutes_ago) end |