Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::MinuteRange.
A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,
endMinutesAgo. Requests are allowed up to 2 minute ranges.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#end_minutes_ago
defend_minutes_ago()->::Integer
Returns
(::Integer) — 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).
#end_minutes_ago=
defend_minutes_ago=(value)->::Integer
Parameter
value (::Integer) — 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).
Returns
(::Integer) — 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).
#name
defname()->::String
Returns
(::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.
#name=
defname=(value)->::String
Parameter
value (::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.
Returns
(::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.
#start_minutes_ago
defstart_minutes_ago()->::Integer
Returns
(::Integer) — 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).
#start_minutes_ago=
defstart_minutes_ago=(value)->::Integer
Parameter
value (::Integer) — 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).
Returns
(::Integer) — 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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::MinuteRange (v0.4.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.3 (latest)](/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-MinuteRange)\n- [0.4.2](/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-MinuteRange) \nReference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::MinuteRange.\n\nA contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ...,\nendMinutesAgo. Requests are allowed up to 2 minute ranges. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #end_minutes_ago\n\n def end_minutes_ago() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n\n If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics\n properties can request any minute in the last 30 minutes of event data\n (`endMinutesAgo \u003c= 29`), and 360 Analytics properties can request any\n minute in the last 60 minutes of event data (`endMinutesAgo \u003c= 59`).\n\n### #end_minutes_ago=\n\n def end_minutes_ago=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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.\n\n\n If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics\n properties can request any minute in the last 30 minutes of event data\n (`endMinutesAgo \u003c= 29`), and 360 Analytics properties can request any\nminute in the last 60 minutes of event data (`endMinutesAgo \u003c= 59`). \n**Returns**\n\n- (::Integer) --- 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.\n\n\n If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics\n properties can request any minute in the last 30 minutes of event data\n (`endMinutesAgo \u003c= 29`), and 360 Analytics properties can request any\n minute in the last 60 minutes of event data (`endMinutesAgo \u003c= 59`).\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #start_minutes_ago\n\n def start_minutes_ago() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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`.\n\n\n If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics\n properties can request up to the last 30 minutes of event data\n (`startMinutesAgo \u003c= 29`), and 360 Analytics properties can request up to\n the last 60 minutes of event data (`startMinutesAgo \u003c= 59`).\n\n### #start_minutes_ago=\n\n def start_minutes_ago=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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`.\n\n\n If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics\n properties can request up to the last 30 minutes of event data\n (`startMinutesAgo \u003c= 29`), and 360 Analytics properties can request up to\nthe last 60 minutes of event data (`startMinutesAgo \u003c= 59`). \n**Returns**\n\n- (::Integer) --- 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`.\n\n\n If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics\n properties can request up to the last 30 minutes of event data\n (`startMinutesAgo \u003c= 29`), and 360 Analytics properties can request up to\n the last 60 minutes of event data (`startMinutesAgo \u003c= 59`)."]]