- JSON representation
- RealtimeDatabaseAuditMetadata.QueryMetadata
- RealtimeDatabaseAuditMetadata.QueryMetadata.Bound
- RealtimeDatabaseAuditMetadata.WriteMetadata
- RealtimeDatabaseAuditMetadata.RestMetadata
- RealtimeDatabaseAuditMetadata.Precondition
FirebaseRealtimeDatabaseAuditMetaData is exposed as part of the new protoPayload.metadata messages.
| JSON representation |
|---|
{ "requestType": enum ( |
| Fields | |
|---|---|
requestType |
Preserve the distinction between realtime and REST operations. Unlike RTDB profiler output, Cloud Audit Data Access Logs for RTDB collapse |
protocol |
Store what protocol was used. |
restMetadata |
Details relevant only to REST requests. |
precondition |
An optional precondition for an |
executeDuration |
RTDB server business execution time. Not present for: |
pendingDuration |
RTDB server queueing time before execution begins. Not present for: |
path |
The data path that was accessed. Not present for: |
Union field operation_metadata. More details about Listens, Reads, or Updates. operation_metadata can be only one of the following: |
|
queryMetadata |
Metadata information for a |
writeMetadata |
Metadata information for an |
estimatedPayloadSizeBytes |
The estimated response size of the audited operation in bytes. Do not use for billing purposes. Not present for: |
RealtimeDatabaseAuditMetadata.QueryMetadata
QueryMetadata includes additional details about queries sent for Listens or Reads.
| JSON representation |
|---|
{ "orderBy": string, "direction": enum ( |
| Fields | |
|---|---|
orderBy |
How is the query ordered? Possible values: |
direction |
If |
startAt |
The query start point. |
endAt |
The query end point. |
equalTo |
If specified, query results only include children that match the specified value. |
unindexed |
If true, RTDB is not using a server-side index to serve data for the query. This means that RTDB may be sending more data than the query selects. Otherwise, not present. |
limit |
The query was limited to either the first or last |
RealtimeDatabaseAuditMetadata.QueryMetadata.Bound
A Bound is a query endpoint with a fallback key.
| JSON representation |
|---|
{ "value": value, "key": string, "exclusive": boolean } |
| Fields | |
|---|---|
value |
A value from the database instance. |
key |
The fallback key. If ordering by |
exclusive |
True if |
RealtimeDatabaseAuditMetadata.WriteMetadata
WriteMetadata includes additional details about Updates.
| JSON representation |
|---|
{ "paths": { string: string, ... } } |
| Fields | |
|---|---|
paths |
The paths modified in a multi-path update along with size of the data written at each path. |
RealtimeDatabaseAuditMetadata.RestMetadata
RestMetadata contains details relevant only to REST requests.
| JSON representation |
|---|
{
"requestUri": string,
"requestMethod": enum ( |
| Fields | |
|---|---|
requestUri |
The full database URL, including the path: |
requestMethod |
For REST requests, what method was used. Left unspecified for non-REST requests or if a method was not available. |
RealtimeDatabaseAuditMetadata.Precondition
Precondition describes the precondition, if any, that was used for an Update. Updates with preconditions known more commonly in RTDB as transactions.
| JSON representation |
|---|
{
"preconditionType": enum ( |
| Fields | |
|---|---|
preconditionType |
The type of precondition used. |
hash |
A SHA1 hash of the data the client expects to be at |