GraphQlQueryEventLog

GraphQL Query events contain information about executed queries, including total execution time, the number of invocations, and any reported errors.. This object is available in API version 69.0 and later.

This object stores event data that's queryable from platform APIs. For event data stored in event log files, see EventLogFile.

Note

Supported Calls

describeSObjects(), query()

Special Access Rules

This object is read-only and requires access to Event Monitoring. The org must have access to event log objects (EventMonitoring.orgCanAccessEventLogObjects) and a user must have read access to event log objects (EventMonitoring.userCanReadEventLogObjects).

Fields

Field Details
ActualCost
Type
double
Properties
Filter, Nillable, Sort
Description
The actual cost of the GraphQL query execution.
AppType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The invocation application of the GraphQL request.
ClientIp
Type
string
Properties
Filter, Group, Nillable, Sort
Description
IP address of the client employing salesforce.com services.
CpuTime
Type
double
Properties
Filter, Nillable, Sort
Description
Amount of cpu cycles used by the request
ElapsedTime
Type
double
Properties
Filter, Nillable, Sort
Description
The total time taken to execute the query.
EstimatedCost
Type
double
Properties
Filter, Nillable, Sort
Description
The estimated upper-bound cost of the GraphQL query.
Exception
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The exception, if one is thrown.
LoginKey
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The string that ties together all events in a given user’s login session. It starts with a login event and ends with either a logout event or the user session expiring.
OperationName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The operation name for the GraphQL query.
QueryLength
Type
double
Properties
Filter, Nillable, Sort
Description
The total number of characters in a query.
QueryString
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The full GraphQL query.
RawSoqlRecordsSize
Type
double
Properties
Filter, Nillable, Sort
Description
The response size, in bytes, from raw SOQL records.
RequestIdentifier
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same REQUEST_ID.
RunTime
Type
double
Properties
Filter, Nillable, Sort
Description
The amount of time that the request took in milliseconds.
SessionKey
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The user’s unique session ID. You can use this value to identify all user events within a session. When a user logs out and logs in again, a new session is started.
Timestamp
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The access time of Salesforce services in GMT.
TrackedExpensiveFetcherSize
Type
double
Properties
Filter, Nillable, Sort
Description
The response size, in bytes, from tracked expensive data fetchers.
Uri
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The URI of the page that’s receiving the request.
UserIdentifier
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The 15-character ID of the user who’s using Salesforce services through the UI or the API.
UserType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The category of user license.
Possible values are:
  • CsnOnly—Users whose access to the application is limited to Chatter. This user type includes Chatter Free and Chatter moderator users.
  • CspLitePortal—CSP Lite Portal license. Users whose access is limited because they’re organization customers and access the application through a customer portal or an Experience Cloud site.
  • CustomerSuccess—Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal.
  • Guest—Users whose access is limited so that your customers can view and interact with your site without logging in.
  • PowerCustomerSuccess—Power Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal. Users with this license type can view and edit data they directly own or data owned by or shared with users below them in the customer portal role hierarchy.
  • PowerPartner—Power Partner license. Users whose access is limited because they’re partners and typically access the application through a partner portal or site.
  • SelfService—Users whose access is limited because they’re organization customers and access the application through a self-service portal.
  • Standard—Standard user license. This user type also includes Salesforce Platform and Salesforce Platform One user licenses, and admins for this org.
Variables
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The variables supplied to the GraphQL query.