API Stability Long-Term

The testFdrFeed() GraphQL mutation is used to test an FDR feed.

Syntax

Below is the syntax for the testFdrFeed() mutation field:

graphql
testFdrFeed(
      input: TestFdrFeed!
   ): TestFdrResult!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  testFdrFeed(input: {repositoryName: "humio", feedId: "abc123"}) {
    ... on TestFdrSuccessResult {
      result
    }
    ... on TestFdrErrorResult {
      errors {
        __typename
        ... on TestFdrValidationError {
          fieldName
          message
        }
        ... on TestFdrRequestError {
          resourceName
          message
        }
      }
    }
  }
}

Given Datatypes

For TestFdrFeed, there are a few parameters that may be given. Below is a list of them along with a description of each:

Table: TestFdrFeed

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 20, 2024
clientIdstring   AWS client id to use in FDR feed test. If not set, the 'clientId' of the existing FDR feed will be used.
clientSecretstring   AWS client secret to use in FDR feed test. If not set, the clientSecret of the existing FDR feed will be used.
feedIdstring   The unique identifier of an existing FDR feed. If no ID is provided, the remaining input fields must be set.
repositoryNamestringyes  The name of the repository of the FDR feed.
s3Identifierstring   AWS S3 identifier to use in FDR feed test. If not set, the s3Identifier of the existing FDR feed will be used.
sqsUrlstring   AWS SQS queue url to use in FDR feed test. If not set, the sqsUrl of the existing FDR feed will be used.

Returned Datatypes

The returned datatype, TestFdrResult is the output of running all the parser test cases, and a union of two other datatypes: TestFdrSuccessResult and TestFdrErrorResult. The parameters for those are listed in the tables below. See the example given above for a better understanding on how to enter these parameters.

Table: TestFdrSuccessResult

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: Oct 3, 2024
resultbooleanyes Long-TermThe result of the test. It's always 'true'.

Table: TestFdrErrorResult

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: Oct 3, 2024
errors[error]yes Long-TermList of test errors. See also TestFdrSuccessResult.