-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback to deprecated functionality for versions prior to LogScale 1.129.0
- Loading branch information
1 parent
15157fb
commit 7d676ae
Showing
10 changed files
with
425 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package humiographql | ||
|
||
import ( | ||
graphql "github.com/cli/shurcooL-graphql" | ||
) | ||
|
||
type UpdateParserScriptInput struct { | ||
Script graphql.String `json:"script"` | ||
} | ||
|
||
type ParserTestEventInput struct { | ||
RawString graphql.String `json:"rawString"` | ||
} | ||
|
||
type FieldHasValueInput struct { | ||
FieldName graphql.String `json:"fieldName"` | ||
ExpectedValue graphql.String `json:"expectedValue"` | ||
} | ||
|
||
type ParserTestCaseOutputAssertionsInput struct { | ||
FieldsNotPresent []graphql.String `json:"fieldsNotPresent"` | ||
FieldsHaveValues []FieldHasValueInput `json:"fieldsHaveValues"` | ||
} | ||
|
||
type ParserTestCaseAssertionsForOutputInput struct { | ||
OutputEventIndex graphql.Int `json:"outputEventIndex"` | ||
Assertions ParserTestCaseOutputAssertionsInput `json:"assertions"` | ||
} | ||
|
||
type ParserTestCaseInput struct { | ||
Event ParserTestEventInput `json:"event"` | ||
OutputAssertions []ParserTestCaseAssertionsForOutputInput `json:"outputAssertions"` | ||
} | ||
|
||
type ParserTestEvent struct { | ||
RawString graphql.String `graphql:"rawString"` | ||
} | ||
|
||
type FieldHasValue struct { | ||
FieldName graphql.String `graphql:"fieldName"` | ||
ExpectedValue graphql.String `graphql:"expectedValue"` | ||
} | ||
|
||
type ParserTestCaseOutputAssertions struct { | ||
FieldsNotPresent []string `graphql:"fieldsNotPresent"` | ||
FieldsHaveValues []FieldHasValue `graphql:"fieldsHaveValues"` | ||
} | ||
|
||
type ParserTestCaseAssertionsForOutput struct { | ||
OutputEventIndex graphql.Int `graphql:"outputEventIndex"` | ||
Assertions ParserTestCaseOutputAssertions `graphql:"assertions"` | ||
} | ||
|
||
type ParserTestCase struct { | ||
Event ParserTestEvent `graphql:"event"` | ||
OutputAssertions []ParserTestCaseAssertionsForOutput `graphql:"outputAssertions"` | ||
} | ||
|
||
type Parser struct { | ||
ID graphql.String `graphql:"id"` | ||
Name graphql.String `graphql:"name"` | ||
DisplayName graphql.String `graphql:"displayName"` | ||
Description graphql.String `graphql:"description""` | ||
IsBuiltIn graphql.Boolean `graphql:"isBuiltIn"` | ||
Script graphql.String `graphql:"script"` | ||
FieldsToTag []graphql.String `graphql:"fieldsToTag"` | ||
FieldsToBeRemovedBeforeParsing []graphql.String `graphql:"fieldsToBeRemovedBeforeParsing"` | ||
TestCases []ParserTestCase `graphql:"testCases"` | ||
} | ||
|
||
type CreateParserInputV2 struct { | ||
Name graphql.String `json:"name"` | ||
Script graphql.String `json:"script""` | ||
TestCases []ParserTestCaseInput `json:"testCases"` | ||
RepositoryName RepoOrViewName `json:"repositoryName"` | ||
FieldsToTag []graphql.String `json:"fieldsToTag"` | ||
FieldsToBeRemovedBeforeParsing []graphql.String `json:"fieldsToBeRemovedBeforeParsing"` | ||
AllowOverwritingExistingParser graphql.Boolean `json:"allowOverwritingExistingParser"` | ||
} |
Oops, something went wrong.