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:
testFdrFeed(
input: TestFdrFeed!
): TestFdrResult!
Below is an example of how this mutation field might be used:
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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
clientId | string | Long-Term | AWS client id to use in FDR feed test. If not set, the 'clientId' of the existing FDR feed will be used. | ||
clientSecret | string | Long-Term | AWS client secret to use in FDR feed test. If not set, the clientSecret of the existing FDR feed will be used. | ||
feedId | string | Long-Term | The unique identifier of an existing FDR feed. If no ID is provided, the remaining input fields must be set. | ||
repositoryName | string | yes | Long-Term | The name of the repository of the FDR feed. | |
s3Identifier | string | Long-Term | AWS S3 identifier to use in FDR feed test. If not set, the s3Identifier of the existing FDR feed will be used. | ||
sqsUrl | string | Long-Term | 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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
result | boolean | yes | Long-Term | The result of the test. It's always 'true'. |
Table: TestFdrErrorResult
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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-Term | List of test errors. See also TestFdrSuccessResult . |