API Stability Preview

The flightRecorderSettings() GraphQL query is used to return the Java Flight Recorder settings for the specified vhost.

Syntax

Below is the syntax for the flightRecorderSettings() query field:

graphql
flightRecorderSettings(
       vhost: integer!
    ): FlightRecorderSettings

Below is an example of how to use this query field:

Show:
graphql
query {
  flightRecorderSettings(vhost: 1)
  {oldObjectSampleEnabled, oldObjectSampleDurationMinutes}
}
Example Responses
Show:
json
{
  "data": {
    "flightRecorderSettings": {
      "oldObjectSampleEnabled": false,
      "oldObjectSampleDurationMinutes": 3600000
    }
  }
}

Returned Datatypes

The FlightRecorderSettings datatype has a couple of parameters They're listed below:

Table: FlightRecorderSettings

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
oldObjectSampleDurationMinuteslongyes PreviewThe duration an old object sampling will run before dumping results and restarting.
oldObjectSampleEnabledbooleanyes PreviewWhether an OldObjectSample is enabled.