Skip to content

Commit

Permalink
refactor(comment): removing comment from incident collector
Browse files Browse the repository at this point in the history
  • Loading branch information
sandesvitor committed Oct 19, 2023
1 parent 5c0e767 commit fe4294f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/plugins/opsgenie/tasks/incidents_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,8 @@ func CollectIncidents(taskCtx plugin.SubTaskContext) errors.Error {
UrlTemplate: "v1/incidents",
Query: func(reqData *api.RequestData, createdAfter *time.Time) (url.Values, errors.Error) {
query := url.Values{}
//var incidentQueryParams string
incidentQueryParams := fmt.Sprintf("impactedServices:%s", data.Options.ServiceId)

// if createdAfter != nil {
// datetime, _ := time.Parse(time.RFC3339Nano, createdAfter.String())
// timestampMillis := datetime.UnixNano() / int64(time.Millisecond)
// incidentQueryParams = fmt.Sprintf("impactedServices:%s+createdAt>%d", data.Options.ServiceId, timestampMillis)
// } else {
// incidentQueryParams = fmt.Sprintf("impactedServices:%s", data.Options.ServiceId)
// }

query.Set("query", incidentQueryParams)
query.Set("sort", "createdAt")
query.Set("order", "desc")
Expand Down

0 comments on commit fe4294f

Please sign in to comment.