Skip to content

Commit

Permalink
chore: disable lint of generated types (golint stutter)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderblue committed Sep 4, 2020
1 parent 6ad452f commit 9faf59d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/alerts/nrql_conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ import (

// AlertsNrqlConditionExpiration - **Preview access:** These fields may be viewed and set, but will not be active until the release date.
// Settings for how violations are opened or closed when a signal expires.
// nolint:golint
type AlertsNrqlConditionExpiration struct {
CloseViolationsOnExpiration bool `json:"closeViolationsOnExpiration"`
ExpirationDuration *int `json:"expirationDuration,omitempty"`
CloseViolationsOnExpiration bool `json:"closeViolationsOnExpiration"`
OpenViolationOnExpiration bool `json:"openViolationOnExpiration"`
}

// AlertsNrqlConditionSignal - Configuration that defines the signal that the NRQL condition will use to evaluate.
// nolint:golint
type AlertsNrqlConditionSignal struct {
EvaluationOffset int `json:"evaluationOffset"`
FillOption AlertsFillOption `json:"fillOption"`
FillValue *float64 `json:"fillValue,omitempty"`
}

// AlertsFillOption - The available fill options.
type AlertsFillOption string
type AlertsFillOption string // nolint:golint

var AlertsFillOptionTypes = struct {
// Fill using the last known value.
LAST_VALUE AlertsFillOption
LAST_VALUE AlertsFillOption // nolint:golint
// Do not fill data.
NONE AlertsFillOption
// Fill using a static value.
Expand Down

0 comments on commit 9faf59d

Please sign in to comment.