Skip to content

Commit

Permalink
fix: removed metadata fields
Browse files Browse the repository at this point in the history
  • Loading branch information
subomi committed Feb 8, 2024
1 parent 4ad8d53 commit f316650
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
11 changes: 5 additions & 6 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ type CreateDynamicEventRequest struct {
}

type EventResponse struct {
UID string `json:"uid"`
EventType string `json:"event_type"`
MatchedEndpoints int `json:"matched_endpoints"`
ProviderID string `json:"provider_id"`
Data json.RawMessage `json:"data"`
EndpointMetadata []*EndpointResponse `json:"endpoint_metadata"`
UID string `json:"uid"`
EventType string `json:"event_type"`
MatchedEndpoints int `json:"matched_endpoints"`
ProviderID string `json:"provider_id"`
Data json.RawMessage `json:"data"`

CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Expand Down
11 changes: 5 additions & 6 deletions event_delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ type EventDelivery struct {
}

type EventDeliveryResponse struct {
UID string `json:"uid"`
EventMetadata EventMetadata `json:"event_metadata"`
EndpointMetadata EndpointResponse `json:"endpoint_metadata"`
Metadata Metadata `json:"metadata"`
Description string `json:"description,omitempty"`
Status string `json:"status"`
UID string `json:"uid"`
EventMetadata EventMetadata `json:"event_metadata"`
Metadata Metadata `json:"metadata"`
Description string `json:"description,omitempty"`
Status string `json:"status"`

CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Expand Down
3 changes: 1 addition & 2 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ type SubscriptionResponse struct {
Type string `json:"type"`
Status string `json:"status"`

Source *SourceResponse `json:"source_metadata,omitempty"`
Endpoint *EndpointResponse `json:"endpoint_metadata,omitempty"`
Source *SourceResponse `json:"source_metadata,omitempty"`

// subscription config
AlertConfig *AlertConfiguration `json:"alert_config,omitempty"`
Expand Down

0 comments on commit f316650

Please sign in to comment.