Skip to content

Commit

Permalink
Revert "Fix field name mismatches on combiner event source"
Browse files Browse the repository at this point in the history
  • Loading branch information
aomerk authored Oct 20, 2023
1 parent ba5f780 commit 00bafc1
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 98 deletions.
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

0 comments on commit 00bafc1

Please sign in to comment.