turbot/googleworkspace
steampipe plugin install googleworkspace

Table: googleworkspace_calendar_my_event - Query Google Workspace Calendar Events using SQL

Google Workspace Calendar is a core service within Google Workspace that allows users to schedule events, invite people, and customize their calendars to suit their needs. It provides a centralized way to manage schedules, meetings, and appointments, helping users stay organized and informed about their upcoming events. Google Workspace Calendar helps you stay updated about your schedule and take necessary actions when needed.

Table Usage Guide

The googleworkspace_calendar_my_event table provides insights into Google Workspace Calendar Events. As an administrator or a user, explore event-specific details through this table, including event start and end times, attendees, and event status. Utilize it to uncover information about your events, such as those with conflicting schedules, attendees' responses to event invitations, and details about recurring events.

Examples

Basic info

Gain insights into upcoming events from your Google Workspace Calendar. This query allows you to plan and prioritize by providing a snapshot of the next 10 events, including their summaries and associated hangout links.

select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
order by
start_time
limit
10;
select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
order by
start_time
limit
10;

List events scheduled for tomorrow

Gain insights into your upcoming events by pinpointing the specific ones scheduled for tomorrow, allowing for effective planning and time management.

select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= (current_date + interval '1 day')
and start_time < (current_date + interval '2 days')
order by
start_time;
select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date('now', '+1 day')
and start_time < date('now', '+2 day')
order by
start_time;

List events scheduled in next 4 days

Discover the segments that have events scheduled in the coming four days. This is useful for planning and managing your schedule effectively.

select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= current_date
and start_time <= (current_date + interval '4 days')
order by
start_time;
select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date('now')
and start_time <= date('now', '+4 days')
order by
start_time;

List events scheduled in current month

Explore which events are scheduled for the current month to manage your time and plan accordingly. This allows you to gain insights into your schedule, helping to avoid clashes and ensure efficient time management.

select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date_trunc('month', current_date)
and start_time <= date_trunc('month', current_date) + interval '1 month'
order by
start_time;
select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date('now', 'start of month')
and start_time <= date('now', 'start of month', '+1 month')
order by
start_time;

List events scheduled in current week

Explore the schedule for the current week to understand your upcoming commitments and plan accordingly. This helps in efficiently managing your time by gaining insights into the events lined up for the week.

select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date_trunc('week', current_date)
and start_time < (date_trunc('week', current_date) + interval '7 days')
order by
start_time;
select
summary,
hangout_link,
start_time,
end_time
from
googleworkspace_calendar_my_event
where
start_time >= date('now', 'weekday 0', '-7 days')
and start_time < date('now', 'weekday 0')
order by
start_time;

List upcoming events scheduled on every Tuesday and Thursday

Discover the segments that have upcoming events scheduled on Tuesdays and Thursdays. This is useful for planning and organizing your week ahead with a focus on those specific days.

select
summary,
hangout_link,
start_time,
end_time,
day
from
googleworkspace_calendar_my_event
where
extract(
dow
from
start_time
) in (2, 4)
and start_time >= current_date
order by
start_time
limit
10;
select
summary,
hangout_link,
start_time,
end_time,
day
from
googleworkspace_calendar_my_event
where
strftime('%w', start_time) in ('2', '4')
and date(start_time) >= date('now')
order by
start_time
limit
10;

Schema for googleworkspace_calendar_my_event

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
attachmentsjsonbA list of file attachments for the event.
attendeesjsonbA list of attendees of the event.
attendees_omittedbooleanIndicates whether attendees may have been omitted from the event's representation, or not.
calendar_idtextIdentifier of the calendar.
color_idtextThe color of the event.
conference_datajsonbThe conference-related information, such as details of a Google Meet conference.
created_attimestamp with time zoneCreation time of the event.
creatorjsonbSpecifies the creator details of the event.
daytextSpecifies the day of a week.
descriptiontextA short user-defined description of the event.
end_timetimestamp with time zoneSpecifies the event end time.
end_time_unspecifiedbooleanIndicates whether the end time is actually unspecified, or not.
etagtextETag of the resource.
event_typetextSpecifies the type of the event.
extended_propertiesjsonbA list of extended properties of the event.
guests_can_invite_othersbooleanIndicates whether attendees other than the organizer can invite others to the event, or not.
guests_can_modifybooleanIndicates whether attendees other than the organizer can modify the event, or not.
guests_can_see_other_guestsbooleanIndicates whether attendees other than the organizer can modify the event, or not.
hangout_linktextAn absolute link to the Google Hangout associated with this event.
html_linktextAn absolute link to this event in the Google Calendar Web UI.
ical_uidtextSpecifies the event unique identifier as defined in RFC5545. It is used to uniquely identify events accross calendaring systems and must be supplied when importing events via the import method.
idtextOpaque identifier of the event.
locationtextGeographic location of the event as free-form text.
lockedbooleanIndicates whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence".
organizerjsonbSpecifies the organizer details of the event.
original_start_timejsonbFor an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId.
private_copybooleanIndicates whether event propagation is disabled, or not.
querytext=Filter string to filter events.
recurrencejsonbA list of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as specified in RFC5545.
recurring_event_idtextFor an instance of a recurring event, this is the id of the recurring event to which this instance belongs.
remindersjsonbInformation about the event's reminders for the authenticated user.
sequencebigintSequence number as per iCalendar.
sourcejsonbSource from which the event was created.
start_timetimestamp with time zone>, >=, =, <, <=Specifies the event start time.
statustextStatus of the event.
summarytextSpecifies the title of the event.
timezonetextThe time zone of the calendar.
transparencytextIndicates whether the event blocks time on the calendar.
updated_attimestamp with time zoneLast modification time of the event.
visibilitytextVisibility of the event.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- googleworkspace

You can pass the configuration to the command with the --config argument:

steampipe_export_googleworkspace --config '<your_config>' googleworkspace_calendar_my_event