Skip to main content

notes

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

Overview

Namenotes
TypeResource
Idfirebase.firebasecrashlytics.notes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Identifier. Format: "projects/{project}/apps/app/issues/{issue}/notes/{note}".
authorstringOutput only. The email of the author of the note.
bodystringImmutable. The body of the note.
createTimestring (google-datetime)Output only. Time when the note was created.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, appsId, issuesIdpageToken, pageSizeList all notes for a certain issue, sorted in descending order by timestamp.
createinsertprojectsId, appsId, issuesIdCreate a new note for an issue.
deletedeleteprojectsId, appsId, issuesId, notesIdDelete a note by its name.

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
appsIdstring
issuesIdstring
notesIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

List all notes for a certain issue, sorted in descending order by timestamp.

SELECT
name,
author,
body,
createTime
FROM firebase.firebasecrashlytics.notes
WHERE projectsId = '{{ projectsId }}' -- required
AND appsId = '{{ appsId }}' -- required
AND issuesId = '{{ issuesId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;

INSERT examples

Create a new note for an issue.

INSERT INTO firebase.firebasecrashlytics.notes (
data__body,
projectsId,
appsId,
issuesId
)
SELECT
'{{ body }}',
'{{ projectsId }}',
'{{ appsId }}',
'{{ issuesId }}'
RETURNING
name,
author,
body,
createTime
;

DELETE examples

Delete a note by its name.

DELETE FROM firebase.firebasecrashlytics.notes
WHERE projectsId = '{{ projectsId }}' --required
AND appsId = '{{ appsId }}' --required
AND issuesId = '{{ issuesId }}' --required
AND notesId = '{{ notesId }}' --required
;