mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Revert "Update dependencies"
This commit is contained in:
3
vendor/github.com/zorkian/go-datadog-api/.travis.yml
generated
vendored
3
vendor/github.com/zorkian/go-datadog-api/.travis.yml
generated
vendored
@@ -1,9 +1,10 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- "1.7"
|
||||
- "1.8"
|
||||
- "1.9"
|
||||
- "1.10.x"
|
||||
- "1.11.x"
|
||||
- "tip"
|
||||
|
||||
env:
|
||||
|
||||
113
vendor/github.com/zorkian/go-datadog-api/datadog-accessors.go
generated
vendored
113
vendor/github.com/zorkian/go-datadog-api/datadog-accessors.go
generated
vendored
@@ -5779,37 +5779,6 @@ func (o *Options) SetThresholds(v ThresholdCount) {
|
||||
o.Thresholds = &v
|
||||
}
|
||||
|
||||
// GetThresholdWindows returns the ThresholdWindows field if non-nil, zero value otherwise.
|
||||
func (o *Options) GetThresholdWindows() ThresholdWindows {
|
||||
if o == nil || o.ThresholdWindows == nil {
|
||||
return ThresholdWindows{}
|
||||
}
|
||||
return *o.ThresholdWindows
|
||||
}
|
||||
|
||||
// GetThresholdWindowsOk returns a tuple with the ThresholdWindows field if it's non-nil, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *Options) GetThresholdWindowsOk() (ThresholdWindows, bool) {
|
||||
if o == nil || o.ThresholdWindows == nil {
|
||||
return ThresholdWindows{}, false
|
||||
}
|
||||
return *o.ThresholdWindows, true
|
||||
}
|
||||
|
||||
// HasThresholdWindows returns a boolean if a field has been set.
|
||||
func (o *Options) HasThresholdWindows() bool {
|
||||
if o != nil && o.ThresholdWindows != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetThresholdWindows allocates a new o.ThresholdWindows and returns the pointer to it.
|
||||
func (o *Options) SetThresholdWindows(v ThresholdWindows) {
|
||||
o.ThresholdWindows = &v
|
||||
}
|
||||
|
||||
// GetTimeoutH returns the TimeoutH field if non-nil, zero value otherwise.
|
||||
func (o *Options) GetTimeoutH() int {
|
||||
if o == nil || o.TimeoutH == nil {
|
||||
@@ -6369,18 +6338,18 @@ func (r *Rule) SetTimeframe(v string) {
|
||||
}
|
||||
|
||||
// GetHeight returns the Height field if non-nil, zero value otherwise.
|
||||
func (s *Screenboard) GetHeight() int {
|
||||
func (s *Screenboard) GetHeight() string {
|
||||
if s == nil || s.Height == nil {
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
return *s.Height
|
||||
}
|
||||
|
||||
// GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (s *Screenboard) GetHeightOk() (int, bool) {
|
||||
func (s *Screenboard) GetHeightOk() (string, bool) {
|
||||
if s == nil || s.Height == nil {
|
||||
return 0, false
|
||||
return "", false
|
||||
}
|
||||
return *s.Height, true
|
||||
}
|
||||
@@ -6395,7 +6364,7 @@ func (s *Screenboard) HasHeight() bool {
|
||||
}
|
||||
|
||||
// SetHeight allocates a new s.Height and returns the pointer to it.
|
||||
func (s *Screenboard) SetHeight(v int) {
|
||||
func (s *Screenboard) SetHeight(v string) {
|
||||
s.Height = &v
|
||||
}
|
||||
|
||||
@@ -6524,18 +6493,18 @@ func (s *Screenboard) SetTitle(v string) {
|
||||
}
|
||||
|
||||
// GetWidth returns the Width field if non-nil, zero value otherwise.
|
||||
func (s *Screenboard) GetWidth() int {
|
||||
func (s *Screenboard) GetWidth() string {
|
||||
if s == nil || s.Width == nil {
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
return *s.Width
|
||||
}
|
||||
|
||||
// GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (s *Screenboard) GetWidthOk() (int, bool) {
|
||||
func (s *Screenboard) GetWidthOk() (string, bool) {
|
||||
if s == nil || s.Width == nil {
|
||||
return 0, false
|
||||
return "", false
|
||||
}
|
||||
return *s.Width, true
|
||||
}
|
||||
@@ -6550,7 +6519,7 @@ func (s *Screenboard) HasWidth() bool {
|
||||
}
|
||||
|
||||
// SetWidth allocates a new s.Width and returns the pointer to it.
|
||||
func (s *Screenboard) SetWidth(v int) {
|
||||
func (s *Screenboard) SetWidth(v string) {
|
||||
s.Width = &v
|
||||
}
|
||||
|
||||
@@ -7577,68 +7546,6 @@ func (t *ThresholdCount) SetWarningRecovery(v json.Number) {
|
||||
t.WarningRecovery = &v
|
||||
}
|
||||
|
||||
// GetRecoveryWindow returns the RecoveryWindow field if non-nil, zero value otherwise.
|
||||
func (t *ThresholdWindows) GetRecoveryWindow() string {
|
||||
if t == nil || t.RecoveryWindow == nil {
|
||||
return ""
|
||||
}
|
||||
return *t.RecoveryWindow
|
||||
}
|
||||
|
||||
// GetRecoveryWindowOk returns a tuple with the RecoveryWindow field if it's non-nil, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (t *ThresholdWindows) GetRecoveryWindowOk() (string, bool) {
|
||||
if t == nil || t.RecoveryWindow == nil {
|
||||
return "", false
|
||||
}
|
||||
return *t.RecoveryWindow, true
|
||||
}
|
||||
|
||||
// HasRecoveryWindow returns a boolean if a field has been set.
|
||||
func (t *ThresholdWindows) HasRecoveryWindow() bool {
|
||||
if t != nil && t.RecoveryWindow != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRecoveryWindow allocates a new t.RecoveryWindow and returns the pointer to it.
|
||||
func (t *ThresholdWindows) SetRecoveryWindow(v string) {
|
||||
t.RecoveryWindow = &v
|
||||
}
|
||||
|
||||
// GetTriggerWindow returns the TriggerWindow field if non-nil, zero value otherwise.
|
||||
func (t *ThresholdWindows) GetTriggerWindow() string {
|
||||
if t == nil || t.TriggerWindow == nil {
|
||||
return ""
|
||||
}
|
||||
return *t.TriggerWindow
|
||||
}
|
||||
|
||||
// GetTriggerWindowOk returns a tuple with the TriggerWindow field if it's non-nil, zero value otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (t *ThresholdWindows) GetTriggerWindowOk() (string, bool) {
|
||||
if t == nil || t.TriggerWindow == nil {
|
||||
return "", false
|
||||
}
|
||||
return *t.TriggerWindow, true
|
||||
}
|
||||
|
||||
// HasTriggerWindow returns a boolean if a field has been set.
|
||||
func (t *ThresholdWindows) HasTriggerWindow() bool {
|
||||
if t != nil && t.TriggerWindow != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTriggerWindow allocates a new t.TriggerWindow and returns the pointer to it.
|
||||
func (t *ThresholdWindows) SetTriggerWindow(v string) {
|
||||
t.TriggerWindow = &v
|
||||
}
|
||||
|
||||
// GetAutoscale returns the Autoscale field if non-nil, zero value otherwise.
|
||||
func (t *TileDef) GetAutoscale() bool {
|
||||
if t == nil || t.Autoscale == nil {
|
||||
|
||||
32
vendor/github.com/zorkian/go-datadog-api/monitors.go
generated
vendored
32
vendor/github.com/zorkian/go-datadog-api/monitors.go
generated
vendored
@@ -25,11 +25,6 @@ type ThresholdCount struct {
|
||||
WarningRecovery *json.Number `json:"warning_recovery,omitempty"`
|
||||
}
|
||||
|
||||
type ThresholdWindows struct {
|
||||
RecoveryWindow *string `json:"recovery_window,omitempty"`
|
||||
TriggerWindow *string `json:"trigger_window,omitempty"`
|
||||
}
|
||||
|
||||
type NoDataTimeframe int
|
||||
|
||||
func (tf *NoDataTimeframe) UnmarshalJSON(data []byte) error {
|
||||
@@ -47,20 +42,19 @@ func (tf *NoDataTimeframe) UnmarshalJSON(data []byte) error {
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
NoDataTimeframe NoDataTimeframe `json:"no_data_timeframe,omitempty"`
|
||||
NotifyAudit *bool `json:"notify_audit,omitempty"`
|
||||
NotifyNoData *bool `json:"notify_no_data,omitempty"`
|
||||
RenotifyInterval *int `json:"renotify_interval,omitempty"`
|
||||
NewHostDelay *int `json:"new_host_delay,omitempty"`
|
||||
EvaluationDelay *int `json:"evaluation_delay,omitempty"`
|
||||
Silenced map[string]int `json:"silenced,omitempty"`
|
||||
TimeoutH *int `json:"timeout_h,omitempty"`
|
||||
EscalationMessage *string `json:"escalation_message,omitempty"`
|
||||
Thresholds *ThresholdCount `json:"thresholds,omitempty"`
|
||||
ThresholdWindows *ThresholdWindows `json:"threshold_windows,omitempty"`
|
||||
IncludeTags *bool `json:"include_tags,omitempty"`
|
||||
RequireFullWindow *bool `json:"require_full_window,omitempty"`
|
||||
Locked *bool `json:"locked,omitempty"`
|
||||
NoDataTimeframe NoDataTimeframe `json:"no_data_timeframe,omitempty"`
|
||||
NotifyAudit *bool `json:"notify_audit,omitempty"`
|
||||
NotifyNoData *bool `json:"notify_no_data,omitempty"`
|
||||
RenotifyInterval *int `json:"renotify_interval,omitempty"`
|
||||
NewHostDelay *int `json:"new_host_delay,omitempty"`
|
||||
EvaluationDelay *int `json:"evaluation_delay,omitempty"`
|
||||
Silenced map[string]int `json:"silenced,omitempty"`
|
||||
TimeoutH *int `json:"timeout_h,omitempty"`
|
||||
EscalationMessage *string `json:"escalation_message,omitempty"`
|
||||
Thresholds *ThresholdCount `json:"thresholds,omitempty"`
|
||||
IncludeTags *bool `json:"include_tags,omitempty"`
|
||||
RequireFullWindow *bool `json:"require_full_window,omitempty"`
|
||||
Locked *bool `json:"locked,omitempty"`
|
||||
}
|
||||
|
||||
type TriggeringValue struct {
|
||||
|
||||
4
vendor/github.com/zorkian/go-datadog-api/screen_widgets.go
generated
vendored
4
vendor/github.com/zorkian/go-datadog-api/screen_widgets.go
generated
vendored
@@ -90,8 +90,8 @@ type Widget struct {
|
||||
TitleSize *int `json:"title_size,omitempty"`
|
||||
Height *int `json:"height,omitempty"`
|
||||
Width *int `json:"width,omitempty"`
|
||||
X *int `json:"x,omitempty"`
|
||||
Y *int `json:"y,omitempty"`
|
||||
X *int `json:"y,omitempty"`
|
||||
Y *int `json:"x,omitempty"`
|
||||
|
||||
// For Timeseries, TopList, EventTimeline, EvenStream, AlertGraph, CheckStatus, ServiceSummary, LogStream widgets
|
||||
Time *Time `json:"time,omitempty"`
|
||||
|
||||
4
vendor/github.com/zorkian/go-datadog-api/screenboards.go
generated
vendored
4
vendor/github.com/zorkian/go-datadog-api/screenboards.go
generated
vendored
@@ -17,8 +17,8 @@ import (
|
||||
type Screenboard struct {
|
||||
Id *int `json:"id,omitempty"`
|
||||
Title *string `json:"board_title,omitempty"`
|
||||
Height *int `json:"height,omitempty"`
|
||||
Width *int `json:"width,omitempty"`
|
||||
Height *string `json:"height,omitempty"`
|
||||
Width *string `json:"width,omitempty"`
|
||||
Shared *bool `json:"shared,omitempty"`
|
||||
TemplateVariables []TemplateVariable `json:"template_variables,omitempty"`
|
||||
Widgets []Widget `json:"widgets"`
|
||||
|
||||
Reference in New Issue
Block a user