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:

NameDatatypeDescription
idstringDeprecated.
messageImportancestringImportance level of the message. (JOB_MESSAGE_IMPORTANCE_UNKNOWN, JOB_MESSAGE_DEBUG, JOB_MESSAGE_DETAILED, JOB_MESSAGE_BASIC, JOB_MESSAGE_WARNING, JOB_MESSAGE_ERROR)
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, jobIdendTime, minimumImportance, pageSize, pageToken, startTimeRequest 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. # IAM Permissions Requires the dataflow.messages.list permission on the job.
projects_jobs_messages_listselectprojectId, jobIdendTime, location, minimumImportance, pageSize, pageToken, startTimeRequest 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. # IAM Permissions Requires the dataflow.messages.list permission on the job.

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. # IAM Permissions Requires the dataflow.messages.list permission on the job.

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