Skip to main content

messages

Creates, updates, deletes, gets or lists a messages resource.

Overview

Namemessages
TypeResource
Idgoogle.dataflow.messages

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstringDeprecated.
messageImportancestringImportance level of the message.
messageTextstringThe text of the message.
timestring (google-datetime)The timestamp of the message.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_jobs_messages_listselectprojectId, location, jobIdminimumImportance, pageSize, pageToken, startTime, endTimeRequest the job status. To request the status of a job, we recommend using projects.locations.jobs.messages.list with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.messages.list is not recommended, as you can only request the status of jobs that are running in us-central1.
projects_jobs_messages_listselectprojectId, jobIdminimumImportance, pageSize, pageToken, startTime, endTime, locationRequest the job status. To request the status of a job, we recommend using projects.locations.jobs.messages.list with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.messages.list is not recommended, as you can only request the status of jobs that are running in us-central1.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
jobIdstring
locationstring
projectIdstring
endTimestring (google-datetime)
locationstring
minimumImportancestring
pageSizeinteger (int32)
pageTokenstring
startTimestring (google-datetime)

SELECT examples

Request the job status. To request the status of a job, we recommend using projects.locations.jobs.messages.list with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using projects.jobs.messages.list is not recommended, as you can only request the status of jobs that are running in us-central1.

SELECT
id,
messageImportance,
messageText,
time
FROM google.dataflow.messages
WHERE projectId = '{{ projectId }}' -- required
AND location = '{{ location }}' -- required
AND jobId = '{{ jobId }}' -- required
AND minimumImportance = '{{ minimumImportance }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}';