Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix field name mismatches on combiner event source" #272

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions clients/graphql/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ type GetAlertsResponse struct {
type AlertsInput struct {
// Indicate a list of addresses.
// Alerts returned will have those addresses involved.
Addresses []string `json:"addresses,omitempty"`
Addresses []string `json:"addresses"`
// Search results after the specified cursor
After *AlertEndCursorInput `json:"after,omitempty"`
// Get a specific alert by alert hash.
AlertHash string `json:"alertHash,omitempty"`
AlertHash string `json:"alertHash"`
// Filter alerts by alert-id.
AlertId string `json:"alertId,omitempty"`
AlertId string `json:"alertId"`
// Filter alerts by multiple alert-ids.
AlertIds []string `json:"alertIds,omitempty"`
AlertIds []string `json:"alertIds"`
// Filter alerts by alert name.
AlertName string `json:"alertName,omitempty"`
AlertName string `json:"alertName"`
// Block Date range
// Alerts returned will be between the specified start and end block timestamp dates when the threats were detected.
// By default, start and end date will be set to local query execution date.
Expand All @@ -39,35 +39,35 @@ type AlertsInput struct {
// Indicate sorting order by block number,
// 'desc' or 'asc'.
// Default is 'desc'.
BlockSortDirection Sort `json:"blockSortDirection,omitempty"`
BlockSortDirection Sort `json:"blockSortDirection"`
// Block Timestamp range
// Alerts returned will be between the specified start and end block timestamp when the threats were detected.
BlockTimestampRange *TimestampRange `json:"blockTimestampRange,omitempty"`
// Indicate a list of bot hashes.
// Alerts returned will only be from any of those bots.
Bots []string `json:"bots,omitempty"`
Bots []string `json:"bots"`
// Indicate a chain Id: EIP155 identifier of the chain
// Alerts returned will only be from the specific chain Id
// Default is 1 = Ethereum Mainnet.
ChainId uint `json:"chainId,omitempty"`
ChainId uint `json:"chainId"`
// Indicate number of milliseconds
// Alerts returned will be alerts created before the number of milliseconds indicated ago.
CreatedBefore uint `json:"createdBefore,omitempty"`
CreatedBefore uint `json:"createdBefore"`
// Indicate number of milliseconds
// Alerts returned will be alerts created since the number of milliseconds indicated ago.
CreatedSince uint `json:"createdSince,omitempty"`
CreatedSince uint `json:"createdSince"`
// Indicate max number of results.
First uint `json:"first,omitempty"`
First uint `json:"first"`
// Indicate a project Id.
// Alerts returned will only be from that project.
ProjectId string `json:"projectId,omitempty"`
ProjectId string `json:"projectId"`
// Filter alerts by number of scan nodes confirming the alert.
ScanNodeConfirmations *ScanNodeFilters `json:"scanNodeConfirmations,omitempty"`
// Filter alerts by severity levels.
Severities []string `json:"severities,omitempty"`
Severities []string `json:"severities"`
// Indicate a transaction hash
// Alerts returned will only be from that transaction.
TransactionHash string `json:"transactionHash,omitempty"`
TransactionHash string `json:"transactionHash"`
}

// AlertEndCursorInput Search after specified block number and alertId
Expand Down
Loading
Loading