diff --git a/Gopkg.lock b/Gopkg.lock
index b9d83a4d..bbd50128 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -73,6 +73,14 @@
pruneopts = "UT"
revision = "5f41b7c9d92de5d74bf32f4486375c7547bc8a3c"
+[[projects]]
+ digest = "1:2209584c0f7c9b68c23374e659357ab546e1b70eec2761f03280f69a8fd23d77"
+ name = "github.com/cenkalti/backoff"
+ packages = ["."]
+ pruneopts = "UT"
+ revision = "2ea60e5f094469f9e65adb9cd103795b73ae743e"
+ version = "v2.0.0"
+
[[projects]]
branch = "master"
digest = "1:710109527a119c813d4fac773712dd92f449ed7c2f7b81f49822f94d290c8f72"
@@ -247,6 +255,14 @@
pruneopts = "UT"
revision = "7c9c2852e8f9e69a80bff4f4f1fe4cdd15eeba19"
+[[projects]]
+ branch = "master"
+ digest = "1:f6f2814b88ad3dd5ca45e1e9a7a0caba1ddb1bfaf1c4173ebd991d854e1669eb"
+ name = "github.com/zorkian/go-datadog-api"
+ packages = ["."]
+ pruneopts = "UT"
+ revision = "d7b8b10db6a7eb1c1c2424b10a795a1662e80c9a"
+
[[projects]]
branch = "master"
digest = "1:d6b719875cf8091fbab38527d81d34e71f4521b9ee9ccfbd4a32cff2ac5af96e"
@@ -348,6 +364,7 @@
"github.com/stretchr/testify/assert",
"github.com/xanzy/go-gitlab",
"github.com/yfronto/newrelic",
+ "github.com/zorkian/go-datadog-api",
"golang.org/x/oauth2",
"golang.org/x/oauth2/google",
"google.golang.org/api/calendar/v3",
diff --git a/Gopkg.toml b/Gopkg.toml
index 5d0dae04..8f524497 100644
--- a/Gopkg.toml
+++ b/Gopkg.toml
@@ -92,3 +92,8 @@
[prune]
go-tests = true
unused-packages = true
+
+
+[[constraint]]
+ branch = "master"
+ name = "github.com/zorkian/go-datadog-api"
diff --git a/_site/content/modules/datadog.md b/_site/content/modules/datadog.md
new file mode 100644
index 00000000..dff1a4a9
--- /dev/null
+++ b/_site/content/modules/datadog.md
@@ -0,0 +1,59 @@
+---
+title: "Datadog"
+date: 2018-08-18T00:00:00Z
+draft: false
+weight: 160
+---
+
+
+
+Connects to the Datadog API and displays alerting modules
+
+## Source Code
+
+```bash
+wtf/datadog/
+```
+
+## Configuration
+
+```yaml
+datadog:
+ apiKey: ""
+ applicationKey: ""
+ enabled: true
+ position:
+ top: 4
+ left: 3
+ height: 1
+ width: 2
+ monitors:
+ tags:
+ - "team:ops"
+```
+
+### Attributes
+
+`apiKey`
+Value: Your Datadog API key.
+
+`applicationKey`
+The integer ID of the New Relic application you wish to report on.
+Value: Your Datadog Application key.
+
+`monitors`
+Configuration for the monitors functionality.
+
+`tags`
+Array of tags you want to query monitors by.
+
+`enabled`
+Determines whether or not this module is executed and if its data displayed onscreen.
+Values: `true`, `false`.
+
+`position`
+Defines where in the grid this module's widget will be displayed.
+
+`refreshInterval`
+How often, in seconds, this module will update its data.
+Values: A positive integer, `0..n`.
diff --git a/_site/static/imgs/modules/datadog_error.png b/_site/static/imgs/modules/datadog_error.png
new file mode 100644
index 00000000..38e5db76
Binary files /dev/null and b/_site/static/imgs/modules/datadog_error.png differ
diff --git a/_site/static/imgs/modules/datadog_ok.png b/_site/static/imgs/modules/datadog_ok.png
new file mode 100644
index 00000000..8596f7fb
Binary files /dev/null and b/_site/static/imgs/modules/datadog_ok.png differ
diff --git a/datadog/client.go b/datadog/client.go
new file mode 100644
index 00000000..9d9a22fc
--- /dev/null
+++ b/datadog/client.go
@@ -0,0 +1,34 @@
+package datadog
+
+import (
+ "os"
+
+ "github.com/senorprogrammer/wtf/wtf"
+ datadog "github.com/zorkian/go-datadog-api"
+)
+
+// Monitors returns a list of newrelic monitors
+func Monitors() ([]datadog.Monitor, error) {
+ client := datadog.NewClient(apiKey(), applicationKey())
+
+ monitors, err := client.GetMonitorsByTags(wtf.ToStrs(wtf.Config.UList("wtf.mods.datadog.monitors.tags")))
+ if err != nil {
+ return nil, err
+ }
+
+ return monitors, nil
+}
+
+func apiKey() string {
+ return wtf.Config.UString(
+ "wtf.mods.datadog.apiKey",
+ os.Getenv("WTF_DATADOG_API_KEY"),
+ )
+}
+
+func applicationKey() string {
+ return wtf.Config.UString(
+ "wtf.mods.datadog.applicationKey",
+ os.Getenv("WTF_DATADOG_APPLICATION_KEY"),
+ )
+}
diff --git a/datadog/widget.go b/datadog/widget.go
new file mode 100644
index 00000000..6ea22e4c
--- /dev/null
+++ b/datadog/widget.go
@@ -0,0 +1,73 @@
+package datadog
+
+import (
+ "fmt"
+
+ "github.com/senorprogrammer/wtf/wtf"
+ datadog "github.com/zorkian/go-datadog-api"
+)
+
+type Widget struct {
+ wtf.TextWidget
+}
+
+func NewWidget() *Widget {
+ widget := Widget{
+ TextWidget: wtf.NewTextWidget("Datadog", "datadog", false),
+ }
+
+ return &widget
+}
+
+/* -------------------- Exported Functions -------------------- */
+
+func (widget *Widget) Refresh() {
+ monitors, monitorErr := Monitors()
+
+ widget.UpdateRefreshedAt()
+ widget.View.SetTitle(widget.ContextualTitle(fmt.Sprintf("%s", widget.Name)))
+ widget.View.Clear()
+
+ var content string
+ if monitorErr != nil {
+ widget.View.SetWrap(true)
+ content = monitorErr.Error()
+ } else {
+ widget.View.SetWrap(false)
+ content = widget.contentFrom(monitors)
+ }
+
+ widget.View.SetText(content)
+}
+
+/* -------------------- Unexported Functions -------------------- */
+
+func (widget *Widget) contentFrom(monitors []datadog.Monitor) string {
+ var str string
+
+ triggeredMonitors := []datadog.Monitor{}
+
+ for _, monitor := range monitors {
+ state := *monitor.OverallState
+ switch state {
+ case "Alert":
+ triggeredMonitors = append(triggeredMonitors, monitor)
+ }
+ }
+ if len(triggeredMonitors) > 0 {
+ str = str + fmt.Sprintf(
+ " %s\n",
+ "[red]Triggered Monitors[white]",
+ )
+ for _, triggeredMonitor := range triggeredMonitors {
+ str = str + fmt.Sprintf("[red] %s\n", *triggeredMonitor.Name)
+ }
+ } else {
+ str = str + fmt.Sprintf(
+ " %s\n",
+ "[green]No Triggered Monitors[white]",
+ )
+ }
+
+ return str
+}
diff --git a/main.go b/main.go
index e1770367..09297f65 100644
--- a/main.go
+++ b/main.go
@@ -20,6 +20,7 @@ import (
"github.com/senorprogrammer/wtf/cryptoexchanges/bittrex"
"github.com/senorprogrammer/wtf/cryptoexchanges/blockfolio"
"github.com/senorprogrammer/wtf/cryptoexchanges/cryptolive"
+ "github.com/senorprogrammer/wtf/datadog"
"github.com/senorprogrammer/wtf/flags"
"github.com/senorprogrammer/wtf/gcal"
"github.com/senorprogrammer/wtf/gerrit"
@@ -195,6 +196,8 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
widgets = append(widgets, cmdrunner.NewWidget())
case "cryptolive":
widgets = append(widgets, cryptolive.NewWidget())
+ case "datadog":
+ widgets = append(widgets, datadog.NewWidget())
case "gcal":
widgets = append(widgets, gcal.NewWidget())
case "gerrit":
diff --git a/vendor/github.com/cenkalti/backoff/.gitignore b/vendor/github.com/cenkalti/backoff/.gitignore
new file mode 100644
index 00000000..00268614
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/.gitignore
@@ -0,0 +1,22 @@
+# Compiled Object files, Static and Dynamic libs (Shared Objects)
+*.o
+*.a
+*.so
+
+# Folders
+_obj
+_test
+
+# Architecture specific extensions/prefixes
+*.[568vq]
+[568vq].out
+
+*.cgo1.go
+*.cgo2.c
+_cgo_defun.c
+_cgo_gotypes.go
+_cgo_export.*
+
+_testmain.go
+
+*.exe
diff --git a/vendor/github.com/cenkalti/backoff/.travis.yml b/vendor/github.com/cenkalti/backoff/.travis.yml
new file mode 100644
index 00000000..d6f85ad6
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/.travis.yml
@@ -0,0 +1,10 @@
+language: go
+go:
+ - 1.3.3
+ - 1.x
+ - tip
+before_install:
+ - go get github.com/mattn/goveralls
+ - go get golang.org/x/tools/cmd/cover
+script:
+ - $HOME/gopath/bin/goveralls -service=travis-ci
diff --git a/vendor/github.com/cenkalti/backoff/LICENSE b/vendor/github.com/cenkalti/backoff/LICENSE
new file mode 100644
index 00000000..89b81799
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Cenk Altı
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/cenkalti/backoff/README.md b/vendor/github.com/cenkalti/backoff/README.md
new file mode 100644
index 00000000..13b347fb
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/README.md
@@ -0,0 +1,30 @@
+# Exponential Backoff [![GoDoc][godoc image]][godoc] [![Build Status][travis image]][travis] [![Coverage Status][coveralls image]][coveralls]
+
+This is a Go port of the exponential backoff algorithm from [Google's HTTP Client Library for Java][google-http-java-client].
+
+[Exponential backoff][exponential backoff wiki]
+is an algorithm that uses feedback to multiplicatively decrease the rate of some process,
+in order to gradually find an acceptable rate.
+The retries exponentially increase and stop increasing when a certain threshold is met.
+
+## Usage
+
+See https://godoc.org/github.com/cenkalti/backoff#pkg-examples
+
+## Contributing
+
+* I would like to keep this library as small as possible.
+* Please don't send a PR without opening an issue and discussing it first.
+* If proposed change is not a common use case, I will probably not accept it.
+
+[godoc]: https://godoc.org/github.com/cenkalti/backoff
+[godoc image]: https://godoc.org/github.com/cenkalti/backoff?status.png
+[travis]: https://travis-ci.org/cenkalti/backoff
+[travis image]: https://travis-ci.org/cenkalti/backoff.png?branch=master
+[coveralls]: https://coveralls.io/github/cenkalti/backoff?branch=master
+[coveralls image]: https://coveralls.io/repos/github/cenkalti/backoff/badge.svg?branch=master
+
+[google-http-java-client]: https://github.com/google/google-http-java-client
+[exponential backoff wiki]: http://en.wikipedia.org/wiki/Exponential_backoff
+
+[advanced example]: https://godoc.org/github.com/cenkalti/backoff#example_
diff --git a/vendor/github.com/cenkalti/backoff/backoff.go b/vendor/github.com/cenkalti/backoff/backoff.go
new file mode 100644
index 00000000..3676ee40
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/backoff.go
@@ -0,0 +1,66 @@
+// Package backoff implements backoff algorithms for retrying operations.
+//
+// Use Retry function for retrying operations that may fail.
+// If Retry does not meet your needs,
+// copy/paste the function into your project and modify as you wish.
+//
+// There is also Ticker type similar to time.Ticker.
+// You can use it if you need to work with channels.
+//
+// See Examples section below for usage examples.
+package backoff
+
+import "time"
+
+// BackOff is a backoff policy for retrying an operation.
+type BackOff interface {
+ // NextBackOff returns the duration to wait before retrying the operation,
+ // or backoff. Stop to indicate that no more retries should be made.
+ //
+ // Example usage:
+ //
+ // duration := backoff.NextBackOff();
+ // if (duration == backoff.Stop) {
+ // // Do not retry operation.
+ // } else {
+ // // Sleep for duration and retry operation.
+ // }
+ //
+ NextBackOff() time.Duration
+
+ // Reset to initial state.
+ Reset()
+}
+
+// Stop indicates that no more retries should be made for use in NextBackOff().
+const Stop time.Duration = -1
+
+// ZeroBackOff is a fixed backoff policy whose backoff time is always zero,
+// meaning that the operation is retried immediately without waiting, indefinitely.
+type ZeroBackOff struct{}
+
+func (b *ZeroBackOff) Reset() {}
+
+func (b *ZeroBackOff) NextBackOff() time.Duration { return 0 }
+
+// StopBackOff is a fixed backoff policy that always returns backoff.Stop for
+// NextBackOff(), meaning that the operation should never be retried.
+type StopBackOff struct{}
+
+func (b *StopBackOff) Reset() {}
+
+func (b *StopBackOff) NextBackOff() time.Duration { return Stop }
+
+// ConstantBackOff is a backoff policy that always returns the same backoff delay.
+// This is in contrast to an exponential backoff policy,
+// which returns a delay that grows longer as you call NextBackOff() over and over again.
+type ConstantBackOff struct {
+ Interval time.Duration
+}
+
+func (b *ConstantBackOff) Reset() {}
+func (b *ConstantBackOff) NextBackOff() time.Duration { return b.Interval }
+
+func NewConstantBackOff(d time.Duration) *ConstantBackOff {
+ return &ConstantBackOff{Interval: d}
+}
diff --git a/vendor/github.com/cenkalti/backoff/context.go b/vendor/github.com/cenkalti/backoff/context.go
new file mode 100644
index 00000000..5d157092
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/context.go
@@ -0,0 +1,60 @@
+package backoff
+
+import (
+ "time"
+
+ "golang.org/x/net/context"
+)
+
+// BackOffContext is a backoff policy that stops retrying after the context
+// is canceled.
+type BackOffContext interface {
+ BackOff
+ Context() context.Context
+}
+
+type backOffContext struct {
+ BackOff
+ ctx context.Context
+}
+
+// WithContext returns a BackOffContext with context ctx
+//
+// ctx must not be nil
+func WithContext(b BackOff, ctx context.Context) BackOffContext {
+ if ctx == nil {
+ panic("nil context")
+ }
+
+ if b, ok := b.(*backOffContext); ok {
+ return &backOffContext{
+ BackOff: b.BackOff,
+ ctx: ctx,
+ }
+ }
+
+ return &backOffContext{
+ BackOff: b,
+ ctx: ctx,
+ }
+}
+
+func ensureContext(b BackOff) BackOffContext {
+ if cb, ok := b.(BackOffContext); ok {
+ return cb
+ }
+ return WithContext(b, context.Background())
+}
+
+func (b *backOffContext) Context() context.Context {
+ return b.ctx
+}
+
+func (b *backOffContext) NextBackOff() time.Duration {
+ select {
+ case <-b.Context().Done():
+ return Stop
+ default:
+ return b.BackOff.NextBackOff()
+ }
+}
diff --git a/vendor/github.com/cenkalti/backoff/exponential.go b/vendor/github.com/cenkalti/backoff/exponential.go
new file mode 100644
index 00000000..d9de15a1
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/exponential.go
@@ -0,0 +1,158 @@
+package backoff
+
+import (
+ "math/rand"
+ "time"
+)
+
+/*
+ExponentialBackOff is a backoff implementation that increases the backoff
+period for each retry attempt using a randomization function that grows exponentially.
+
+NextBackOff() is calculated using the following formula:
+
+ randomized interval =
+ RetryInterval * (random value in range [1 - RandomizationFactor, 1 + RandomizationFactor])
+
+In other words NextBackOff() will range between the randomization factor
+percentage below and above the retry interval.
+
+For example, given the following parameters:
+
+ RetryInterval = 2
+ RandomizationFactor = 0.5
+ Multiplier = 2
+
+the actual backoff period used in the next retry attempt will range between 1 and 3 seconds,
+multiplied by the exponential, that is, between 2 and 6 seconds.
+
+Note: MaxInterval caps the RetryInterval and not the randomized interval.
+
+If the time elapsed since an ExponentialBackOff instance is created goes past the
+MaxElapsedTime, then the method NextBackOff() starts returning backoff.Stop.
+
+The elapsed time can be reset by calling Reset().
+
+Example: Given the following default arguments, for 10 tries the sequence will be,
+and assuming we go over the MaxElapsedTime on the 10th try:
+
+ Request # RetryInterval (seconds) Randomized Interval (seconds)
+
+ 1 0.5 [0.25, 0.75]
+ 2 0.75 [0.375, 1.125]
+ 3 1.125 [0.562, 1.687]
+ 4 1.687 [0.8435, 2.53]
+ 5 2.53 [1.265, 3.795]
+ 6 3.795 [1.897, 5.692]
+ 7 5.692 [2.846, 8.538]
+ 8 8.538 [4.269, 12.807]
+ 9 12.807 [6.403, 19.210]
+ 10 19.210 backoff.Stop
+
+Note: Implementation is not thread-safe.
+*/
+type ExponentialBackOff struct {
+ InitialInterval time.Duration
+ RandomizationFactor float64
+ Multiplier float64
+ MaxInterval time.Duration
+ // After MaxElapsedTime the ExponentialBackOff stops.
+ // It never stops if MaxElapsedTime == 0.
+ MaxElapsedTime time.Duration
+ Clock Clock
+
+ currentInterval time.Duration
+ startTime time.Time
+ random *rand.Rand
+}
+
+// Clock is an interface that returns current time for BackOff.
+type Clock interface {
+ Now() time.Time
+}
+
+// Default values for ExponentialBackOff.
+const (
+ DefaultInitialInterval = 500 * time.Millisecond
+ DefaultRandomizationFactor = 0.5
+ DefaultMultiplier = 1.5
+ DefaultMaxInterval = 60 * time.Second
+ DefaultMaxElapsedTime = 15 * time.Minute
+)
+
+// NewExponentialBackOff creates an instance of ExponentialBackOff using default values.
+func NewExponentialBackOff() *ExponentialBackOff {
+ b := &ExponentialBackOff{
+ InitialInterval: DefaultInitialInterval,
+ RandomizationFactor: DefaultRandomizationFactor,
+ Multiplier: DefaultMultiplier,
+ MaxInterval: DefaultMaxInterval,
+ MaxElapsedTime: DefaultMaxElapsedTime,
+ Clock: SystemClock,
+ random: rand.New(rand.NewSource(time.Now().UnixNano())),
+ }
+ b.Reset()
+ return b
+}
+
+type systemClock struct{}
+
+func (t systemClock) Now() time.Time {
+ return time.Now()
+}
+
+// SystemClock implements Clock interface that uses time.Now().
+var SystemClock = systemClock{}
+
+// Reset the interval back to the initial retry interval and restarts the timer.
+func (b *ExponentialBackOff) Reset() {
+ b.currentInterval = b.InitialInterval
+ b.startTime = b.Clock.Now()
+}
+
+// NextBackOff calculates the next backoff interval using the formula:
+// Randomized interval = RetryInterval +/- (RandomizationFactor * RetryInterval)
+func (b *ExponentialBackOff) NextBackOff() time.Duration {
+ // Make sure we have not gone over the maximum elapsed time.
+ if b.MaxElapsedTime != 0 && b.GetElapsedTime() > b.MaxElapsedTime {
+ return Stop
+ }
+ defer b.incrementCurrentInterval()
+ if b.random == nil {
+ b.random = rand.New(rand.NewSource(time.Now().UnixNano()))
+ }
+ return getRandomValueFromInterval(b.RandomizationFactor, b.random.Float64(), b.currentInterval)
+}
+
+// GetElapsedTime returns the elapsed time since an ExponentialBackOff instance
+// is created and is reset when Reset() is called.
+//
+// The elapsed time is computed using time.Now().UnixNano(). It is
+// safe to call even while the backoff policy is used by a running
+// ticker.
+func (b *ExponentialBackOff) GetElapsedTime() time.Duration {
+ return b.Clock.Now().Sub(b.startTime)
+}
+
+// Increments the current interval by multiplying it with the multiplier.
+func (b *ExponentialBackOff) incrementCurrentInterval() {
+ // Check for overflow, if overflow is detected set the current interval to the max interval.
+ if float64(b.currentInterval) >= float64(b.MaxInterval)/b.Multiplier {
+ b.currentInterval = b.MaxInterval
+ } else {
+ b.currentInterval = time.Duration(float64(b.currentInterval) * b.Multiplier)
+ }
+}
+
+// Returns a random value from the following interval:
+// [randomizationFactor * currentInterval, randomizationFactor * currentInterval].
+func getRandomValueFromInterval(randomizationFactor, random float64, currentInterval time.Duration) time.Duration {
+ var delta = randomizationFactor * float64(currentInterval)
+ var minInterval = float64(currentInterval) - delta
+ var maxInterval = float64(currentInterval) + delta
+
+ // Get a random value from the range [minInterval, maxInterval].
+ // The formula used below has a +1 because if the minInterval is 1 and the maxInterval is 3 then
+ // we want a 33% chance for selecting either 1, 2 or 3.
+ return time.Duration(minInterval + (random * (maxInterval - minInterval + 1)))
+}
diff --git a/vendor/github.com/cenkalti/backoff/retry.go b/vendor/github.com/cenkalti/backoff/retry.go
new file mode 100644
index 00000000..5dbd825b
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/retry.go
@@ -0,0 +1,78 @@
+package backoff
+
+import "time"
+
+// An Operation is executing by Retry() or RetryNotify().
+// The operation will be retried using a backoff policy if it returns an error.
+type Operation func() error
+
+// Notify is a notify-on-error function. It receives an operation error and
+// backoff delay if the operation failed (with an error).
+//
+// NOTE that if the backoff policy stated to stop retrying,
+// the notify function isn't called.
+type Notify func(error, time.Duration)
+
+// Retry the operation o until it does not return error or BackOff stops.
+// o is guaranteed to be run at least once.
+// It is the caller's responsibility to reset b after Retry returns.
+//
+// If o returns a *PermanentError, the operation is not retried, and the
+// wrapped error is returned.
+//
+// Retry sleeps the goroutine for the duration returned by BackOff after a
+// failed operation returns.
+func Retry(o Operation, b BackOff) error { return RetryNotify(o, b, nil) }
+
+// RetryNotify calls notify function with the error and wait duration
+// for each failed attempt before sleep.
+func RetryNotify(operation Operation, b BackOff, notify Notify) error {
+ var err error
+ var next time.Duration
+
+ cb := ensureContext(b)
+
+ b.Reset()
+ for {
+ if err = operation(); err == nil {
+ return nil
+ }
+
+ if permanent, ok := err.(*PermanentError); ok {
+ return permanent.Err
+ }
+
+ if next = b.NextBackOff(); next == Stop {
+ return err
+ }
+
+ if notify != nil {
+ notify(err, next)
+ }
+
+ t := time.NewTimer(next)
+
+ select {
+ case <-cb.Context().Done():
+ t.Stop()
+ return err
+ case <-t.C:
+ }
+ }
+}
+
+// PermanentError signals that the operation should not be retried.
+type PermanentError struct {
+ Err error
+}
+
+func (e *PermanentError) Error() string {
+ return e.Err.Error()
+}
+
+// Permanent wraps the given err in a *PermanentError.
+func Permanent(err error) *PermanentError {
+ return &PermanentError{
+ Err: err,
+ }
+}
diff --git a/vendor/github.com/cenkalti/backoff/ticker.go b/vendor/github.com/cenkalti/backoff/ticker.go
new file mode 100644
index 00000000..e742512f
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/ticker.go
@@ -0,0 +1,84 @@
+package backoff
+
+import (
+ "runtime"
+ "sync"
+ "time"
+)
+
+// Ticker holds a channel that delivers `ticks' of a clock at times reported by a BackOff.
+//
+// Ticks will continue to arrive when the previous operation is still running,
+// so operations that take a while to fail could run in quick succession.
+type Ticker struct {
+ C <-chan time.Time
+ c chan time.Time
+ b BackOffContext
+ stop chan struct{}
+ stopOnce sync.Once
+}
+
+// NewTicker returns a new Ticker containing a channel that will send
+// the time at times specified by the BackOff argument. Ticker is
+// guaranteed to tick at least once. The channel is closed when Stop
+// method is called or BackOff stops. It is not safe to manipulate the
+// provided backoff policy (notably calling NextBackOff or Reset)
+// while the ticker is running.
+func NewTicker(b BackOff) *Ticker {
+ c := make(chan time.Time)
+ t := &Ticker{
+ C: c,
+ c: c,
+ b: ensureContext(b),
+ stop: make(chan struct{}),
+ }
+ t.b.Reset()
+ go t.run()
+ runtime.SetFinalizer(t, (*Ticker).Stop)
+ return t
+}
+
+// Stop turns off a ticker. After Stop, no more ticks will be sent.
+func (t *Ticker) Stop() {
+ t.stopOnce.Do(func() { close(t.stop) })
+}
+
+func (t *Ticker) run() {
+ c := t.c
+ defer close(c)
+
+ // Ticker is guaranteed to tick at least once.
+ afterC := t.send(time.Now())
+
+ for {
+ if afterC == nil {
+ return
+ }
+
+ select {
+ case tick := <-afterC:
+ afterC = t.send(tick)
+ case <-t.stop:
+ t.c = nil // Prevent future ticks from being sent to the channel.
+ return
+ case <-t.b.Context().Done():
+ return
+ }
+ }
+}
+
+func (t *Ticker) send(tick time.Time) <-chan time.Time {
+ select {
+ case t.c <- tick:
+ case <-t.stop:
+ return nil
+ }
+
+ next := t.b.NextBackOff()
+ if next == Stop {
+ t.Stop()
+ return nil
+ }
+
+ return time.After(next)
+}
diff --git a/vendor/github.com/cenkalti/backoff/tries.go b/vendor/github.com/cenkalti/backoff/tries.go
new file mode 100644
index 00000000..cfeefd9b
--- /dev/null
+++ b/vendor/github.com/cenkalti/backoff/tries.go
@@ -0,0 +1,35 @@
+package backoff
+
+import "time"
+
+/*
+WithMaxRetries creates a wrapper around another BackOff, which will
+return Stop if NextBackOff() has been called too many times since
+the last time Reset() was called
+
+Note: Implementation is not thread-safe.
+*/
+func WithMaxRetries(b BackOff, max uint64) BackOff {
+ return &backOffTries{delegate: b, maxTries: max}
+}
+
+type backOffTries struct {
+ delegate BackOff
+ maxTries uint64
+ numTries uint64
+}
+
+func (b *backOffTries) NextBackOff() time.Duration {
+ if b.maxTries > 0 {
+ if b.maxTries <= b.numTries {
+ return Stop
+ }
+ b.numTries++
+ }
+ return b.delegate.NextBackOff()
+}
+
+func (b *backOffTries) Reset() {
+ b.numTries = 0
+ b.delegate.Reset()
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/.gitignore b/vendor/github.com/zorkian/go-datadog-api/.gitignore
new file mode 100644
index 00000000..d2631dc6
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/.gitignore
@@ -0,0 +1,2 @@
+*.sublime*
+cmd
diff --git a/vendor/github.com/zorkian/go-datadog-api/.travis.yml b/vendor/github.com/zorkian/go-datadog-api/.travis.yml
new file mode 100644
index 00000000..9be7add3
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/.travis.yml
@@ -0,0 +1,26 @@
+language: go
+
+go:
+ - "1.7"
+ - "1.8"
+ - "1.9"
+ - "1.10.x"
+ - "tip"
+
+env:
+ - "PATH=/home/travis/gopath/bin:$PATH"
+
+install:
+ - go get -v -t .
+
+script:
+ - go get -u github.com/golang/lint/golint
+ - golint ./... | grep -v vendor/
+ - make
+ - scripts/check-code-generation-ran.sh
+ # PR's don't have access to Travis EnvVars with DDog API Keys. Skip acceptance tests on PR.
+ - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then make testacc; fi'
+
+matrix:
+ allow_failures:
+ - go: tip
diff --git a/vendor/github.com/zorkian/go-datadog-api/LICENSE b/vendor/github.com/zorkian/go-datadog-api/LICENSE
new file mode 100644
index 00000000..f0903d29
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/LICENSE
@@ -0,0 +1,30 @@
+Copyright (c) 2013 by authors and contributors.
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/zorkian/go-datadog-api/Makefile b/vendor/github.com/zorkian/go-datadog-api/Makefile
new file mode 100644
index 00000000..d915d21b
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/Makefile
@@ -0,0 +1,40 @@
+TEST?=$$(go list ./... | grep -v '/go-datadog-api/vendor/')
+VETARGS?=-asmdecl -atomic -bool -buildtags -copylocks -methods -nilfunc -printf -rangeloops -shift -structtags -unsafeptr
+GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
+
+default: test fmt
+
+generate:
+ go generate
+
+# test runs the unit tests and vets the code
+test:
+ go test . $(TESTARGS) -v -timeout=30s -parallel=4
+ @$(MAKE) vet
+
+# testacc runs acceptance tests
+testacc:
+ go test integration/* -v $(TESTARGS) -timeout 90m
+
+# testrace runs the race checker
+testrace:
+ go test -race $(TEST) $(TESTARGS)
+
+fmt:
+ gofmt -w $(GOFMT_FILES)
+
+# vet runs the Go source code static analysis tool `vet` to find
+# any common errors.
+vet:
+ @go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \
+ go get golang.org/x/tools/cmd/vet; \
+ fi
+ @echo "go tool vet $(VETARGS)"
+ @go tool vet $(VETARGS) $$(ls -d */ | grep -v vendor) ; if [ $$? -eq 1 ]; then \
+ echo ""; \
+ echo "Vet found suspicious constructs. Please check the reported constructs"; \
+ echo "and fix them if necessary before submitting the code for review."; \
+ exit 1; \
+ fi
+
+.PHONY: default test testacc updatedeps vet
diff --git a/vendor/github.com/zorkian/go-datadog-api/README.md b/vendor/github.com/zorkian/go-datadog-api/README.md
new file mode 100644
index 00000000..b9d7fcbf
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/README.md
@@ -0,0 +1,120 @@
+[](https://godoc.org/gopkg.in/zorkian/go-datadog-api.v2)
+[](https://opensource.org/licenses/BSD-3-Clause)
+[](https://travis-ci.org/zorkian/go-datadog-api)
+[](https://goreportcard.com/report/github.com/zorkian/go-datadog-api)
+
+# Datadog API in Go
+
+**This is the v2.0 version of the API, and has breaking changes. Use the v1.0 branch if you need
+legacy code to be supported.**
+
+A Go wrapper for the Datadog API. Use this library if you need to interact
+with the Datadog system. You can post metrics with it if you want, but this library is probably
+mostly used for automating dashboards/alerting and retrieving data (events, etc).
+
+The source API documentation is here:
+
+## Installation
+To use the default branch, include it in your code like:
+```go
+ import "github.com/zorkian/go-datadog-api"
+```
+
+Or, if you need to control which version to use, import using [gopkg.in](http://labix.org/gopkg.in). Like so:
+```go
+ import "gopkg.in/zorkian/go-datadog-api.v2"
+```
+
+Using go get:
+```bash
+go get gopkg.in/zorkian/go-datadog-api.v2
+```
+
+## USAGE
+This library uses pointers to be able to verify if values are set or not (vs the default value for the type). Like
+ protobuf there are helpers to enhance the API. You can decide to not use them, but you'll have to be careful handling
+ nil pointers.
+
+Using the client:
+```go
+ client := datadog.NewClient("api key", "application key")
+
+ dash, err := client.GetDashboard(*datadog.Int(10880))
+ if err != nil {
+ log.Fatalf("fatal: %s\n", err)
+ }
+
+ log.Printf("dashboard %d: %s\n", dash.GetId(), dash.GetTitle())
+```
+
+An example using datadog.String(), which allocates a pointer for you:
+```go
+ m := datadog.Monitor{
+ Name: datadog.String("Monitor other things"),
+ Creator: &datadog.Creator{
+ Name: datadog.String("Joe Creator"),
+ },
+ }
+```
+
+An example using the SetXx, HasXx, GetXx and GetXxOk accessors:
+```go
+ m := datadog.Monitor{}
+ m.SetName("Monitor all the things")
+ m.SetMessage("Electromagnetic energy loss")
+
+ // Use HasMessage(), to verify we have interest in the message.
+ // Using GetMessage() always safe as it returns the actual or, if never set, default value for that type.
+ if m.HasMessage() {
+ fmt.Printf("Found message %s\n", m.GetMessage())
+ }
+
+ // Alternatively, use GetMessageOk(), it returns a tuple with the (default) value and a boolean expressing
+ // if it was set at all:
+ if v, ok := m.GetMessageOk(); ok {
+ fmt.Printf("Found message %s\n", v)
+ }
+```
+
+Check out the Godoc link for the available API methods and, if you can't find the one you need,
+let us know (or patches welcome)!
+
+## DOCUMENTATION
+
+Please see:
+
+## BUGS/PROBLEMS/CONTRIBUTING
+
+There are certainly some, but presently no known major bugs. If you do
+find something that doesn't work as expected, please file an issue on
+Github:
+
+
+
+Thanks in advance! And, as always, patches welcome!
+
+## DEVELOPMENT
+### Running tests
+* Run tests tests with `make test`.
+* Integration tests can be run with `make testacc`. Run specific integration tests with `make testacc TESTARGS='-run=TestCreateAndDeleteMonitor'`
+
+The acceptance tests require _DATADOG_API_KEY_ and _DATADOG_APP_KEY_ to be available
+in your environment variables.
+
+*Warning: the integrations tests will create and remove real resources in your Datadog account.*
+
+### Regenerating code
+Accessors `HasXx`, `GetXx`, `GetOkXx` and `SetXx` are generated for each struct field type type that contains pointers.
+When structs are updated a contributor has to regenerate these using `go generate` and commit these changes.
+Optionally there is a make target for the generation:
+
+```bash
+make generate
+```
+
+## COPYRIGHT AND LICENSE
+
+Please see the LICENSE file for the included license information.
+
+Copyright 2013-2017 by authors and contributors.
diff --git a/vendor/github.com/zorkian/go-datadog-api/alerts.go b/vendor/github.com/zorkian/go-datadog-api/alerts.go
new file mode 100644
index 00000000..ce1adcc3
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/alerts.go
@@ -0,0 +1,82 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+)
+
+// Alert represents the data of an alert: a query that can fire and send a
+// message to the users.
+type Alert struct {
+ Id *int `json:"id,omitempty"`
+ Creator *int `json:"creator,omitempty"`
+ Query *string `json:"query,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Silenced *bool `json:"silenced,omitempty"`
+ NotifyNoData *bool `json:"notify_no_data,omitempty"`
+ State *string `json:"state,omitempty"`
+}
+
+// reqAlerts receives a slice of all alerts.
+type reqAlerts struct {
+ Alerts []Alert `json:"alerts,omitempty"`
+}
+
+// CreateAlert adds a new alert to the system. This returns a pointer to an
+// Alert so you can pass that to UpdateAlert later if needed.
+func (client *Client) CreateAlert(alert *Alert) (*Alert, error) {
+ var out Alert
+ if err := client.doJsonRequest("POST", "/v1/alert", alert, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// UpdateAlert takes an alert that was previously retrieved through some method
+// and sends it back to the server.
+func (client *Client) UpdateAlert(alert *Alert) error {
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/alert/%d", alert.Id),
+ alert, nil)
+}
+
+// GetAlert retrieves an alert by identifier.
+func (client *Client) GetAlert(id int) (*Alert, error) {
+ var out Alert
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/alert/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// DeleteAlert removes an alert from the system.
+func (client *Client) DeleteAlert(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/alert/%d", id),
+ nil, nil)
+}
+
+// GetAlerts returns a slice of all alerts.
+func (client *Client) GetAlerts() ([]Alert, error) {
+ var out reqAlerts
+ if err := client.doJsonRequest("GET", "/v1/alert", nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Alerts, nil
+}
+
+// MuteAlerts turns off alerting notifications.
+func (client *Client) MuteAlerts() error {
+ return client.doJsonRequest("POST", "/v1/mute_alerts", nil, nil)
+}
+
+// UnmuteAlerts turns on alerting notifications.
+func (client *Client) UnmuteAlerts() error {
+ return client.doJsonRequest("POST", "/v1/unmute_alerts", nil, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/checks.go b/vendor/github.com/zorkian/go-datadog-api/checks.go
new file mode 100644
index 00000000..5ed6de77
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/checks.go
@@ -0,0 +1,25 @@
+package datadog
+
+type Check struct {
+ Check *string `json:"check,omitempty"`
+ HostName *string `json:"host_name,omitempty"`
+ Status *Status `json:"status,omitempty"`
+ Timestamp *string `json:"timestamp,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+}
+
+type Status int
+
+const (
+ OK Status = iota
+ WARNING
+ CRITICAL
+ UNKNOWN
+)
+
+// PostCheck posts the result of a check run to the server
+func (client *Client) PostCheck(check Check) error {
+ return client.doJsonRequest("POST", "/v1/check_run",
+ check, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/client.go b/vendor/github.com/zorkian/go-datadog-api/client.go
new file mode 100644
index 00000000..aa5d17fc
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/client.go
@@ -0,0 +1,100 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "encoding/json"
+ "io/ioutil"
+ "net/http"
+ "os"
+ "time"
+)
+
+// Client is the object that handles talking to the Datadog API. This maintains
+// state information for a particular application connection.
+type Client struct {
+ apiKey, appKey, baseUrl string
+
+ //The Http Client that is used to make requests
+ HttpClient *http.Client
+ RetryTimeout time.Duration
+}
+
+// valid is the struct to unmarshal validation endpoint responses into.
+type valid struct {
+ Errors []string `json:"errors"`
+ IsValid bool `json:"valid"`
+}
+
+// NewClient returns a new datadog.Client which can be used to access the API
+// methods. The expected argument is the API key.
+func NewClient(apiKey, appKey string) *Client {
+ baseUrl := os.Getenv("DATADOG_HOST")
+ if baseUrl == "" {
+ baseUrl = "https://app.datadoghq.com"
+ }
+
+ return &Client{
+ apiKey: apiKey,
+ appKey: appKey,
+ baseUrl: baseUrl,
+ HttpClient: http.DefaultClient,
+ RetryTimeout: time.Duration(60 * time.Second),
+ }
+}
+
+// SetKeys changes the value of apiKey and appKey.
+func (c *Client) SetKeys(apiKey, appKey string) {
+ c.apiKey = apiKey
+ c.appKey = appKey
+}
+
+// SetBaseUrl changes the value of baseUrl.
+func (c *Client) SetBaseUrl(baseUrl string) {
+ c.baseUrl = baseUrl
+}
+
+// GetBaseUrl returns the baseUrl.
+func (c *Client) GetBaseUrl() string {
+ return c.baseUrl
+}
+
+// Validate checks if the API and application keys are valid.
+func (client *Client) Validate() (bool, error) {
+ var out valid
+ var resp *http.Response
+
+ uri, err := client.uriForAPI("/v1/validate")
+ if err != nil {
+ return false, err
+ }
+
+ req, err := http.NewRequest("GET", uri, nil)
+ if err != nil {
+ return false, err
+ }
+
+ resp, err = client.doRequestWithRetries(req, client.RetryTimeout)
+ if err != nil {
+ return false, err
+ }
+
+ defer resp.Body.Close()
+
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return false, err
+ }
+
+ if err = json.Unmarshal(body, &out); err != nil {
+ return false, err
+ }
+
+ return out.IsValid, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/comments.go b/vendor/github.com/zorkian/go-datadog-api/comments.go
new file mode 100644
index 00000000..41acd66f
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/comments.go
@@ -0,0 +1,72 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+)
+
+// Comment is a special form of event that appears in a stream.
+type Comment struct {
+ Id *int `json:"id,omitempty"`
+ RelatedId *int `json:"related_event_id,omitempty"`
+ Handle *string `json:"handle,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Resource *string `json:"resource,omitempty"`
+ Url *string `json:"url,omitempty"`
+}
+
+// reqComment is the container for receiving commenst.
+type reqComment struct {
+ Comment *Comment `json:"comment,omitempty"`
+}
+
+// CreateComment adds a new comment to the system.
+func (client *Client) CreateComment(handle, message string) (*Comment, error) {
+ var out reqComment
+ comment := Comment{Message: String(message)}
+ if len(handle) > 0 {
+ comment.Handle = String(handle)
+ }
+ if err := client.doJsonRequest("POST", "/v1/comments", &comment, &out); err != nil {
+ return nil, err
+ }
+ return out.Comment, nil
+}
+
+// CreateRelatedComment adds a new comment, but lets you specify the related
+// identifier for the comment.
+func (client *Client) CreateRelatedComment(handle, message string,
+ relid int) (*Comment, error) {
+ var out reqComment
+ comment := Comment{Message: String(message), RelatedId: Int(relid)}
+ if len(handle) > 0 {
+ comment.Handle = String(handle)
+ }
+ if err := client.doJsonRequest("POST", "/v1/comments", &comment, &out); err != nil {
+ return nil, err
+ }
+ return out.Comment, nil
+}
+
+// EditComment changes the message and possibly handle of a particular comment.
+func (client *Client) EditComment(id int, handle, message string) error {
+ comment := Comment{Message: String(message)}
+ if len(handle) > 0 {
+ comment.Handle = String(handle)
+ }
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/comments/%d", id),
+ &comment, nil)
+}
+
+// DeleteComment does exactly what you expect.
+func (client *Client) DeleteComment(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/comments/%d", id),
+ nil, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/dashboard_lists.go b/vendor/github.com/zorkian/go-datadog-api/dashboard_lists.go
new file mode 100644
index 00000000..68bade92
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/dashboard_lists.go
@@ -0,0 +1,137 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2018 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+)
+
+const (
+ DashboardListItemCustomTimeboard = "custom_timeboard"
+ DashboardListItemCustomScreenboard = "custom_screenboard"
+ DashboardListItemIntegerationTimeboard = "integration_timeboard"
+ DashboardListItemIntegrationScreenboard = "integration_screenboard"
+ DashboardListItemHostTimeboard = "host_timeboard"
+)
+
+// DashboardList represents a dashboard list.
+type DashboardList struct {
+ Id *int `json:"id,omitempty"`
+ Name *string `json:"name,omitempty"`
+ DashboardCount *int `json:"dashboard_count,omitempty"`
+}
+
+// DashboardListItem represents a single dashboard in a dashboard list.
+type DashboardListItem struct {
+ Id *int `json:"id,omitempty"`
+ Type *string `json:"type,omitempty"`
+}
+
+type reqDashboardListItems struct {
+ Dashboards []DashboardListItem `json:"dashboards,omitempty"`
+}
+
+type reqAddedDashboardListItems struct {
+ Dashboards []DashboardListItem `json:"added_dashboards_to_list,omitempty"`
+}
+
+type reqDeletedDashboardListItems struct {
+ Dashboards []DashboardListItem `json:"deleted_dashboards_from_list,omitempty"`
+}
+
+type reqUpdateDashboardList struct {
+ Name string `json:"name,omitempty"`
+}
+
+type reqGetDashboardLists struct {
+ DashboardLists []DashboardList `json:"dashboard_lists,omitempty"`
+}
+
+// GetDashboardList returns a single dashboard list created on this account.
+func (client *Client) GetDashboardList(id int) (*DashboardList, error) {
+ var out DashboardList
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/dashboard/lists/manual/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// GetDashboardLists returns a list of all dashboard lists created on this account.
+func (client *Client) GetDashboardLists() ([]DashboardList, error) {
+ var out reqGetDashboardLists
+ if err := client.doJsonRequest("GET", "/v1/dashboard/lists/manual", nil, &out); err != nil {
+ return nil, err
+ }
+ return out.DashboardLists, nil
+}
+
+// CreateDashboardList returns a single dashboard list created on this account.
+func (client *Client) CreateDashboardList(list *DashboardList) (*DashboardList, error) {
+ var out DashboardList
+ if err := client.doJsonRequest("POST", "/v1/dashboard/lists/manual", list, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// UpdateDashboardList returns a single dashboard list created on this account.
+func (client *Client) UpdateDashboardList(list *DashboardList) error {
+ req := reqUpdateDashboardList{list.GetName()}
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/dashboard/lists/manual/%d", *list.Id), req, nil)
+}
+
+// DeleteDashboardList deletes a dashboard list by the identifier.
+func (client *Client) DeleteDashboardList(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/dashboard/lists/manual/%d", id), nil, nil)
+}
+
+// GetDashboardListItems fetches the dashboard list's dashboard definitions.
+func (client *Client) GetDashboardListItems(id int) ([]DashboardListItem, error) {
+ var out reqDashboardListItems
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/dashboard/lists/manual/%d/dashboards", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboards, nil
+}
+
+// AddDashboardListItems adds dashboards to an existing dashboard list.
+//
+// Any items already in the list are ignored (not added twice).
+func (client *Client) AddDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error) {
+ req := reqDashboardListItems{items}
+ var out reqAddedDashboardListItems
+ if err := client.doJsonRequest("POST", fmt.Sprintf("/v1/dashboard/lists/manual/%d/dashboards", dashboardListId), req, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboards, nil
+}
+
+// UpdateDashboardListItems updates dashboards of an existing dashboard list.
+//
+// This will set the list of dashboards to contain only the items in items.
+func (client *Client) UpdateDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error) {
+ req := reqDashboardListItems{items}
+ var out reqDashboardListItems
+ if err := client.doJsonRequest("PUT", fmt.Sprintf("/v1/dashboard/lists/manual/%d/dashboards", dashboardListId), req, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboards, nil
+}
+
+// DeleteDashboardListItems deletes dashboards from an existing dashboard list.
+//
+// Deletes any dashboards in the list of items from the dashboard list.
+func (client *Client) DeleteDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error) {
+ req := reqDashboardListItems{items}
+ var out reqDeletedDashboardListItems
+ if err := client.doJsonRequest("DELETE", fmt.Sprintf("/v1/dashboard/lists/manual/%d/dashboards", dashboardListId), req, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboards, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/dashboards.go b/vendor/github.com/zorkian/go-datadog-api/dashboards.go
new file mode 100644
index 00000000..552b85d0
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/dashboards.go
@@ -0,0 +1,182 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// GraphDefinitionRequestStyle represents the graph style attributes
+type GraphDefinitionRequestStyle struct {
+ Palette *string `json:"palette,omitempty"`
+ Width *string `json:"width,omitempty"`
+ Type *string `json:"type,omitempty"`
+}
+
+// GraphDefinitionRequest represents the requests passed into each graph.
+type GraphDefinitionRequest struct {
+ Query *string `json:"q,omitempty"`
+ Stacked *bool `json:"stacked,omitempty"`
+ Aggregator *string `json:"aggregator,omitempty"`
+ ConditionalFormats []DashboardConditionalFormat `json:"conditional_formats,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Style *GraphDefinitionRequestStyle `json:"style,omitempty"`
+
+ // For change type graphs
+ ChangeType *string `json:"change_type,omitempty"`
+ OrderDirection *string `json:"order_dir,omitempty"`
+ CompareTo *string `json:"compare_to,omitempty"`
+ IncreaseGood *bool `json:"increase_good,omitempty"`
+ OrderBy *string `json:"order_by,omitempty"`
+ ExtraCol *string `json:"extra_col,omitempty"`
+}
+
+type GraphDefinitionMarker struct {
+ Type *string `json:"type,omitempty"`
+ Value *string `json:"value,omitempty"`
+ Label *string `json:"label,omitempty"`
+ Val *json.Number `json:"val,omitempty"`
+ Min *json.Number `json:"min,omitempty"`
+ Max *json.Number `json:"max,omitempty"`
+}
+
+type GraphEvent struct {
+ Query *string `json:"q,omitempty"`
+}
+
+type Yaxis struct {
+ Min *float64 `json:"min,omitempty"`
+ Max *float64 `json:"max,omitempty"`
+ Scale *string `json:"scale,omitempty"`
+}
+
+type Style struct {
+ Palette *string `json:"palette,omitempty"`
+ PaletteFlip *bool `json:"paletteFlip,omitempty"`
+}
+
+type GraphDefinition struct {
+ Viz *string `json:"viz,omitempty"`
+ Requests []GraphDefinitionRequest `json:"requests,omitempty"`
+ Events []GraphEvent `json:"events,omitempty"`
+ Markers []GraphDefinitionMarker `json:"markers,omitempty"`
+
+ // For timeseries type graphs
+ Yaxis Yaxis `json:"yaxis,omitempty"`
+
+ // For query value type graphs
+ Autoscale *bool `json:"autoscale,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ Precision *string `json:"precision,omitempty"`
+ CustomUnit *string `json:"custom_unit,omitempty"`
+
+ // For hostname type graphs
+ Style *Style `json:"Style,omitempty"`
+
+ Groups []string `json:"group,omitempty"`
+ IncludeNoMetricHosts *bool `json:"noMetricHosts,omitempty"`
+ Scopes []string `json:"scope,omitempty"`
+ IncludeUngroupedHosts *bool `json:"noGroupHosts,omitempty"`
+}
+
+// Graph represents a graph that might exist on a dashboard.
+type Graph struct {
+ Title *string `json:"title,omitempty"`
+ Definition *GraphDefinition `json:"definition"`
+}
+
+// Template variable represents a template variable that might exist on a dashboard
+type TemplateVariable struct {
+ Name *string `json:"name,omitempty"`
+ Prefix *string `json:"prefix,omitempty"`
+ Default *string `json:"default,omitempty"`
+}
+
+// Dashboard represents a user created dashboard. This is the full dashboard
+// struct when we load a dashboard in detail.
+type Dashboard struct {
+ Id *int `json:"id,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Title *string `json:"title,omitempty"`
+ Graphs []Graph `json:"graphs,omitempty"`
+ TemplateVariables []TemplateVariable `json:"template_variables,omitempty"`
+ ReadOnly *bool `json:"read_only,omitempty"`
+}
+
+// DashboardLite represents a user created dashboard. This is the mini
+// struct when we load the summaries.
+type DashboardLite struct {
+ Id *int `json:"id,string,omitempty"` // TODO: Remove ',string'.
+ Resource *string `json:"resource,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Title *string `json:"title,omitempty"`
+}
+
+// reqGetDashboards from /api/v1/dash
+type reqGetDashboards struct {
+ Dashboards []DashboardLite `json:"dashes,omitempty"`
+}
+
+// reqGetDashboard from /api/v1/dash/:dashboard_id
+type reqGetDashboard struct {
+ Resource *string `json:"resource,omitempty"`
+ Url *string `json:"url,omitempty"`
+ Dashboard *Dashboard `json:"dash,omitempty"`
+}
+
+type DashboardConditionalFormat struct {
+ Palette *string `json:"palette,omitempty"`
+ Comparator *string `json:"comparator,omitempty"`
+ CustomBgColor *string `json:"custom_bg_color,omitempty"`
+ Value *json.Number `json:"value,omitempty"`
+ Inverted *bool `json:"invert,omitempty"`
+ CustomFgColor *string `json:"custom_fg_color,omitempty"`
+ CustomImageUrl *string `json:"custom_image,omitempty"`
+}
+
+// GetDashboard returns a single dashboard created on this account.
+func (client *Client) GetDashboard(id int) (*Dashboard, error) {
+ var out reqGetDashboard
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/dash/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboard, nil
+}
+
+// GetDashboards returns a list of all dashboards created on this account.
+func (client *Client) GetDashboards() ([]DashboardLite, error) {
+ var out reqGetDashboards
+ if err := client.doJsonRequest("GET", "/v1/dash", nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboards, nil
+}
+
+// DeleteDashboard deletes a dashboard by the identifier.
+func (client *Client) DeleteDashboard(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/dash/%d", id), nil, nil)
+}
+
+// CreateDashboard creates a new dashboard when given a Dashboard struct. Note
+// that the Id, Resource, Url and similar elements are not used in creation.
+func (client *Client) CreateDashboard(dash *Dashboard) (*Dashboard, error) {
+ var out reqGetDashboard
+ if err := client.doJsonRequest("POST", "/v1/dash", dash, &out); err != nil {
+ return nil, err
+ }
+ return out.Dashboard, nil
+}
+
+// UpdateDashboard in essence takes a Dashboard struct and persists it back to
+// the server. Use this if you've updated your local and need to push it back.
+func (client *Client) UpdateDashboard(dash *Dashboard) error {
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/dash/%d", *dash.Id),
+ dash, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/datadog-accessors.go b/vendor/github.com/zorkian/go-datadog-api/datadog-accessors.go
new file mode 100644
index 00000000..1f2691db
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/datadog-accessors.go
@@ -0,0 +1,13375 @@
+/*
+ THIS FILE IS AUTOMATICALLY GENERATED BY create-accessors; DO NOT EDIT.
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2018 by authors and contributors.
+*/
+
+package datadog
+
+import (
+ "encoding/json"
+)
+
+// GetCreator returns the Creator field if non-nil, zero value otherwise.
+func (a *Alert) GetCreator() int {
+ if a == nil || a.Creator == nil {
+ return 0
+ }
+ return *a.Creator
+}
+
+// GetOkCreator returns a tuple with the Creator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetCreatorOk() (int, bool) {
+ if a == nil || a.Creator == nil {
+ return 0, false
+ }
+ return *a.Creator, true
+}
+
+// HasCreator returns a boolean if a field has been set.
+func (a *Alert) HasCreator() bool {
+ if a != nil && a.Creator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCreator allocates a new a.Creator and returns the pointer to it.
+func (a *Alert) SetCreator(v int) {
+ a.Creator = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (a *Alert) GetId() int {
+ if a == nil || a.Id == nil {
+ return 0
+ }
+ return *a.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetIdOk() (int, bool) {
+ if a == nil || a.Id == nil {
+ return 0, false
+ }
+ return *a.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (a *Alert) HasId() bool {
+ if a != nil && a.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new a.Id and returns the pointer to it.
+func (a *Alert) SetId(v int) {
+ a.Id = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (a *Alert) GetMessage() string {
+ if a == nil || a.Message == nil {
+ return ""
+ }
+ return *a.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetMessageOk() (string, bool) {
+ if a == nil || a.Message == nil {
+ return "", false
+ }
+ return *a.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (a *Alert) HasMessage() bool {
+ if a != nil && a.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new a.Message and returns the pointer to it.
+func (a *Alert) SetMessage(v string) {
+ a.Message = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (a *Alert) GetName() string {
+ if a == nil || a.Name == nil {
+ return ""
+ }
+ return *a.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetNameOk() (string, bool) {
+ if a == nil || a.Name == nil {
+ return "", false
+ }
+ return *a.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (a *Alert) HasName() bool {
+ if a != nil && a.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new a.Name and returns the pointer to it.
+func (a *Alert) SetName(v string) {
+ a.Name = &v
+}
+
+// GetNotifyNoData returns the NotifyNoData field if non-nil, zero value otherwise.
+func (a *Alert) GetNotifyNoData() bool {
+ if a == nil || a.NotifyNoData == nil {
+ return false
+ }
+ return *a.NotifyNoData
+}
+
+// GetOkNotifyNoData returns a tuple with the NotifyNoData field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetNotifyNoDataOk() (bool, bool) {
+ if a == nil || a.NotifyNoData == nil {
+ return false, false
+ }
+ return *a.NotifyNoData, true
+}
+
+// HasNotifyNoData returns a boolean if a field has been set.
+func (a *Alert) HasNotifyNoData() bool {
+ if a != nil && a.NotifyNoData != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNotifyNoData allocates a new a.NotifyNoData and returns the pointer to it.
+func (a *Alert) SetNotifyNoData(v bool) {
+ a.NotifyNoData = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (a *Alert) GetQuery() string {
+ if a == nil || a.Query == nil {
+ return ""
+ }
+ return *a.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetQueryOk() (string, bool) {
+ if a == nil || a.Query == nil {
+ return "", false
+ }
+ return *a.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (a *Alert) HasQuery() bool {
+ if a != nil && a.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new a.Query and returns the pointer to it.
+func (a *Alert) SetQuery(v string) {
+ a.Query = &v
+}
+
+// GetSilenced returns the Silenced field if non-nil, zero value otherwise.
+func (a *Alert) GetSilenced() bool {
+ if a == nil || a.Silenced == nil {
+ return false
+ }
+ return *a.Silenced
+}
+
+// GetOkSilenced returns a tuple with the Silenced field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetSilencedOk() (bool, bool) {
+ if a == nil || a.Silenced == nil {
+ return false, false
+ }
+ return *a.Silenced, true
+}
+
+// HasSilenced returns a boolean if a field has been set.
+func (a *Alert) HasSilenced() bool {
+ if a != nil && a.Silenced != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSilenced allocates a new a.Silenced and returns the pointer to it.
+func (a *Alert) SetSilenced(v bool) {
+ a.Silenced = &v
+}
+
+// GetState returns the State field if non-nil, zero value otherwise.
+func (a *Alert) GetState() string {
+ if a == nil || a.State == nil {
+ return ""
+ }
+ return *a.State
+}
+
+// GetOkState returns a tuple with the State field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *Alert) GetStateOk() (string, bool) {
+ if a == nil || a.State == nil {
+ return "", false
+ }
+ return *a.State, true
+}
+
+// HasState returns a boolean if a field has been set.
+func (a *Alert) HasState() bool {
+ if a != nil && a.State != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetState allocates a new a.State and returns the pointer to it.
+func (a *Alert) SetState(v string) {
+ a.State = &v
+}
+
+// GetAddTimeframe returns the AddTimeframe field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetAddTimeframe() bool {
+ if a == nil || a.AddTimeframe == nil {
+ return false
+ }
+ return *a.AddTimeframe
+}
+
+// GetOkAddTimeframe returns a tuple with the AddTimeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetAddTimeframeOk() (bool, bool) {
+ if a == nil || a.AddTimeframe == nil {
+ return false, false
+ }
+ return *a.AddTimeframe, true
+}
+
+// HasAddTimeframe returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasAddTimeframe() bool {
+ if a != nil && a.AddTimeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAddTimeframe allocates a new a.AddTimeframe and returns the pointer to it.
+func (a *AlertGraphWidget) SetAddTimeframe(v bool) {
+ a.AddTimeframe = &v
+}
+
+// GetAlertId returns the AlertId field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetAlertId() int {
+ if a == nil || a.AlertId == nil {
+ return 0
+ }
+ return *a.AlertId
+}
+
+// GetOkAlertId returns a tuple with the AlertId field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetAlertIdOk() (int, bool) {
+ if a == nil || a.AlertId == nil {
+ return 0, false
+ }
+ return *a.AlertId, true
+}
+
+// HasAlertId returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasAlertId() bool {
+ if a != nil && a.AlertId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAlertId allocates a new a.AlertId and returns the pointer to it.
+func (a *AlertGraphWidget) SetAlertId(v int) {
+ a.AlertId = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetHeight() int {
+ if a == nil || a.Height == nil {
+ return 0
+ }
+ return *a.Height
+}
+
+// GetOkHeight 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 (a *AlertGraphWidget) GetHeightOk() (int, bool) {
+ if a == nil || a.Height == nil {
+ return 0, false
+ }
+ return *a.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasHeight() bool {
+ if a != nil && a.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new a.Height and returns the pointer to it.
+func (a *AlertGraphWidget) SetHeight(v int) {
+ a.Height = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetTimeframe() string {
+ if a == nil || a.Timeframe == nil {
+ return ""
+ }
+ return *a.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTimeframeOk() (string, bool) {
+ if a == nil || a.Timeframe == nil {
+ return "", false
+ }
+ return *a.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasTimeframe() bool {
+ if a != nil && a.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new a.Timeframe and returns the pointer to it.
+func (a *AlertGraphWidget) SetTimeframe(v string) {
+ a.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetTitle() bool {
+ if a == nil || a.Title == nil {
+ return false
+ }
+ return *a.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTitleOk() (bool, bool) {
+ if a == nil || a.Title == nil {
+ return false, false
+ }
+ return *a.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasTitle() bool {
+ if a != nil && a.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new a.Title and returns the pointer to it.
+func (a *AlertGraphWidget) SetTitle(v bool) {
+ a.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetTitleAlign() string {
+ if a == nil || a.TitleAlign == nil {
+ return ""
+ }
+ return *a.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTitleAlignOk() (string, bool) {
+ if a == nil || a.TitleAlign == nil {
+ return "", false
+ }
+ return *a.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasTitleAlign() bool {
+ if a != nil && a.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new a.TitleAlign and returns the pointer to it.
+func (a *AlertGraphWidget) SetTitleAlign(v string) {
+ a.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetTitleSize() int {
+ if a == nil || a.TitleSize == nil {
+ return 0
+ }
+ return *a.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTitleSizeOk() (int, bool) {
+ if a == nil || a.TitleSize == nil {
+ return 0, false
+ }
+ return *a.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasTitleSize() bool {
+ if a != nil && a.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new a.TitleSize and returns the pointer to it.
+func (a *AlertGraphWidget) SetTitleSize(v int) {
+ a.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetTitleText() string {
+ if a == nil || a.TitleText == nil {
+ return ""
+ }
+ return *a.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTitleTextOk() (string, bool) {
+ if a == nil || a.TitleText == nil {
+ return "", false
+ }
+ return *a.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasTitleText() bool {
+ if a != nil && a.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new a.TitleText and returns the pointer to it.
+func (a *AlertGraphWidget) SetTitleText(v string) {
+ a.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetType() string {
+ if a == nil || a.Type == nil {
+ return ""
+ }
+ return *a.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetTypeOk() (string, bool) {
+ if a == nil || a.Type == nil {
+ return "", false
+ }
+ return *a.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasType() bool {
+ if a != nil && a.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new a.Type and returns the pointer to it.
+func (a *AlertGraphWidget) SetType(v string) {
+ a.Type = &v
+}
+
+// GetVizType returns the VizType field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetVizType() string {
+ if a == nil || a.VizType == nil {
+ return ""
+ }
+ return *a.VizType
+}
+
+// GetOkVizType returns a tuple with the VizType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetVizTypeOk() (string, bool) {
+ if a == nil || a.VizType == nil {
+ return "", false
+ }
+ return *a.VizType, true
+}
+
+// HasVizType returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasVizType() bool {
+ if a != nil && a.VizType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetVizType allocates a new a.VizType and returns the pointer to it.
+func (a *AlertGraphWidget) SetVizType(v string) {
+ a.VizType = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetWidth() int {
+ if a == nil || a.Width == nil {
+ return 0
+ }
+ return *a.Width
+}
+
+// GetOkWidth 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 (a *AlertGraphWidget) GetWidthOk() (int, bool) {
+ if a == nil || a.Width == nil {
+ return 0, false
+ }
+ return *a.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasWidth() bool {
+ if a != nil && a.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new a.Width and returns the pointer to it.
+func (a *AlertGraphWidget) SetWidth(v int) {
+ a.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetX() int {
+ if a == nil || a.X == nil {
+ return 0
+ }
+ return *a.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetXOk() (int, bool) {
+ if a == nil || a.X == nil {
+ return 0, false
+ }
+ return *a.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasX() bool {
+ if a != nil && a.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new a.X and returns the pointer to it.
+func (a *AlertGraphWidget) SetX(v int) {
+ a.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (a *AlertGraphWidget) GetY() int {
+ if a == nil || a.Y == nil {
+ return 0
+ }
+ return *a.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertGraphWidget) GetYOk() (int, bool) {
+ if a == nil || a.Y == nil {
+ return 0, false
+ }
+ return *a.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (a *AlertGraphWidget) HasY() bool {
+ if a != nil && a.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new a.Y and returns the pointer to it.
+func (a *AlertGraphWidget) SetY(v int) {
+ a.Y = &v
+}
+
+// GetAddTimeframe returns the AddTimeframe field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetAddTimeframe() bool {
+ if a == nil || a.AddTimeframe == nil {
+ return false
+ }
+ return *a.AddTimeframe
+}
+
+// GetOkAddTimeframe returns a tuple with the AddTimeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetAddTimeframeOk() (bool, bool) {
+ if a == nil || a.AddTimeframe == nil {
+ return false, false
+ }
+ return *a.AddTimeframe, true
+}
+
+// HasAddTimeframe returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasAddTimeframe() bool {
+ if a != nil && a.AddTimeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAddTimeframe allocates a new a.AddTimeframe and returns the pointer to it.
+func (a *AlertValueWidget) SetAddTimeframe(v bool) {
+ a.AddTimeframe = &v
+}
+
+// GetAlertId returns the AlertId field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetAlertId() int {
+ if a == nil || a.AlertId == nil {
+ return 0
+ }
+ return *a.AlertId
+}
+
+// GetOkAlertId returns a tuple with the AlertId field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetAlertIdOk() (int, bool) {
+ if a == nil || a.AlertId == nil {
+ return 0, false
+ }
+ return *a.AlertId, true
+}
+
+// HasAlertId returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasAlertId() bool {
+ if a != nil && a.AlertId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAlertId allocates a new a.AlertId and returns the pointer to it.
+func (a *AlertValueWidget) SetAlertId(v int) {
+ a.AlertId = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetHeight() int {
+ if a == nil || a.Height == nil {
+ return 0
+ }
+ return *a.Height
+}
+
+// GetOkHeight 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 (a *AlertValueWidget) GetHeightOk() (int, bool) {
+ if a == nil || a.Height == nil {
+ return 0, false
+ }
+ return *a.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasHeight() bool {
+ if a != nil && a.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new a.Height and returns the pointer to it.
+func (a *AlertValueWidget) SetHeight(v int) {
+ a.Height = &v
+}
+
+// GetPrecision returns the Precision field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetPrecision() int {
+ if a == nil || a.Precision == nil {
+ return 0
+ }
+ return *a.Precision
+}
+
+// GetOkPrecision returns a tuple with the Precision field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetPrecisionOk() (int, bool) {
+ if a == nil || a.Precision == nil {
+ return 0, false
+ }
+ return *a.Precision, true
+}
+
+// HasPrecision returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasPrecision() bool {
+ if a != nil && a.Precision != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPrecision allocates a new a.Precision and returns the pointer to it.
+func (a *AlertValueWidget) SetPrecision(v int) {
+ a.Precision = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTextAlign() string {
+ if a == nil || a.TextAlign == nil {
+ return ""
+ }
+ return *a.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTextAlignOk() (string, bool) {
+ if a == nil || a.TextAlign == nil {
+ return "", false
+ }
+ return *a.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTextAlign() bool {
+ if a != nil && a.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new a.TextAlign and returns the pointer to it.
+func (a *AlertValueWidget) SetTextAlign(v string) {
+ a.TextAlign = &v
+}
+
+// GetTextSize returns the TextSize field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTextSize() string {
+ if a == nil || a.TextSize == nil {
+ return ""
+ }
+ return *a.TextSize
+}
+
+// GetOkTextSize returns a tuple with the TextSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTextSizeOk() (string, bool) {
+ if a == nil || a.TextSize == nil {
+ return "", false
+ }
+ return *a.TextSize, true
+}
+
+// HasTextSize returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTextSize() bool {
+ if a != nil && a.TextSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextSize allocates a new a.TextSize and returns the pointer to it.
+func (a *AlertValueWidget) SetTextSize(v string) {
+ a.TextSize = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTimeframe() string {
+ if a == nil || a.Timeframe == nil {
+ return ""
+ }
+ return *a.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTimeframeOk() (string, bool) {
+ if a == nil || a.Timeframe == nil {
+ return "", false
+ }
+ return *a.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTimeframe() bool {
+ if a != nil && a.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new a.Timeframe and returns the pointer to it.
+func (a *AlertValueWidget) SetTimeframe(v string) {
+ a.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTitle() bool {
+ if a == nil || a.Title == nil {
+ return false
+ }
+ return *a.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTitleOk() (bool, bool) {
+ if a == nil || a.Title == nil {
+ return false, false
+ }
+ return *a.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTitle() bool {
+ if a != nil && a.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new a.Title and returns the pointer to it.
+func (a *AlertValueWidget) SetTitle(v bool) {
+ a.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTitleAlign() string {
+ if a == nil || a.TitleAlign == nil {
+ return ""
+ }
+ return *a.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTitleAlignOk() (string, bool) {
+ if a == nil || a.TitleAlign == nil {
+ return "", false
+ }
+ return *a.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTitleAlign() bool {
+ if a != nil && a.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new a.TitleAlign and returns the pointer to it.
+func (a *AlertValueWidget) SetTitleAlign(v string) {
+ a.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTitleSize() int {
+ if a == nil || a.TitleSize == nil {
+ return 0
+ }
+ return *a.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTitleSizeOk() (int, bool) {
+ if a == nil || a.TitleSize == nil {
+ return 0, false
+ }
+ return *a.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTitleSize() bool {
+ if a != nil && a.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new a.TitleSize and returns the pointer to it.
+func (a *AlertValueWidget) SetTitleSize(v int) {
+ a.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetTitleText() string {
+ if a == nil || a.TitleText == nil {
+ return ""
+ }
+ return *a.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTitleTextOk() (string, bool) {
+ if a == nil || a.TitleText == nil {
+ return "", false
+ }
+ return *a.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasTitleText() bool {
+ if a != nil && a.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new a.TitleText and returns the pointer to it.
+func (a *AlertValueWidget) SetTitleText(v string) {
+ a.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetType() string {
+ if a == nil || a.Type == nil {
+ return ""
+ }
+ return *a.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetTypeOk() (string, bool) {
+ if a == nil || a.Type == nil {
+ return "", false
+ }
+ return *a.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasType() bool {
+ if a != nil && a.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new a.Type and returns the pointer to it.
+func (a *AlertValueWidget) SetType(v string) {
+ a.Type = &v
+}
+
+// GetUnit returns the Unit field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetUnit() string {
+ if a == nil || a.Unit == nil {
+ return ""
+ }
+ return *a.Unit
+}
+
+// GetOkUnit returns a tuple with the Unit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetUnitOk() (string, bool) {
+ if a == nil || a.Unit == nil {
+ return "", false
+ }
+ return *a.Unit, true
+}
+
+// HasUnit returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasUnit() bool {
+ if a != nil && a.Unit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnit allocates a new a.Unit and returns the pointer to it.
+func (a *AlertValueWidget) SetUnit(v string) {
+ a.Unit = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetWidth() int {
+ if a == nil || a.Width == nil {
+ return 0
+ }
+ return *a.Width
+}
+
+// GetOkWidth 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 (a *AlertValueWidget) GetWidthOk() (int, bool) {
+ if a == nil || a.Width == nil {
+ return 0, false
+ }
+ return *a.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasWidth() bool {
+ if a != nil && a.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new a.Width and returns the pointer to it.
+func (a *AlertValueWidget) SetWidth(v int) {
+ a.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetX() int {
+ if a == nil || a.X == nil {
+ return 0
+ }
+ return *a.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetXOk() (int, bool) {
+ if a == nil || a.X == nil {
+ return 0, false
+ }
+ return *a.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasX() bool {
+ if a != nil && a.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new a.X and returns the pointer to it.
+func (a *AlertValueWidget) SetX(v int) {
+ a.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (a *AlertValueWidget) GetY() int {
+ if a == nil || a.Y == nil {
+ return 0
+ }
+ return *a.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (a *AlertValueWidget) GetYOk() (int, bool) {
+ if a == nil || a.Y == nil {
+ return 0, false
+ }
+ return *a.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (a *AlertValueWidget) HasY() bool {
+ if a != nil && a.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new a.Y and returns the pointer to it.
+func (a *AlertValueWidget) SetY(v int) {
+ a.Y = &v
+}
+
+// GetAggregator returns the Aggregator field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetAggregator() string {
+ if c == nil || c.Aggregator == nil {
+ return ""
+ }
+ return *c.Aggregator
+}
+
+// GetOkAggregator returns a tuple with the Aggregator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetAggregatorOk() (string, bool) {
+ if c == nil || c.Aggregator == nil {
+ return "", false
+ }
+ return *c.Aggregator, true
+}
+
+// HasAggregator returns a boolean if a field has been set.
+func (c *ChangeWidget) HasAggregator() bool {
+ if c != nil && c.Aggregator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAggregator allocates a new c.Aggregator and returns the pointer to it.
+func (c *ChangeWidget) SetAggregator(v string) {
+ c.Aggregator = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetHeight() int {
+ if c == nil || c.Height == nil {
+ return 0
+ }
+ return *c.Height
+}
+
+// GetOkHeight 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 (c *ChangeWidget) GetHeightOk() (int, bool) {
+ if c == nil || c.Height == nil {
+ return 0, false
+ }
+ return *c.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (c *ChangeWidget) HasHeight() bool {
+ if c != nil && c.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new c.Height and returns the pointer to it.
+func (c *ChangeWidget) SetHeight(v int) {
+ c.Height = &v
+}
+
+// GetTileDef returns the TileDef field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetTileDef() TileDef {
+ if c == nil || c.TileDef == nil {
+ return TileDef{}
+ }
+ return *c.TileDef
+}
+
+// GetOkTileDef returns a tuple with the TileDef field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetTileDefOk() (TileDef, bool) {
+ if c == nil || c.TileDef == nil {
+ return TileDef{}, false
+ }
+ return *c.TileDef, true
+}
+
+// HasTileDef returns a boolean if a field has been set.
+func (c *ChangeWidget) HasTileDef() bool {
+ if c != nil && c.TileDef != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTileDef allocates a new c.TileDef and returns the pointer to it.
+func (c *ChangeWidget) SetTileDef(v TileDef) {
+ c.TileDef = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetTitle() bool {
+ if c == nil || c.Title == nil {
+ return false
+ }
+ return *c.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetTitleOk() (bool, bool) {
+ if c == nil || c.Title == nil {
+ return false, false
+ }
+ return *c.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (c *ChangeWidget) HasTitle() bool {
+ if c != nil && c.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new c.Title and returns the pointer to it.
+func (c *ChangeWidget) SetTitle(v bool) {
+ c.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetTitleAlign() string {
+ if c == nil || c.TitleAlign == nil {
+ return ""
+ }
+ return *c.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetTitleAlignOk() (string, bool) {
+ if c == nil || c.TitleAlign == nil {
+ return "", false
+ }
+ return *c.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (c *ChangeWidget) HasTitleAlign() bool {
+ if c != nil && c.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new c.TitleAlign and returns the pointer to it.
+func (c *ChangeWidget) SetTitleAlign(v string) {
+ c.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetTitleSize() int {
+ if c == nil || c.TitleSize == nil {
+ return 0
+ }
+ return *c.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetTitleSizeOk() (int, bool) {
+ if c == nil || c.TitleSize == nil {
+ return 0, false
+ }
+ return *c.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (c *ChangeWidget) HasTitleSize() bool {
+ if c != nil && c.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new c.TitleSize and returns the pointer to it.
+func (c *ChangeWidget) SetTitleSize(v int) {
+ c.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetTitleText() string {
+ if c == nil || c.TitleText == nil {
+ return ""
+ }
+ return *c.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetTitleTextOk() (string, bool) {
+ if c == nil || c.TitleText == nil {
+ return "", false
+ }
+ return *c.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (c *ChangeWidget) HasTitleText() bool {
+ if c != nil && c.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new c.TitleText and returns the pointer to it.
+func (c *ChangeWidget) SetTitleText(v string) {
+ c.TitleText = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetWidth() int {
+ if c == nil || c.Width == nil {
+ return 0
+ }
+ return *c.Width
+}
+
+// GetOkWidth 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 (c *ChangeWidget) GetWidthOk() (int, bool) {
+ if c == nil || c.Width == nil {
+ return 0, false
+ }
+ return *c.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (c *ChangeWidget) HasWidth() bool {
+ if c != nil && c.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new c.Width and returns the pointer to it.
+func (c *ChangeWidget) SetWidth(v int) {
+ c.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetX() int {
+ if c == nil || c.X == nil {
+ return 0
+ }
+ return *c.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetXOk() (int, bool) {
+ if c == nil || c.X == nil {
+ return 0, false
+ }
+ return *c.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (c *ChangeWidget) HasX() bool {
+ if c != nil && c.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new c.X and returns the pointer to it.
+func (c *ChangeWidget) SetX(v int) {
+ c.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (c *ChangeWidget) GetY() int {
+ if c == nil || c.Y == nil {
+ return 0
+ }
+ return *c.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChangeWidget) GetYOk() (int, bool) {
+ if c == nil || c.Y == nil {
+ return 0, false
+ }
+ return *c.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (c *ChangeWidget) HasY() bool {
+ if c != nil && c.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new c.Y and returns the pointer to it.
+func (c *ChangeWidget) SetY(v int) {
+ c.Y = &v
+}
+
+// GetAccount returns the Account field if non-nil, zero value otherwise.
+func (c *ChannelSlackRequest) GetAccount() string {
+ if c == nil || c.Account == nil {
+ return ""
+ }
+ return *c.Account
+}
+
+// GetOkAccount returns a tuple with the Account field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChannelSlackRequest) GetAccountOk() (string, bool) {
+ if c == nil || c.Account == nil {
+ return "", false
+ }
+ return *c.Account, true
+}
+
+// HasAccount returns a boolean if a field has been set.
+func (c *ChannelSlackRequest) HasAccount() bool {
+ if c != nil && c.Account != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccount allocates a new c.Account and returns the pointer to it.
+func (c *ChannelSlackRequest) SetAccount(v string) {
+ c.Account = &v
+}
+
+// GetChannelName returns the ChannelName field if non-nil, zero value otherwise.
+func (c *ChannelSlackRequest) GetChannelName() string {
+ if c == nil || c.ChannelName == nil {
+ return ""
+ }
+ return *c.ChannelName
+}
+
+// GetOkChannelName returns a tuple with the ChannelName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChannelSlackRequest) GetChannelNameOk() (string, bool) {
+ if c == nil || c.ChannelName == nil {
+ return "", false
+ }
+ return *c.ChannelName, true
+}
+
+// HasChannelName returns a boolean if a field has been set.
+func (c *ChannelSlackRequest) HasChannelName() bool {
+ if c != nil && c.ChannelName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetChannelName allocates a new c.ChannelName and returns the pointer to it.
+func (c *ChannelSlackRequest) SetChannelName(v string) {
+ c.ChannelName = &v
+}
+
+// GetTransferAllUserComments returns the TransferAllUserComments field if non-nil, zero value otherwise.
+func (c *ChannelSlackRequest) GetTransferAllUserComments() bool {
+ if c == nil || c.TransferAllUserComments == nil {
+ return false
+ }
+ return *c.TransferAllUserComments
+}
+
+// GetOkTransferAllUserComments returns a tuple with the TransferAllUserComments field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ChannelSlackRequest) GetTransferAllUserCommentsOk() (bool, bool) {
+ if c == nil || c.TransferAllUserComments == nil {
+ return false, false
+ }
+ return *c.TransferAllUserComments, true
+}
+
+// HasTransferAllUserComments returns a boolean if a field has been set.
+func (c *ChannelSlackRequest) HasTransferAllUserComments() bool {
+ if c != nil && c.TransferAllUserComments != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTransferAllUserComments allocates a new c.TransferAllUserComments and returns the pointer to it.
+func (c *ChannelSlackRequest) SetTransferAllUserComments(v bool) {
+ c.TransferAllUserComments = &v
+}
+
+// GetCheck returns the Check field if non-nil, zero value otherwise.
+func (c *Check) GetCheck() string {
+ if c == nil || c.Check == nil {
+ return ""
+ }
+ return *c.Check
+}
+
+// GetOkCheck returns a tuple with the Check field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Check) GetCheckOk() (string, bool) {
+ if c == nil || c.Check == nil {
+ return "", false
+ }
+ return *c.Check, true
+}
+
+// HasCheck returns a boolean if a field has been set.
+func (c *Check) HasCheck() bool {
+ if c != nil && c.Check != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCheck allocates a new c.Check and returns the pointer to it.
+func (c *Check) SetCheck(v string) {
+ c.Check = &v
+}
+
+// GetHostName returns the HostName field if non-nil, zero value otherwise.
+func (c *Check) GetHostName() string {
+ if c == nil || c.HostName == nil {
+ return ""
+ }
+ return *c.HostName
+}
+
+// GetOkHostName returns a tuple with the HostName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Check) GetHostNameOk() (string, bool) {
+ if c == nil || c.HostName == nil {
+ return "", false
+ }
+ return *c.HostName, true
+}
+
+// HasHostName returns a boolean if a field has been set.
+func (c *Check) HasHostName() bool {
+ if c != nil && c.HostName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHostName allocates a new c.HostName and returns the pointer to it.
+func (c *Check) SetHostName(v string) {
+ c.HostName = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (c *Check) GetMessage() string {
+ if c == nil || c.Message == nil {
+ return ""
+ }
+ return *c.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Check) GetMessageOk() (string, bool) {
+ if c == nil || c.Message == nil {
+ return "", false
+ }
+ return *c.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (c *Check) HasMessage() bool {
+ if c != nil && c.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new c.Message and returns the pointer to it.
+func (c *Check) SetMessage(v string) {
+ c.Message = &v
+}
+
+// GetStatus returns the Status field if non-nil, zero value otherwise.
+func (c *Check) GetStatus() Status {
+ if c == nil || c.Status == nil {
+ return 0
+ }
+ return *c.Status
+}
+
+// GetOkStatus returns a tuple with the Status field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Check) GetStatusOk() (Status, bool) {
+ if c == nil || c.Status == nil {
+ return 0, false
+ }
+ return *c.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (c *Check) HasStatus() bool {
+ if c != nil && c.Status != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus allocates a new c.Status and returns the pointer to it.
+func (c *Check) SetStatus(v Status) {
+ c.Status = &v
+}
+
+// GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.
+func (c *Check) GetTimestamp() string {
+ if c == nil || c.Timestamp == nil {
+ return ""
+ }
+ return *c.Timestamp
+}
+
+// GetOkTimestamp returns a tuple with the Timestamp field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Check) GetTimestampOk() (string, bool) {
+ if c == nil || c.Timestamp == nil {
+ return "", false
+ }
+ return *c.Timestamp, true
+}
+
+// HasTimestamp returns a boolean if a field has been set.
+func (c *Check) HasTimestamp() bool {
+ if c != nil && c.Timestamp != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimestamp allocates a new c.Timestamp and returns the pointer to it.
+func (c *Check) SetTimestamp(v string) {
+ c.Timestamp = &v
+}
+
+// GetCheck returns the Check field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetCheck() string {
+ if c == nil || c.Check == nil {
+ return ""
+ }
+ return *c.Check
+}
+
+// GetOkCheck returns a tuple with the Check field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetCheckOk() (string, bool) {
+ if c == nil || c.Check == nil {
+ return "", false
+ }
+ return *c.Check, true
+}
+
+// HasCheck returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasCheck() bool {
+ if c != nil && c.Check != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCheck allocates a new c.Check and returns the pointer to it.
+func (c *CheckStatusWidget) SetCheck(v string) {
+ c.Check = &v
+}
+
+// GetGroup returns the Group field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetGroup() string {
+ if c == nil || c.Group == nil {
+ return ""
+ }
+ return *c.Group
+}
+
+// GetOkGroup returns a tuple with the Group field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetGroupOk() (string, bool) {
+ if c == nil || c.Group == nil {
+ return "", false
+ }
+ return *c.Group, true
+}
+
+// HasGroup returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasGroup() bool {
+ if c != nil && c.Group != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetGroup allocates a new c.Group and returns the pointer to it.
+func (c *CheckStatusWidget) SetGroup(v string) {
+ c.Group = &v
+}
+
+// GetGrouping returns the Grouping field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetGrouping() string {
+ if c == nil || c.Grouping == nil {
+ return ""
+ }
+ return *c.Grouping
+}
+
+// GetOkGrouping returns a tuple with the Grouping field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetGroupingOk() (string, bool) {
+ if c == nil || c.Grouping == nil {
+ return "", false
+ }
+ return *c.Grouping, true
+}
+
+// HasGrouping returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasGrouping() bool {
+ if c != nil && c.Grouping != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetGrouping allocates a new c.Grouping and returns the pointer to it.
+func (c *CheckStatusWidget) SetGrouping(v string) {
+ c.Grouping = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetHeight() int {
+ if c == nil || c.Height == nil {
+ return 0
+ }
+ return *c.Height
+}
+
+// GetOkHeight 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 (c *CheckStatusWidget) GetHeightOk() (int, bool) {
+ if c == nil || c.Height == nil {
+ return 0, false
+ }
+ return *c.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasHeight() bool {
+ if c != nil && c.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new c.Height and returns the pointer to it.
+func (c *CheckStatusWidget) SetHeight(v int) {
+ c.Height = &v
+}
+
+// GetTags returns the Tags field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTags() string {
+ if c == nil || c.Tags == nil {
+ return ""
+ }
+ return *c.Tags
+}
+
+// GetOkTags returns a tuple with the Tags field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTagsOk() (string, bool) {
+ if c == nil || c.Tags == nil {
+ return "", false
+ }
+ return *c.Tags, true
+}
+
+// HasTags returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTags() bool {
+ if c != nil && c.Tags != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTags allocates a new c.Tags and returns the pointer to it.
+func (c *CheckStatusWidget) SetTags(v string) {
+ c.Tags = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTextAlign() string {
+ if c == nil || c.TextAlign == nil {
+ return ""
+ }
+ return *c.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTextAlignOk() (string, bool) {
+ if c == nil || c.TextAlign == nil {
+ return "", false
+ }
+ return *c.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTextAlign() bool {
+ if c != nil && c.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new c.TextAlign and returns the pointer to it.
+func (c *CheckStatusWidget) SetTextAlign(v string) {
+ c.TextAlign = &v
+}
+
+// GetTextSize returns the TextSize field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTextSize() string {
+ if c == nil || c.TextSize == nil {
+ return ""
+ }
+ return *c.TextSize
+}
+
+// GetOkTextSize returns a tuple with the TextSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTextSizeOk() (string, bool) {
+ if c == nil || c.TextSize == nil {
+ return "", false
+ }
+ return *c.TextSize, true
+}
+
+// HasTextSize returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTextSize() bool {
+ if c != nil && c.TextSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextSize allocates a new c.TextSize and returns the pointer to it.
+func (c *CheckStatusWidget) SetTextSize(v string) {
+ c.TextSize = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTimeframe() string {
+ if c == nil || c.Timeframe == nil {
+ return ""
+ }
+ return *c.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTimeframeOk() (string, bool) {
+ if c == nil || c.Timeframe == nil {
+ return "", false
+ }
+ return *c.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTimeframe() bool {
+ if c != nil && c.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new c.Timeframe and returns the pointer to it.
+func (c *CheckStatusWidget) SetTimeframe(v string) {
+ c.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTitle() bool {
+ if c == nil || c.Title == nil {
+ return false
+ }
+ return *c.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTitleOk() (bool, bool) {
+ if c == nil || c.Title == nil {
+ return false, false
+ }
+ return *c.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTitle() bool {
+ if c != nil && c.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new c.Title and returns the pointer to it.
+func (c *CheckStatusWidget) SetTitle(v bool) {
+ c.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTitleAlign() string {
+ if c == nil || c.TitleAlign == nil {
+ return ""
+ }
+ return *c.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTitleAlignOk() (string, bool) {
+ if c == nil || c.TitleAlign == nil {
+ return "", false
+ }
+ return *c.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTitleAlign() bool {
+ if c != nil && c.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new c.TitleAlign and returns the pointer to it.
+func (c *CheckStatusWidget) SetTitleAlign(v string) {
+ c.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTitleSize() int {
+ if c == nil || c.TitleSize == nil {
+ return 0
+ }
+ return *c.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTitleSizeOk() (int, bool) {
+ if c == nil || c.TitleSize == nil {
+ return 0, false
+ }
+ return *c.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTitleSize() bool {
+ if c != nil && c.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new c.TitleSize and returns the pointer to it.
+func (c *CheckStatusWidget) SetTitleSize(v int) {
+ c.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetTitleText() string {
+ if c == nil || c.TitleText == nil {
+ return ""
+ }
+ return *c.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTitleTextOk() (string, bool) {
+ if c == nil || c.TitleText == nil {
+ return "", false
+ }
+ return *c.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasTitleText() bool {
+ if c != nil && c.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new c.TitleText and returns the pointer to it.
+func (c *CheckStatusWidget) SetTitleText(v string) {
+ c.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetType() string {
+ if c == nil || c.Type == nil {
+ return ""
+ }
+ return *c.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetTypeOk() (string, bool) {
+ if c == nil || c.Type == nil {
+ return "", false
+ }
+ return *c.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasType() bool {
+ if c != nil && c.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new c.Type and returns the pointer to it.
+func (c *CheckStatusWidget) SetType(v string) {
+ c.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetWidth() int {
+ if c == nil || c.Width == nil {
+ return 0
+ }
+ return *c.Width
+}
+
+// GetOkWidth 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 (c *CheckStatusWidget) GetWidthOk() (int, bool) {
+ if c == nil || c.Width == nil {
+ return 0, false
+ }
+ return *c.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasWidth() bool {
+ if c != nil && c.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new c.Width and returns the pointer to it.
+func (c *CheckStatusWidget) SetWidth(v int) {
+ c.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetX() int {
+ if c == nil || c.X == nil {
+ return 0
+ }
+ return *c.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetXOk() (int, bool) {
+ if c == nil || c.X == nil {
+ return 0, false
+ }
+ return *c.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasX() bool {
+ if c != nil && c.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new c.X and returns the pointer to it.
+func (c *CheckStatusWidget) SetX(v int) {
+ c.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (c *CheckStatusWidget) GetY() int {
+ if c == nil || c.Y == nil {
+ return 0
+ }
+ return *c.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *CheckStatusWidget) GetYOk() (int, bool) {
+ if c == nil || c.Y == nil {
+ return 0, false
+ }
+ return *c.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (c *CheckStatusWidget) HasY() bool {
+ if c != nil && c.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new c.Y and returns the pointer to it.
+func (c *CheckStatusWidget) SetY(v int) {
+ c.Y = &v
+}
+
+// GetHandle returns the Handle field if non-nil, zero value otherwise.
+func (c *Comment) GetHandle() string {
+ if c == nil || c.Handle == nil {
+ return ""
+ }
+ return *c.Handle
+}
+
+// GetOkHandle returns a tuple with the Handle field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetHandleOk() (string, bool) {
+ if c == nil || c.Handle == nil {
+ return "", false
+ }
+ return *c.Handle, true
+}
+
+// HasHandle returns a boolean if a field has been set.
+func (c *Comment) HasHandle() bool {
+ if c != nil && c.Handle != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHandle allocates a new c.Handle and returns the pointer to it.
+func (c *Comment) SetHandle(v string) {
+ c.Handle = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (c *Comment) GetId() int {
+ if c == nil || c.Id == nil {
+ return 0
+ }
+ return *c.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetIdOk() (int, bool) {
+ if c == nil || c.Id == nil {
+ return 0, false
+ }
+ return *c.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (c *Comment) HasId() bool {
+ if c != nil && c.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new c.Id and returns the pointer to it.
+func (c *Comment) SetId(v int) {
+ c.Id = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (c *Comment) GetMessage() string {
+ if c == nil || c.Message == nil {
+ return ""
+ }
+ return *c.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetMessageOk() (string, bool) {
+ if c == nil || c.Message == nil {
+ return "", false
+ }
+ return *c.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (c *Comment) HasMessage() bool {
+ if c != nil && c.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new c.Message and returns the pointer to it.
+func (c *Comment) SetMessage(v string) {
+ c.Message = &v
+}
+
+// GetRelatedId returns the RelatedId field if non-nil, zero value otherwise.
+func (c *Comment) GetRelatedId() int {
+ if c == nil || c.RelatedId == nil {
+ return 0
+ }
+ return *c.RelatedId
+}
+
+// GetOkRelatedId returns a tuple with the RelatedId field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetRelatedIdOk() (int, bool) {
+ if c == nil || c.RelatedId == nil {
+ return 0, false
+ }
+ return *c.RelatedId, true
+}
+
+// HasRelatedId returns a boolean if a field has been set.
+func (c *Comment) HasRelatedId() bool {
+ if c != nil && c.RelatedId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRelatedId allocates a new c.RelatedId and returns the pointer to it.
+func (c *Comment) SetRelatedId(v int) {
+ c.RelatedId = &v
+}
+
+// GetResource returns the Resource field if non-nil, zero value otherwise.
+func (c *Comment) GetResource() string {
+ if c == nil || c.Resource == nil {
+ return ""
+ }
+ return *c.Resource
+}
+
+// GetOkResource returns a tuple with the Resource field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetResourceOk() (string, bool) {
+ if c == nil || c.Resource == nil {
+ return "", false
+ }
+ return *c.Resource, true
+}
+
+// HasResource returns a boolean if a field has been set.
+func (c *Comment) HasResource() bool {
+ if c != nil && c.Resource != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResource allocates a new c.Resource and returns the pointer to it.
+func (c *Comment) SetResource(v string) {
+ c.Resource = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (c *Comment) GetUrl() string {
+ if c == nil || c.Url == nil {
+ return ""
+ }
+ return *c.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Comment) GetUrlOk() (string, bool) {
+ if c == nil || c.Url == nil {
+ return "", false
+ }
+ return *c.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (c *Comment) HasUrl() bool {
+ if c != nil && c.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new c.Url and returns the pointer to it.
+func (c *Comment) SetUrl(v string) {
+ c.Url = &v
+}
+
+// GetColor returns the Color field if non-nil, zero value otherwise.
+func (c *ConditionalFormat) GetColor() string {
+ if c == nil || c.Color == nil {
+ return ""
+ }
+ return *c.Color
+}
+
+// GetOkColor returns a tuple with the Color field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ConditionalFormat) GetColorOk() (string, bool) {
+ if c == nil || c.Color == nil {
+ return "", false
+ }
+ return *c.Color, true
+}
+
+// HasColor returns a boolean if a field has been set.
+func (c *ConditionalFormat) HasColor() bool {
+ if c != nil && c.Color != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetColor allocates a new c.Color and returns the pointer to it.
+func (c *ConditionalFormat) SetColor(v string) {
+ c.Color = &v
+}
+
+// GetComparator returns the Comparator field if non-nil, zero value otherwise.
+func (c *ConditionalFormat) GetComparator() string {
+ if c == nil || c.Comparator == nil {
+ return ""
+ }
+ return *c.Comparator
+}
+
+// GetOkComparator returns a tuple with the Comparator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ConditionalFormat) GetComparatorOk() (string, bool) {
+ if c == nil || c.Comparator == nil {
+ return "", false
+ }
+ return *c.Comparator, true
+}
+
+// HasComparator returns a boolean if a field has been set.
+func (c *ConditionalFormat) HasComparator() bool {
+ if c != nil && c.Comparator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetComparator allocates a new c.Comparator and returns the pointer to it.
+func (c *ConditionalFormat) SetComparator(v string) {
+ c.Comparator = &v
+}
+
+// GetInverted returns the Inverted field if non-nil, zero value otherwise.
+func (c *ConditionalFormat) GetInverted() bool {
+ if c == nil || c.Inverted == nil {
+ return false
+ }
+ return *c.Inverted
+}
+
+// GetOkInverted returns a tuple with the Inverted field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ConditionalFormat) GetInvertedOk() (bool, bool) {
+ if c == nil || c.Inverted == nil {
+ return false, false
+ }
+ return *c.Inverted, true
+}
+
+// HasInverted returns a boolean if a field has been set.
+func (c *ConditionalFormat) HasInverted() bool {
+ if c != nil && c.Inverted != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetInverted allocates a new c.Inverted and returns the pointer to it.
+func (c *ConditionalFormat) SetInverted(v bool) {
+ c.Inverted = &v
+}
+
+// GetValue returns the Value field if non-nil, zero value otherwise.
+func (c *ConditionalFormat) GetValue() int {
+ if c == nil || c.Value == nil {
+ return 0
+ }
+ return *c.Value
+}
+
+// GetOkValue returns a tuple with the Value field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *ConditionalFormat) GetValueOk() (int, bool) {
+ if c == nil || c.Value == nil {
+ return 0, false
+ }
+ return *c.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (c *ConditionalFormat) HasValue() bool {
+ if c != nil && c.Value != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetValue allocates a new c.Value and returns the pointer to it.
+func (c *ConditionalFormat) SetValue(v int) {
+ c.Value = &v
+}
+
+// GetEmail returns the Email field if non-nil, zero value otherwise.
+func (c *Creator) GetEmail() string {
+ if c == nil || c.Email == nil {
+ return ""
+ }
+ return *c.Email
+}
+
+// GetOkEmail returns a tuple with the Email field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Creator) GetEmailOk() (string, bool) {
+ if c == nil || c.Email == nil {
+ return "", false
+ }
+ return *c.Email, true
+}
+
+// HasEmail returns a boolean if a field has been set.
+func (c *Creator) HasEmail() bool {
+ if c != nil && c.Email != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEmail allocates a new c.Email and returns the pointer to it.
+func (c *Creator) SetEmail(v string) {
+ c.Email = &v
+}
+
+// GetHandle returns the Handle field if non-nil, zero value otherwise.
+func (c *Creator) GetHandle() string {
+ if c == nil || c.Handle == nil {
+ return ""
+ }
+ return *c.Handle
+}
+
+// GetOkHandle returns a tuple with the Handle field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Creator) GetHandleOk() (string, bool) {
+ if c == nil || c.Handle == nil {
+ return "", false
+ }
+ return *c.Handle, true
+}
+
+// HasHandle returns a boolean if a field has been set.
+func (c *Creator) HasHandle() bool {
+ if c != nil && c.Handle != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHandle allocates a new c.Handle and returns the pointer to it.
+func (c *Creator) SetHandle(v string) {
+ c.Handle = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (c *Creator) GetId() int {
+ if c == nil || c.Id == nil {
+ return 0
+ }
+ return *c.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Creator) GetIdOk() (int, bool) {
+ if c == nil || c.Id == nil {
+ return 0, false
+ }
+ return *c.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (c *Creator) HasId() bool {
+ if c != nil && c.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new c.Id and returns the pointer to it.
+func (c *Creator) SetId(v int) {
+ c.Id = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (c *Creator) GetName() string {
+ if c == nil || c.Name == nil {
+ return ""
+ }
+ return *c.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (c *Creator) GetNameOk() (string, bool) {
+ if c == nil || c.Name == nil {
+ return "", false
+ }
+ return *c.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (c *Creator) HasName() bool {
+ if c != nil && c.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new c.Name and returns the pointer to it.
+func (c *Creator) SetName(v string) {
+ c.Name = &v
+}
+
+// GetDescription returns the Description field if non-nil, zero value otherwise.
+func (d *Dashboard) GetDescription() string {
+ if d == nil || d.Description == nil {
+ return ""
+ }
+ return *d.Description
+}
+
+// GetOkDescription returns a tuple with the Description field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Dashboard) GetDescriptionOk() (string, bool) {
+ if d == nil || d.Description == nil {
+ return "", false
+ }
+ return *d.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (d *Dashboard) HasDescription() bool {
+ if d != nil && d.Description != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription allocates a new d.Description and returns the pointer to it.
+func (d *Dashboard) SetDescription(v string) {
+ d.Description = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (d *Dashboard) GetId() int {
+ if d == nil || d.Id == nil {
+ return 0
+ }
+ return *d.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Dashboard) GetIdOk() (int, bool) {
+ if d == nil || d.Id == nil {
+ return 0, false
+ }
+ return *d.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (d *Dashboard) HasId() bool {
+ if d != nil && d.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new d.Id and returns the pointer to it.
+func (d *Dashboard) SetId(v int) {
+ d.Id = &v
+}
+
+// GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise.
+func (d *Dashboard) GetReadOnly() bool {
+ if d == nil || d.ReadOnly == nil {
+ return false
+ }
+ return *d.ReadOnly
+}
+
+// GetOkReadOnly returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Dashboard) GetReadOnlyOk() (bool, bool) {
+ if d == nil || d.ReadOnly == nil {
+ return false, false
+ }
+ return *d.ReadOnly, true
+}
+
+// HasReadOnly returns a boolean if a field has been set.
+func (d *Dashboard) HasReadOnly() bool {
+ if d != nil && d.ReadOnly != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetReadOnly allocates a new d.ReadOnly and returns the pointer to it.
+func (d *Dashboard) SetReadOnly(v bool) {
+ d.ReadOnly = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (d *Dashboard) GetTitle() string {
+ if d == nil || d.Title == nil {
+ return ""
+ }
+ return *d.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Dashboard) GetTitleOk() (string, bool) {
+ if d == nil || d.Title == nil {
+ return "", false
+ }
+ return *d.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (d *Dashboard) HasTitle() bool {
+ if d != nil && d.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new d.Title and returns the pointer to it.
+func (d *Dashboard) SetTitle(v string) {
+ d.Title = &v
+}
+
+// GetComparator returns the Comparator field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetComparator() string {
+ if d == nil || d.Comparator == nil {
+ return ""
+ }
+ return *d.Comparator
+}
+
+// GetOkComparator returns a tuple with the Comparator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetComparatorOk() (string, bool) {
+ if d == nil || d.Comparator == nil {
+ return "", false
+ }
+ return *d.Comparator, true
+}
+
+// HasComparator returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasComparator() bool {
+ if d != nil && d.Comparator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetComparator allocates a new d.Comparator and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetComparator(v string) {
+ d.Comparator = &v
+}
+
+// GetCustomBgColor returns the CustomBgColor field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetCustomBgColor() string {
+ if d == nil || d.CustomBgColor == nil {
+ return ""
+ }
+ return *d.CustomBgColor
+}
+
+// GetOkCustomBgColor returns a tuple with the CustomBgColor field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetCustomBgColorOk() (string, bool) {
+ if d == nil || d.CustomBgColor == nil {
+ return "", false
+ }
+ return *d.CustomBgColor, true
+}
+
+// HasCustomBgColor returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasCustomBgColor() bool {
+ if d != nil && d.CustomBgColor != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomBgColor allocates a new d.CustomBgColor and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetCustomBgColor(v string) {
+ d.CustomBgColor = &v
+}
+
+// GetCustomFgColor returns the CustomFgColor field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetCustomFgColor() string {
+ if d == nil || d.CustomFgColor == nil {
+ return ""
+ }
+ return *d.CustomFgColor
+}
+
+// GetOkCustomFgColor returns a tuple with the CustomFgColor field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetCustomFgColorOk() (string, bool) {
+ if d == nil || d.CustomFgColor == nil {
+ return "", false
+ }
+ return *d.CustomFgColor, true
+}
+
+// HasCustomFgColor returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasCustomFgColor() bool {
+ if d != nil && d.CustomFgColor != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomFgColor allocates a new d.CustomFgColor and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetCustomFgColor(v string) {
+ d.CustomFgColor = &v
+}
+
+// GetCustomImageUrl returns the CustomImageUrl field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetCustomImageUrl() string {
+ if d == nil || d.CustomImageUrl == nil {
+ return ""
+ }
+ return *d.CustomImageUrl
+}
+
+// GetOkCustomImageUrl returns a tuple with the CustomImageUrl field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetCustomImageUrlOk() (string, bool) {
+ if d == nil || d.CustomImageUrl == nil {
+ return "", false
+ }
+ return *d.CustomImageUrl, true
+}
+
+// HasCustomImageUrl returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasCustomImageUrl() bool {
+ if d != nil && d.CustomImageUrl != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomImageUrl allocates a new d.CustomImageUrl and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetCustomImageUrl(v string) {
+ d.CustomImageUrl = &v
+}
+
+// GetInverted returns the Inverted field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetInverted() bool {
+ if d == nil || d.Inverted == nil {
+ return false
+ }
+ return *d.Inverted
+}
+
+// GetOkInverted returns a tuple with the Inverted field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetInvertedOk() (bool, bool) {
+ if d == nil || d.Inverted == nil {
+ return false, false
+ }
+ return *d.Inverted, true
+}
+
+// HasInverted returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasInverted() bool {
+ if d != nil && d.Inverted != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetInverted allocates a new d.Inverted and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetInverted(v bool) {
+ d.Inverted = &v
+}
+
+// GetPalette returns the Palette field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetPalette() string {
+ if d == nil || d.Palette == nil {
+ return ""
+ }
+ return *d.Palette
+}
+
+// GetOkPalette returns a tuple with the Palette field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetPaletteOk() (string, bool) {
+ if d == nil || d.Palette == nil {
+ return "", false
+ }
+ return *d.Palette, true
+}
+
+// HasPalette returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasPalette() bool {
+ if d != nil && d.Palette != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPalette allocates a new d.Palette and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetPalette(v string) {
+ d.Palette = &v
+}
+
+// GetValue returns the Value field if non-nil, zero value otherwise.
+func (d *DashboardConditionalFormat) GetValue() json.Number {
+ if d == nil || d.Value == nil {
+ return ""
+ }
+ return *d.Value
+}
+
+// GetOkValue returns a tuple with the Value field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardConditionalFormat) GetValueOk() (json.Number, bool) {
+ if d == nil || d.Value == nil {
+ return "", false
+ }
+ return *d.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (d *DashboardConditionalFormat) HasValue() bool {
+ if d != nil && d.Value != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetValue allocates a new d.Value and returns the pointer to it.
+func (d *DashboardConditionalFormat) SetValue(v json.Number) {
+ d.Value = &v
+}
+
+// GetDashboardCount returns the DashboardCount field if non-nil, zero value otherwise.
+func (d *DashboardList) GetDashboardCount() int {
+ if d == nil || d.DashboardCount == nil {
+ return 0
+ }
+ return *d.DashboardCount
+}
+
+// GetOkDashboardCount returns a tuple with the DashboardCount field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardList) GetDashboardCountOk() (int, bool) {
+ if d == nil || d.DashboardCount == nil {
+ return 0, false
+ }
+ return *d.DashboardCount, true
+}
+
+// HasDashboardCount returns a boolean if a field has been set.
+func (d *DashboardList) HasDashboardCount() bool {
+ if d != nil && d.DashboardCount != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDashboardCount allocates a new d.DashboardCount and returns the pointer to it.
+func (d *DashboardList) SetDashboardCount(v int) {
+ d.DashboardCount = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (d *DashboardList) GetId() int {
+ if d == nil || d.Id == nil {
+ return 0
+ }
+ return *d.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardList) GetIdOk() (int, bool) {
+ if d == nil || d.Id == nil {
+ return 0, false
+ }
+ return *d.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (d *DashboardList) HasId() bool {
+ if d != nil && d.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new d.Id and returns the pointer to it.
+func (d *DashboardList) SetId(v int) {
+ d.Id = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (d *DashboardList) GetName() string {
+ if d == nil || d.Name == nil {
+ return ""
+ }
+ return *d.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardList) GetNameOk() (string, bool) {
+ if d == nil || d.Name == nil {
+ return "", false
+ }
+ return *d.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (d *DashboardList) HasName() bool {
+ if d != nil && d.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new d.Name and returns the pointer to it.
+func (d *DashboardList) SetName(v string) {
+ d.Name = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (d *DashboardListItem) GetId() int {
+ if d == nil || d.Id == nil {
+ return 0
+ }
+ return *d.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardListItem) GetIdOk() (int, bool) {
+ if d == nil || d.Id == nil {
+ return 0, false
+ }
+ return *d.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (d *DashboardListItem) HasId() bool {
+ if d != nil && d.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new d.Id and returns the pointer to it.
+func (d *DashboardListItem) SetId(v int) {
+ d.Id = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (d *DashboardListItem) GetType() string {
+ if d == nil || d.Type == nil {
+ return ""
+ }
+ return *d.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardListItem) GetTypeOk() (string, bool) {
+ if d == nil || d.Type == nil {
+ return "", false
+ }
+ return *d.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (d *DashboardListItem) HasType() bool {
+ if d != nil && d.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new d.Type and returns the pointer to it.
+func (d *DashboardListItem) SetType(v string) {
+ d.Type = &v
+}
+
+// GetDescription returns the Description field if non-nil, zero value otherwise.
+func (d *DashboardLite) GetDescription() string {
+ if d == nil || d.Description == nil {
+ return ""
+ }
+ return *d.Description
+}
+
+// GetOkDescription returns a tuple with the Description field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardLite) GetDescriptionOk() (string, bool) {
+ if d == nil || d.Description == nil {
+ return "", false
+ }
+ return *d.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (d *DashboardLite) HasDescription() bool {
+ if d != nil && d.Description != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription allocates a new d.Description and returns the pointer to it.
+func (d *DashboardLite) SetDescription(v string) {
+ d.Description = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (d *DashboardLite) GetId() int {
+ if d == nil || d.Id == nil {
+ return 0
+ }
+ return *d.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardLite) GetIdOk() (int, bool) {
+ if d == nil || d.Id == nil {
+ return 0, false
+ }
+ return *d.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (d *DashboardLite) HasId() bool {
+ if d != nil && d.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new d.Id and returns the pointer to it.
+func (d *DashboardLite) SetId(v int) {
+ d.Id = &v
+}
+
+// GetResource returns the Resource field if non-nil, zero value otherwise.
+func (d *DashboardLite) GetResource() string {
+ if d == nil || d.Resource == nil {
+ return ""
+ }
+ return *d.Resource
+}
+
+// GetOkResource returns a tuple with the Resource field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardLite) GetResourceOk() (string, bool) {
+ if d == nil || d.Resource == nil {
+ return "", false
+ }
+ return *d.Resource, true
+}
+
+// HasResource returns a boolean if a field has been set.
+func (d *DashboardLite) HasResource() bool {
+ if d != nil && d.Resource != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResource allocates a new d.Resource and returns the pointer to it.
+func (d *DashboardLite) SetResource(v string) {
+ d.Resource = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (d *DashboardLite) GetTitle() string {
+ if d == nil || d.Title == nil {
+ return ""
+ }
+ return *d.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *DashboardLite) GetTitleOk() (string, bool) {
+ if d == nil || d.Title == nil {
+ return "", false
+ }
+ return *d.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (d *DashboardLite) HasTitle() bool {
+ if d != nil && d.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new d.Title and returns the pointer to it.
+func (d *DashboardLite) SetTitle(v string) {
+ d.Title = &v
+}
+
+// GetActive returns the Active field if non-nil, zero value otherwise.
+func (d *Downtime) GetActive() bool {
+ if d == nil || d.Active == nil {
+ return false
+ }
+ return *d.Active
+}
+
+// GetOkActive returns a tuple with the Active field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetActiveOk() (bool, bool) {
+ if d == nil || d.Active == nil {
+ return false, false
+ }
+ return *d.Active, true
+}
+
+// HasActive returns a boolean if a field has been set.
+func (d *Downtime) HasActive() bool {
+ if d != nil && d.Active != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetActive allocates a new d.Active and returns the pointer to it.
+func (d *Downtime) SetActive(v bool) {
+ d.Active = &v
+}
+
+// GetCanceled returns the Canceled field if non-nil, zero value otherwise.
+func (d *Downtime) GetCanceled() int {
+ if d == nil || d.Canceled == nil {
+ return 0
+ }
+ return *d.Canceled
+}
+
+// GetOkCanceled returns a tuple with the Canceled field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetCanceledOk() (int, bool) {
+ if d == nil || d.Canceled == nil {
+ return 0, false
+ }
+ return *d.Canceled, true
+}
+
+// HasCanceled returns a boolean if a field has been set.
+func (d *Downtime) HasCanceled() bool {
+ if d != nil && d.Canceled != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCanceled allocates a new d.Canceled and returns the pointer to it.
+func (d *Downtime) SetCanceled(v int) {
+ d.Canceled = &v
+}
+
+// GetDisabled returns the Disabled field if non-nil, zero value otherwise.
+func (d *Downtime) GetDisabled() bool {
+ if d == nil || d.Disabled == nil {
+ return false
+ }
+ return *d.Disabled
+}
+
+// GetOkDisabled returns a tuple with the Disabled field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetDisabledOk() (bool, bool) {
+ if d == nil || d.Disabled == nil {
+ return false, false
+ }
+ return *d.Disabled, true
+}
+
+// HasDisabled returns a boolean if a field has been set.
+func (d *Downtime) HasDisabled() bool {
+ if d != nil && d.Disabled != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDisabled allocates a new d.Disabled and returns the pointer to it.
+func (d *Downtime) SetDisabled(v bool) {
+ d.Disabled = &v
+}
+
+// GetEnd returns the End field if non-nil, zero value otherwise.
+func (d *Downtime) GetEnd() int {
+ if d == nil || d.End == nil {
+ return 0
+ }
+ return *d.End
+}
+
+// GetOkEnd returns a tuple with the End field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetEndOk() (int, bool) {
+ if d == nil || d.End == nil {
+ return 0, false
+ }
+ return *d.End, true
+}
+
+// HasEnd returns a boolean if a field has been set.
+func (d *Downtime) HasEnd() bool {
+ if d != nil && d.End != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEnd allocates a new d.End and returns the pointer to it.
+func (d *Downtime) SetEnd(v int) {
+ d.End = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (d *Downtime) GetId() int {
+ if d == nil || d.Id == nil {
+ return 0
+ }
+ return *d.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetIdOk() (int, bool) {
+ if d == nil || d.Id == nil {
+ return 0, false
+ }
+ return *d.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (d *Downtime) HasId() bool {
+ if d != nil && d.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new d.Id and returns the pointer to it.
+func (d *Downtime) SetId(v int) {
+ d.Id = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (d *Downtime) GetMessage() string {
+ if d == nil || d.Message == nil {
+ return ""
+ }
+ return *d.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetMessageOk() (string, bool) {
+ if d == nil || d.Message == nil {
+ return "", false
+ }
+ return *d.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (d *Downtime) HasMessage() bool {
+ if d != nil && d.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new d.Message and returns the pointer to it.
+func (d *Downtime) SetMessage(v string) {
+ d.Message = &v
+}
+
+// GetMonitorId returns the MonitorId field if non-nil, zero value otherwise.
+func (d *Downtime) GetMonitorId() int {
+ if d == nil || d.MonitorId == nil {
+ return 0
+ }
+ return *d.MonitorId
+}
+
+// GetOkMonitorId returns a tuple with the MonitorId field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetMonitorIdOk() (int, bool) {
+ if d == nil || d.MonitorId == nil {
+ return 0, false
+ }
+ return *d.MonitorId, true
+}
+
+// HasMonitorId returns a boolean if a field has been set.
+func (d *Downtime) HasMonitorId() bool {
+ if d != nil && d.MonitorId != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMonitorId allocates a new d.MonitorId and returns the pointer to it.
+func (d *Downtime) SetMonitorId(v int) {
+ d.MonitorId = &v
+}
+
+// GetRecurrence returns the Recurrence field if non-nil, zero value otherwise.
+func (d *Downtime) GetRecurrence() Recurrence {
+ if d == nil || d.Recurrence == nil {
+ return Recurrence{}
+ }
+ return *d.Recurrence
+}
+
+// GetOkRecurrence returns a tuple with the Recurrence field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetRecurrenceOk() (Recurrence, bool) {
+ if d == nil || d.Recurrence == nil {
+ return Recurrence{}, false
+ }
+ return *d.Recurrence, true
+}
+
+// HasRecurrence returns a boolean if a field has been set.
+func (d *Downtime) HasRecurrence() bool {
+ if d != nil && d.Recurrence != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRecurrence allocates a new d.Recurrence and returns the pointer to it.
+func (d *Downtime) SetRecurrence(v Recurrence) {
+ d.Recurrence = &v
+}
+
+// GetStart returns the Start field if non-nil, zero value otherwise.
+func (d *Downtime) GetStart() int {
+ if d == nil || d.Start == nil {
+ return 0
+ }
+ return *d.Start
+}
+
+// GetOkStart returns a tuple with the Start field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (d *Downtime) GetStartOk() (int, bool) {
+ if d == nil || d.Start == nil {
+ return 0, false
+ }
+ return *d.Start, true
+}
+
+// HasStart returns a boolean if a field has been set.
+func (d *Downtime) HasStart() bool {
+ if d != nil && d.Start != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStart allocates a new d.Start and returns the pointer to it.
+func (d *Downtime) SetStart(v int) {
+ d.Start = &v
+}
+
+// GetAggregation returns the Aggregation field if non-nil, zero value otherwise.
+func (e *Event) GetAggregation() string {
+ if e == nil || e.Aggregation == nil {
+ return ""
+ }
+ return *e.Aggregation
+}
+
+// GetOkAggregation returns a tuple with the Aggregation field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetAggregationOk() (string, bool) {
+ if e == nil || e.Aggregation == nil {
+ return "", false
+ }
+ return *e.Aggregation, true
+}
+
+// HasAggregation returns a boolean if a field has been set.
+func (e *Event) HasAggregation() bool {
+ if e != nil && e.Aggregation != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAggregation allocates a new e.Aggregation and returns the pointer to it.
+func (e *Event) SetAggregation(v string) {
+ e.Aggregation = &v
+}
+
+// GetAlertType returns the AlertType field if non-nil, zero value otherwise.
+func (e *Event) GetAlertType() string {
+ if e == nil || e.AlertType == nil {
+ return ""
+ }
+ return *e.AlertType
+}
+
+// GetOkAlertType returns a tuple with the AlertType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetAlertTypeOk() (string, bool) {
+ if e == nil || e.AlertType == nil {
+ return "", false
+ }
+ return *e.AlertType, true
+}
+
+// HasAlertType returns a boolean if a field has been set.
+func (e *Event) HasAlertType() bool {
+ if e != nil && e.AlertType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAlertType allocates a new e.AlertType and returns the pointer to it.
+func (e *Event) SetAlertType(v string) {
+ e.AlertType = &v
+}
+
+// GetEventType returns the EventType field if non-nil, zero value otherwise.
+func (e *Event) GetEventType() string {
+ if e == nil || e.EventType == nil {
+ return ""
+ }
+ return *e.EventType
+}
+
+// GetOkEventType returns a tuple with the EventType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetEventTypeOk() (string, bool) {
+ if e == nil || e.EventType == nil {
+ return "", false
+ }
+ return *e.EventType, true
+}
+
+// HasEventType returns a boolean if a field has been set.
+func (e *Event) HasEventType() bool {
+ if e != nil && e.EventType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEventType allocates a new e.EventType and returns the pointer to it.
+func (e *Event) SetEventType(v string) {
+ e.EventType = &v
+}
+
+// GetHost returns the Host field if non-nil, zero value otherwise.
+func (e *Event) GetHost() string {
+ if e == nil || e.Host == nil {
+ return ""
+ }
+ return *e.Host
+}
+
+// GetOkHost returns a tuple with the Host field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetHostOk() (string, bool) {
+ if e == nil || e.Host == nil {
+ return "", false
+ }
+ return *e.Host, true
+}
+
+// HasHost returns a boolean if a field has been set.
+func (e *Event) HasHost() bool {
+ if e != nil && e.Host != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHost allocates a new e.Host and returns the pointer to it.
+func (e *Event) SetHost(v string) {
+ e.Host = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (e *Event) GetId() int {
+ if e == nil || e.Id == nil {
+ return 0
+ }
+ return *e.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetIdOk() (int, bool) {
+ if e == nil || e.Id == nil {
+ return 0, false
+ }
+ return *e.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (e *Event) HasId() bool {
+ if e != nil && e.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new e.Id and returns the pointer to it.
+func (e *Event) SetId(v int) {
+ e.Id = &v
+}
+
+// GetPriority returns the Priority field if non-nil, zero value otherwise.
+func (e *Event) GetPriority() string {
+ if e == nil || e.Priority == nil {
+ return ""
+ }
+ return *e.Priority
+}
+
+// GetOkPriority returns a tuple with the Priority field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetPriorityOk() (string, bool) {
+ if e == nil || e.Priority == nil {
+ return "", false
+ }
+ return *e.Priority, true
+}
+
+// HasPriority returns a boolean if a field has been set.
+func (e *Event) HasPriority() bool {
+ if e != nil && e.Priority != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPriority allocates a new e.Priority and returns the pointer to it.
+func (e *Event) SetPriority(v string) {
+ e.Priority = &v
+}
+
+// GetResource returns the Resource field if non-nil, zero value otherwise.
+func (e *Event) GetResource() string {
+ if e == nil || e.Resource == nil {
+ return ""
+ }
+ return *e.Resource
+}
+
+// GetOkResource returns a tuple with the Resource field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetResourceOk() (string, bool) {
+ if e == nil || e.Resource == nil {
+ return "", false
+ }
+ return *e.Resource, true
+}
+
+// HasResource returns a boolean if a field has been set.
+func (e *Event) HasResource() bool {
+ if e != nil && e.Resource != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResource allocates a new e.Resource and returns the pointer to it.
+func (e *Event) SetResource(v string) {
+ e.Resource = &v
+}
+
+// GetSourceType returns the SourceType field if non-nil, zero value otherwise.
+func (e *Event) GetSourceType() string {
+ if e == nil || e.SourceType == nil {
+ return ""
+ }
+ return *e.SourceType
+}
+
+// GetOkSourceType returns a tuple with the SourceType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetSourceTypeOk() (string, bool) {
+ if e == nil || e.SourceType == nil {
+ return "", false
+ }
+ return *e.SourceType, true
+}
+
+// HasSourceType returns a boolean if a field has been set.
+func (e *Event) HasSourceType() bool {
+ if e != nil && e.SourceType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSourceType allocates a new e.SourceType and returns the pointer to it.
+func (e *Event) SetSourceType(v string) {
+ e.SourceType = &v
+}
+
+// GetText returns the Text field if non-nil, zero value otherwise.
+func (e *Event) GetText() string {
+ if e == nil || e.Text == nil {
+ return ""
+ }
+ return *e.Text
+}
+
+// GetOkText returns a tuple with the Text field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetTextOk() (string, bool) {
+ if e == nil || e.Text == nil {
+ return "", false
+ }
+ return *e.Text, true
+}
+
+// HasText returns a boolean if a field has been set.
+func (e *Event) HasText() bool {
+ if e != nil && e.Text != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetText allocates a new e.Text and returns the pointer to it.
+func (e *Event) SetText(v string) {
+ e.Text = &v
+}
+
+// GetTime returns the Time field if non-nil, zero value otherwise.
+func (e *Event) GetTime() int {
+ if e == nil || e.Time == nil {
+ return 0
+ }
+ return *e.Time
+}
+
+// GetOkTime returns a tuple with the Time field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetTimeOk() (int, bool) {
+ if e == nil || e.Time == nil {
+ return 0, false
+ }
+ return *e.Time, true
+}
+
+// HasTime returns a boolean if a field has been set.
+func (e *Event) HasTime() bool {
+ if e != nil && e.Time != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTime allocates a new e.Time and returns the pointer to it.
+func (e *Event) SetTime(v int) {
+ e.Time = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (e *Event) GetTitle() string {
+ if e == nil || e.Title == nil {
+ return ""
+ }
+ return *e.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetTitleOk() (string, bool) {
+ if e == nil || e.Title == nil {
+ return "", false
+ }
+ return *e.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (e *Event) HasTitle() bool {
+ if e != nil && e.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new e.Title and returns the pointer to it.
+func (e *Event) SetTitle(v string) {
+ e.Title = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (e *Event) GetUrl() string {
+ if e == nil || e.Url == nil {
+ return ""
+ }
+ return *e.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *Event) GetUrlOk() (string, bool) {
+ if e == nil || e.Url == nil {
+ return "", false
+ }
+ return *e.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (e *Event) HasUrl() bool {
+ if e != nil && e.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new e.Url and returns the pointer to it.
+func (e *Event) SetUrl(v string) {
+ e.Url = &v
+}
+
+// GetEventSize returns the EventSize field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetEventSize() string {
+ if e == nil || e.EventSize == nil {
+ return ""
+ }
+ return *e.EventSize
+}
+
+// GetOkEventSize returns a tuple with the EventSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetEventSizeOk() (string, bool) {
+ if e == nil || e.EventSize == nil {
+ return "", false
+ }
+ return *e.EventSize, true
+}
+
+// HasEventSize returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasEventSize() bool {
+ if e != nil && e.EventSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEventSize allocates a new e.EventSize and returns the pointer to it.
+func (e *EventStreamWidget) SetEventSize(v string) {
+ e.EventSize = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetHeight() int {
+ if e == nil || e.Height == nil {
+ return 0
+ }
+ return *e.Height
+}
+
+// GetOkHeight 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 (e *EventStreamWidget) GetHeightOk() (int, bool) {
+ if e == nil || e.Height == nil {
+ return 0, false
+ }
+ return *e.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasHeight() bool {
+ if e != nil && e.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new e.Height and returns the pointer to it.
+func (e *EventStreamWidget) SetHeight(v int) {
+ e.Height = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetQuery() string {
+ if e == nil || e.Query == nil {
+ return ""
+ }
+ return *e.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetQueryOk() (string, bool) {
+ if e == nil || e.Query == nil {
+ return "", false
+ }
+ return *e.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasQuery() bool {
+ if e != nil && e.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new e.Query and returns the pointer to it.
+func (e *EventStreamWidget) SetQuery(v string) {
+ e.Query = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetTimeframe() string {
+ if e == nil || e.Timeframe == nil {
+ return ""
+ }
+ return *e.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTimeframeOk() (string, bool) {
+ if e == nil || e.Timeframe == nil {
+ return "", false
+ }
+ return *e.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasTimeframe() bool {
+ if e != nil && e.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new e.Timeframe and returns the pointer to it.
+func (e *EventStreamWidget) SetTimeframe(v string) {
+ e.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetTitle() bool {
+ if e == nil || e.Title == nil {
+ return false
+ }
+ return *e.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTitleOk() (bool, bool) {
+ if e == nil || e.Title == nil {
+ return false, false
+ }
+ return *e.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasTitle() bool {
+ if e != nil && e.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new e.Title and returns the pointer to it.
+func (e *EventStreamWidget) SetTitle(v bool) {
+ e.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetTitleAlign() string {
+ if e == nil || e.TitleAlign == nil {
+ return ""
+ }
+ return *e.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTitleAlignOk() (string, bool) {
+ if e == nil || e.TitleAlign == nil {
+ return "", false
+ }
+ return *e.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasTitleAlign() bool {
+ if e != nil && e.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new e.TitleAlign and returns the pointer to it.
+func (e *EventStreamWidget) SetTitleAlign(v string) {
+ e.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetTitleSize() TextSize {
+ if e == nil || e.TitleSize == nil {
+ return TextSize{}
+ }
+ return *e.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTitleSizeOk() (TextSize, bool) {
+ if e == nil || e.TitleSize == nil {
+ return TextSize{}, false
+ }
+ return *e.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasTitleSize() bool {
+ if e != nil && e.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new e.TitleSize and returns the pointer to it.
+func (e *EventStreamWidget) SetTitleSize(v TextSize) {
+ e.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetTitleText() string {
+ if e == nil || e.TitleText == nil {
+ return ""
+ }
+ return *e.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTitleTextOk() (string, bool) {
+ if e == nil || e.TitleText == nil {
+ return "", false
+ }
+ return *e.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasTitleText() bool {
+ if e != nil && e.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new e.TitleText and returns the pointer to it.
+func (e *EventStreamWidget) SetTitleText(v string) {
+ e.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetType() string {
+ if e == nil || e.Type == nil {
+ return ""
+ }
+ return *e.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetTypeOk() (string, bool) {
+ if e == nil || e.Type == nil {
+ return "", false
+ }
+ return *e.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasType() bool {
+ if e != nil && e.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new e.Type and returns the pointer to it.
+func (e *EventStreamWidget) SetType(v string) {
+ e.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetWidth() int {
+ if e == nil || e.Width == nil {
+ return 0
+ }
+ return *e.Width
+}
+
+// GetOkWidth 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 (e *EventStreamWidget) GetWidthOk() (int, bool) {
+ if e == nil || e.Width == nil {
+ return 0, false
+ }
+ return *e.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasWidth() bool {
+ if e != nil && e.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new e.Width and returns the pointer to it.
+func (e *EventStreamWidget) SetWidth(v int) {
+ e.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetX() int {
+ if e == nil || e.X == nil {
+ return 0
+ }
+ return *e.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetXOk() (int, bool) {
+ if e == nil || e.X == nil {
+ return 0, false
+ }
+ return *e.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasX() bool {
+ if e != nil && e.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new e.X and returns the pointer to it.
+func (e *EventStreamWidget) SetX(v int) {
+ e.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (e *EventStreamWidget) GetY() int {
+ if e == nil || e.Y == nil {
+ return 0
+ }
+ return *e.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventStreamWidget) GetYOk() (int, bool) {
+ if e == nil || e.Y == nil {
+ return 0, false
+ }
+ return *e.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (e *EventStreamWidget) HasY() bool {
+ if e != nil && e.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new e.Y and returns the pointer to it.
+func (e *EventStreamWidget) SetY(v int) {
+ e.Y = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetHeight() int {
+ if e == nil || e.Height == nil {
+ return 0
+ }
+ return *e.Height
+}
+
+// GetOkHeight 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 (e *EventTimelineWidget) GetHeightOk() (int, bool) {
+ if e == nil || e.Height == nil {
+ return 0, false
+ }
+ return *e.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasHeight() bool {
+ if e != nil && e.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new e.Height and returns the pointer to it.
+func (e *EventTimelineWidget) SetHeight(v int) {
+ e.Height = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetQuery() string {
+ if e == nil || e.Query == nil {
+ return ""
+ }
+ return *e.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetQueryOk() (string, bool) {
+ if e == nil || e.Query == nil {
+ return "", false
+ }
+ return *e.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasQuery() bool {
+ if e != nil && e.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new e.Query and returns the pointer to it.
+func (e *EventTimelineWidget) SetQuery(v string) {
+ e.Query = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetTimeframe() string {
+ if e == nil || e.Timeframe == nil {
+ return ""
+ }
+ return *e.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTimeframeOk() (string, bool) {
+ if e == nil || e.Timeframe == nil {
+ return "", false
+ }
+ return *e.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasTimeframe() bool {
+ if e != nil && e.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new e.Timeframe and returns the pointer to it.
+func (e *EventTimelineWidget) SetTimeframe(v string) {
+ e.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetTitle() bool {
+ if e == nil || e.Title == nil {
+ return false
+ }
+ return *e.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTitleOk() (bool, bool) {
+ if e == nil || e.Title == nil {
+ return false, false
+ }
+ return *e.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasTitle() bool {
+ if e != nil && e.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new e.Title and returns the pointer to it.
+func (e *EventTimelineWidget) SetTitle(v bool) {
+ e.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetTitleAlign() string {
+ if e == nil || e.TitleAlign == nil {
+ return ""
+ }
+ return *e.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTitleAlignOk() (string, bool) {
+ if e == nil || e.TitleAlign == nil {
+ return "", false
+ }
+ return *e.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasTitleAlign() bool {
+ if e != nil && e.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new e.TitleAlign and returns the pointer to it.
+func (e *EventTimelineWidget) SetTitleAlign(v string) {
+ e.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetTitleSize() int {
+ if e == nil || e.TitleSize == nil {
+ return 0
+ }
+ return *e.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTitleSizeOk() (int, bool) {
+ if e == nil || e.TitleSize == nil {
+ return 0, false
+ }
+ return *e.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasTitleSize() bool {
+ if e != nil && e.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new e.TitleSize and returns the pointer to it.
+func (e *EventTimelineWidget) SetTitleSize(v int) {
+ e.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetTitleText() string {
+ if e == nil || e.TitleText == nil {
+ return ""
+ }
+ return *e.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTitleTextOk() (string, bool) {
+ if e == nil || e.TitleText == nil {
+ return "", false
+ }
+ return *e.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasTitleText() bool {
+ if e != nil && e.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new e.TitleText and returns the pointer to it.
+func (e *EventTimelineWidget) SetTitleText(v string) {
+ e.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetType() string {
+ if e == nil || e.Type == nil {
+ return ""
+ }
+ return *e.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetTypeOk() (string, bool) {
+ if e == nil || e.Type == nil {
+ return "", false
+ }
+ return *e.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasType() bool {
+ if e != nil && e.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new e.Type and returns the pointer to it.
+func (e *EventTimelineWidget) SetType(v string) {
+ e.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetWidth() int {
+ if e == nil || e.Width == nil {
+ return 0
+ }
+ return *e.Width
+}
+
+// GetOkWidth 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 (e *EventTimelineWidget) GetWidthOk() (int, bool) {
+ if e == nil || e.Width == nil {
+ return 0, false
+ }
+ return *e.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasWidth() bool {
+ if e != nil && e.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new e.Width and returns the pointer to it.
+func (e *EventTimelineWidget) SetWidth(v int) {
+ e.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetX() int {
+ if e == nil || e.X == nil {
+ return 0
+ }
+ return *e.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetXOk() (int, bool) {
+ if e == nil || e.X == nil {
+ return 0, false
+ }
+ return *e.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasX() bool {
+ if e != nil && e.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new e.X and returns the pointer to it.
+func (e *EventTimelineWidget) SetX(v int) {
+ e.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (e *EventTimelineWidget) GetY() int {
+ if e == nil || e.Y == nil {
+ return 0
+ }
+ return *e.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (e *EventTimelineWidget) GetYOk() (int, bool) {
+ if e == nil || e.Y == nil {
+ return 0, false
+ }
+ return *e.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (e *EventTimelineWidget) HasY() bool {
+ if e != nil && e.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new e.Y and returns the pointer to it.
+func (e *EventTimelineWidget) SetY(v int) {
+ e.Y = &v
+}
+
+// GetColor returns the Color field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetColor() string {
+ if f == nil || f.Color == nil {
+ return ""
+ }
+ return *f.Color
+}
+
+// GetOkColor returns a tuple with the Color field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetColorOk() (string, bool) {
+ if f == nil || f.Color == nil {
+ return "", false
+ }
+ return *f.Color, true
+}
+
+// HasColor returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasColor() bool {
+ if f != nil && f.Color != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetColor allocates a new f.Color and returns the pointer to it.
+func (f *FreeTextWidget) SetColor(v string) {
+ f.Color = &v
+}
+
+// GetFontSize returns the FontSize field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetFontSize() string {
+ if f == nil || f.FontSize == nil {
+ return ""
+ }
+ return *f.FontSize
+}
+
+// GetOkFontSize returns a tuple with the FontSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetFontSizeOk() (string, bool) {
+ if f == nil || f.FontSize == nil {
+ return "", false
+ }
+ return *f.FontSize, true
+}
+
+// HasFontSize returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasFontSize() bool {
+ if f != nil && f.FontSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetFontSize allocates a new f.FontSize and returns the pointer to it.
+func (f *FreeTextWidget) SetFontSize(v string) {
+ f.FontSize = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetHeight() int {
+ if f == nil || f.Height == nil {
+ return 0
+ }
+ return *f.Height
+}
+
+// GetOkHeight 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 (f *FreeTextWidget) GetHeightOk() (int, bool) {
+ if f == nil || f.Height == nil {
+ return 0, false
+ }
+ return *f.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasHeight() bool {
+ if f != nil && f.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new f.Height and returns the pointer to it.
+func (f *FreeTextWidget) SetHeight(v int) {
+ f.Height = &v
+}
+
+// GetText returns the Text field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetText() string {
+ if f == nil || f.Text == nil {
+ return ""
+ }
+ return *f.Text
+}
+
+// GetOkText returns a tuple with the Text field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetTextOk() (string, bool) {
+ if f == nil || f.Text == nil {
+ return "", false
+ }
+ return *f.Text, true
+}
+
+// HasText returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasText() bool {
+ if f != nil && f.Text != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetText allocates a new f.Text and returns the pointer to it.
+func (f *FreeTextWidget) SetText(v string) {
+ f.Text = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetTextAlign() string {
+ if f == nil || f.TextAlign == nil {
+ return ""
+ }
+ return *f.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetTextAlignOk() (string, bool) {
+ if f == nil || f.TextAlign == nil {
+ return "", false
+ }
+ return *f.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasTextAlign() bool {
+ if f != nil && f.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new f.TextAlign and returns the pointer to it.
+func (f *FreeTextWidget) SetTextAlign(v string) {
+ f.TextAlign = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetType() string {
+ if f == nil || f.Type == nil {
+ return ""
+ }
+ return *f.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetTypeOk() (string, bool) {
+ if f == nil || f.Type == nil {
+ return "", false
+ }
+ return *f.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasType() bool {
+ if f != nil && f.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new f.Type and returns the pointer to it.
+func (f *FreeTextWidget) SetType(v string) {
+ f.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetWidth() int {
+ if f == nil || f.Width == nil {
+ return 0
+ }
+ return *f.Width
+}
+
+// GetOkWidth 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 (f *FreeTextWidget) GetWidthOk() (int, bool) {
+ if f == nil || f.Width == nil {
+ return 0, false
+ }
+ return *f.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasWidth() bool {
+ if f != nil && f.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new f.Width and returns the pointer to it.
+func (f *FreeTextWidget) SetWidth(v int) {
+ f.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetX() int {
+ if f == nil || f.X == nil {
+ return 0
+ }
+ return *f.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetXOk() (int, bool) {
+ if f == nil || f.X == nil {
+ return 0, false
+ }
+ return *f.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasX() bool {
+ if f != nil && f.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new f.X and returns the pointer to it.
+func (f *FreeTextWidget) SetX(v int) {
+ f.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (f *FreeTextWidget) GetY() int {
+ if f == nil || f.Y == nil {
+ return 0
+ }
+ return *f.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (f *FreeTextWidget) GetYOk() (int, bool) {
+ if f == nil || f.Y == nil {
+ return 0, false
+ }
+ return *f.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (f *FreeTextWidget) HasY() bool {
+ if f != nil && f.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new f.Y and returns the pointer to it.
+func (f *FreeTextWidget) SetY(v int) {
+ f.Y = &v
+}
+
+// GetDefinition returns the Definition field if non-nil, zero value otherwise.
+func (g *Graph) GetDefinition() GraphDefinition {
+ if g == nil || g.Definition == nil {
+ return GraphDefinition{}
+ }
+ return *g.Definition
+}
+
+// GetOkDefinition returns a tuple with the Definition field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *Graph) GetDefinitionOk() (GraphDefinition, bool) {
+ if g == nil || g.Definition == nil {
+ return GraphDefinition{}, false
+ }
+ return *g.Definition, true
+}
+
+// HasDefinition returns a boolean if a field has been set.
+func (g *Graph) HasDefinition() bool {
+ if g != nil && g.Definition != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDefinition allocates a new g.Definition and returns the pointer to it.
+func (g *Graph) SetDefinition(v GraphDefinition) {
+ g.Definition = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (g *Graph) GetTitle() string {
+ if g == nil || g.Title == nil {
+ return ""
+ }
+ return *g.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *Graph) GetTitleOk() (string, bool) {
+ if g == nil || g.Title == nil {
+ return "", false
+ }
+ return *g.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (g *Graph) HasTitle() bool {
+ if g != nil && g.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new g.Title and returns the pointer to it.
+func (g *Graph) SetTitle(v string) {
+ g.Title = &v
+}
+
+// GetAutoscale returns the Autoscale field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetAutoscale() bool {
+ if g == nil || g.Autoscale == nil {
+ return false
+ }
+ return *g.Autoscale
+}
+
+// GetOkAutoscale returns a tuple with the Autoscale field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetAutoscaleOk() (bool, bool) {
+ if g == nil || g.Autoscale == nil {
+ return false, false
+ }
+ return *g.Autoscale, true
+}
+
+// HasAutoscale returns a boolean if a field has been set.
+func (g *GraphDefinition) HasAutoscale() bool {
+ if g != nil && g.Autoscale != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAutoscale allocates a new g.Autoscale and returns the pointer to it.
+func (g *GraphDefinition) SetAutoscale(v bool) {
+ g.Autoscale = &v
+}
+
+// GetCustomUnit returns the CustomUnit field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetCustomUnit() string {
+ if g == nil || g.CustomUnit == nil {
+ return ""
+ }
+ return *g.CustomUnit
+}
+
+// GetOkCustomUnit returns a tuple with the CustomUnit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetCustomUnitOk() (string, bool) {
+ if g == nil || g.CustomUnit == nil {
+ return "", false
+ }
+ return *g.CustomUnit, true
+}
+
+// HasCustomUnit returns a boolean if a field has been set.
+func (g *GraphDefinition) HasCustomUnit() bool {
+ if g != nil && g.CustomUnit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCustomUnit allocates a new g.CustomUnit and returns the pointer to it.
+func (g *GraphDefinition) SetCustomUnit(v string) {
+ g.CustomUnit = &v
+}
+
+// GetIncludeNoMetricHosts returns the IncludeNoMetricHosts field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetIncludeNoMetricHosts() bool {
+ if g == nil || g.IncludeNoMetricHosts == nil {
+ return false
+ }
+ return *g.IncludeNoMetricHosts
+}
+
+// GetOkIncludeNoMetricHosts returns a tuple with the IncludeNoMetricHosts field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetIncludeNoMetricHostsOk() (bool, bool) {
+ if g == nil || g.IncludeNoMetricHosts == nil {
+ return false, false
+ }
+ return *g.IncludeNoMetricHosts, true
+}
+
+// HasIncludeNoMetricHosts returns a boolean if a field has been set.
+func (g *GraphDefinition) HasIncludeNoMetricHosts() bool {
+ if g != nil && g.IncludeNoMetricHosts != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIncludeNoMetricHosts allocates a new g.IncludeNoMetricHosts and returns the pointer to it.
+func (g *GraphDefinition) SetIncludeNoMetricHosts(v bool) {
+ g.IncludeNoMetricHosts = &v
+}
+
+// GetIncludeUngroupedHosts returns the IncludeUngroupedHosts field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetIncludeUngroupedHosts() bool {
+ if g == nil || g.IncludeUngroupedHosts == nil {
+ return false
+ }
+ return *g.IncludeUngroupedHosts
+}
+
+// GetOkIncludeUngroupedHosts returns a tuple with the IncludeUngroupedHosts field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetIncludeUngroupedHostsOk() (bool, bool) {
+ if g == nil || g.IncludeUngroupedHosts == nil {
+ return false, false
+ }
+ return *g.IncludeUngroupedHosts, true
+}
+
+// HasIncludeUngroupedHosts returns a boolean if a field has been set.
+func (g *GraphDefinition) HasIncludeUngroupedHosts() bool {
+ if g != nil && g.IncludeUngroupedHosts != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIncludeUngroupedHosts allocates a new g.IncludeUngroupedHosts and returns the pointer to it.
+func (g *GraphDefinition) SetIncludeUngroupedHosts(v bool) {
+ g.IncludeUngroupedHosts = &v
+}
+
+// GetPrecision returns the Precision field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetPrecision() string {
+ if g == nil || g.Precision == nil {
+ return ""
+ }
+ return *g.Precision
+}
+
+// GetOkPrecision returns a tuple with the Precision field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetPrecisionOk() (string, bool) {
+ if g == nil || g.Precision == nil {
+ return "", false
+ }
+ return *g.Precision, true
+}
+
+// HasPrecision returns a boolean if a field has been set.
+func (g *GraphDefinition) HasPrecision() bool {
+ if g != nil && g.Precision != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPrecision allocates a new g.Precision and returns the pointer to it.
+func (g *GraphDefinition) SetPrecision(v string) {
+ g.Precision = &v
+}
+
+// GetStyle returns the Style field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetStyle() Style {
+ if g == nil || g.Style == nil {
+ return Style{}
+ }
+ return *g.Style
+}
+
+// GetOkStyle returns a tuple with the Style field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetStyleOk() (Style, bool) {
+ if g == nil || g.Style == nil {
+ return Style{}, false
+ }
+ return *g.Style, true
+}
+
+// HasStyle returns a boolean if a field has been set.
+func (g *GraphDefinition) HasStyle() bool {
+ if g != nil && g.Style != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStyle allocates a new g.Style and returns the pointer to it.
+func (g *GraphDefinition) SetStyle(v Style) {
+ g.Style = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetTextAlign() string {
+ if g == nil || g.TextAlign == nil {
+ return ""
+ }
+ return *g.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetTextAlignOk() (string, bool) {
+ if g == nil || g.TextAlign == nil {
+ return "", false
+ }
+ return *g.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (g *GraphDefinition) HasTextAlign() bool {
+ if g != nil && g.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new g.TextAlign and returns the pointer to it.
+func (g *GraphDefinition) SetTextAlign(v string) {
+ g.TextAlign = &v
+}
+
+// GetViz returns the Viz field if non-nil, zero value otherwise.
+func (g *GraphDefinition) GetViz() string {
+ if g == nil || g.Viz == nil {
+ return ""
+ }
+ return *g.Viz
+}
+
+// GetOkViz returns a tuple with the Viz field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinition) GetVizOk() (string, bool) {
+ if g == nil || g.Viz == nil {
+ return "", false
+ }
+ return *g.Viz, true
+}
+
+// HasViz returns a boolean if a field has been set.
+func (g *GraphDefinition) HasViz() bool {
+ if g != nil && g.Viz != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetViz allocates a new g.Viz and returns the pointer to it.
+func (g *GraphDefinition) SetViz(v string) {
+ g.Viz = &v
+}
+
+// GetLabel returns the Label field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetLabel() string {
+ if g == nil || g.Label == nil {
+ return ""
+ }
+ return *g.Label
+}
+
+// GetOkLabel returns a tuple with the Label field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetLabelOk() (string, bool) {
+ if g == nil || g.Label == nil {
+ return "", false
+ }
+ return *g.Label, true
+}
+
+// HasLabel returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasLabel() bool {
+ if g != nil && g.Label != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel allocates a new g.Label and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetLabel(v string) {
+ g.Label = &v
+}
+
+// GetMax returns the Max field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetMax() json.Number {
+ if g == nil || g.Max == nil {
+ return ""
+ }
+ return *g.Max
+}
+
+// GetOkMax returns a tuple with the Max field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetMaxOk() (json.Number, bool) {
+ if g == nil || g.Max == nil {
+ return "", false
+ }
+ return *g.Max, true
+}
+
+// HasMax returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasMax() bool {
+ if g != nil && g.Max != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMax allocates a new g.Max and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetMax(v json.Number) {
+ g.Max = &v
+}
+
+// GetMin returns the Min field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetMin() json.Number {
+ if g == nil || g.Min == nil {
+ return ""
+ }
+ return *g.Min
+}
+
+// GetOkMin returns a tuple with the Min field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetMinOk() (json.Number, bool) {
+ if g == nil || g.Min == nil {
+ return "", false
+ }
+ return *g.Min, true
+}
+
+// HasMin returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasMin() bool {
+ if g != nil && g.Min != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMin allocates a new g.Min and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetMin(v json.Number) {
+ g.Min = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetType() string {
+ if g == nil || g.Type == nil {
+ return ""
+ }
+ return *g.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetTypeOk() (string, bool) {
+ if g == nil || g.Type == nil {
+ return "", false
+ }
+ return *g.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasType() bool {
+ if g != nil && g.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new g.Type and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetType(v string) {
+ g.Type = &v
+}
+
+// GetVal returns the Val field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetVal() json.Number {
+ if g == nil || g.Val == nil {
+ return ""
+ }
+ return *g.Val
+}
+
+// GetOkVal returns a tuple with the Val field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetValOk() (json.Number, bool) {
+ if g == nil || g.Val == nil {
+ return "", false
+ }
+ return *g.Val, true
+}
+
+// HasVal returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasVal() bool {
+ if g != nil && g.Val != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetVal allocates a new g.Val and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetVal(v json.Number) {
+ g.Val = &v
+}
+
+// GetValue returns the Value field if non-nil, zero value otherwise.
+func (g *GraphDefinitionMarker) GetValue() string {
+ if g == nil || g.Value == nil {
+ return ""
+ }
+ return *g.Value
+}
+
+// GetOkValue returns a tuple with the Value field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionMarker) GetValueOk() (string, bool) {
+ if g == nil || g.Value == nil {
+ return "", false
+ }
+ return *g.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (g *GraphDefinitionMarker) HasValue() bool {
+ if g != nil && g.Value != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetValue allocates a new g.Value and returns the pointer to it.
+func (g *GraphDefinitionMarker) SetValue(v string) {
+ g.Value = &v
+}
+
+// GetAggregator returns the Aggregator field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetAggregator() string {
+ if g == nil || g.Aggregator == nil {
+ return ""
+ }
+ return *g.Aggregator
+}
+
+// GetOkAggregator returns a tuple with the Aggregator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetAggregatorOk() (string, bool) {
+ if g == nil || g.Aggregator == nil {
+ return "", false
+ }
+ return *g.Aggregator, true
+}
+
+// HasAggregator returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasAggregator() bool {
+ if g != nil && g.Aggregator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAggregator allocates a new g.Aggregator and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetAggregator(v string) {
+ g.Aggregator = &v
+}
+
+// GetChangeType returns the ChangeType field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetChangeType() string {
+ if g == nil || g.ChangeType == nil {
+ return ""
+ }
+ return *g.ChangeType
+}
+
+// GetOkChangeType returns a tuple with the ChangeType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetChangeTypeOk() (string, bool) {
+ if g == nil || g.ChangeType == nil {
+ return "", false
+ }
+ return *g.ChangeType, true
+}
+
+// HasChangeType returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasChangeType() bool {
+ if g != nil && g.ChangeType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetChangeType allocates a new g.ChangeType and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetChangeType(v string) {
+ g.ChangeType = &v
+}
+
+// GetCompareTo returns the CompareTo field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetCompareTo() string {
+ if g == nil || g.CompareTo == nil {
+ return ""
+ }
+ return *g.CompareTo
+}
+
+// GetOkCompareTo returns a tuple with the CompareTo field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetCompareToOk() (string, bool) {
+ if g == nil || g.CompareTo == nil {
+ return "", false
+ }
+ return *g.CompareTo, true
+}
+
+// HasCompareTo returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasCompareTo() bool {
+ if g != nil && g.CompareTo != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCompareTo allocates a new g.CompareTo and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetCompareTo(v string) {
+ g.CompareTo = &v
+}
+
+// GetExtraCol returns the ExtraCol field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetExtraCol() string {
+ if g == nil || g.ExtraCol == nil {
+ return ""
+ }
+ return *g.ExtraCol
+}
+
+// GetOkExtraCol returns a tuple with the ExtraCol field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetExtraColOk() (string, bool) {
+ if g == nil || g.ExtraCol == nil {
+ return "", false
+ }
+ return *g.ExtraCol, true
+}
+
+// HasExtraCol returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasExtraCol() bool {
+ if g != nil && g.ExtraCol != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetExtraCol allocates a new g.ExtraCol and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetExtraCol(v string) {
+ g.ExtraCol = &v
+}
+
+// GetIncreaseGood returns the IncreaseGood field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetIncreaseGood() bool {
+ if g == nil || g.IncreaseGood == nil {
+ return false
+ }
+ return *g.IncreaseGood
+}
+
+// GetOkIncreaseGood returns a tuple with the IncreaseGood field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetIncreaseGoodOk() (bool, bool) {
+ if g == nil || g.IncreaseGood == nil {
+ return false, false
+ }
+ return *g.IncreaseGood, true
+}
+
+// HasIncreaseGood returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasIncreaseGood() bool {
+ if g != nil && g.IncreaseGood != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIncreaseGood allocates a new g.IncreaseGood and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetIncreaseGood(v bool) {
+ g.IncreaseGood = &v
+}
+
+// GetOrderBy returns the OrderBy field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetOrderBy() string {
+ if g == nil || g.OrderBy == nil {
+ return ""
+ }
+ return *g.OrderBy
+}
+
+// GetOkOrderBy returns a tuple with the OrderBy field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetOrderByOk() (string, bool) {
+ if g == nil || g.OrderBy == nil {
+ return "", false
+ }
+ return *g.OrderBy, true
+}
+
+// HasOrderBy returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasOrderBy() bool {
+ if g != nil && g.OrderBy != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOrderBy allocates a new g.OrderBy and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetOrderBy(v string) {
+ g.OrderBy = &v
+}
+
+// GetOrderDirection returns the OrderDirection field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetOrderDirection() string {
+ if g == nil || g.OrderDirection == nil {
+ return ""
+ }
+ return *g.OrderDirection
+}
+
+// GetOkOrderDirection returns a tuple with the OrderDirection field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetOrderDirectionOk() (string, bool) {
+ if g == nil || g.OrderDirection == nil {
+ return "", false
+ }
+ return *g.OrderDirection, true
+}
+
+// HasOrderDirection returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasOrderDirection() bool {
+ if g != nil && g.OrderDirection != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOrderDirection allocates a new g.OrderDirection and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetOrderDirection(v string) {
+ g.OrderDirection = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetQuery() string {
+ if g == nil || g.Query == nil {
+ return ""
+ }
+ return *g.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetQueryOk() (string, bool) {
+ if g == nil || g.Query == nil {
+ return "", false
+ }
+ return *g.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasQuery() bool {
+ if g != nil && g.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new g.Query and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetQuery(v string) {
+ g.Query = &v
+}
+
+// GetStacked returns the Stacked field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetStacked() bool {
+ if g == nil || g.Stacked == nil {
+ return false
+ }
+ return *g.Stacked
+}
+
+// GetOkStacked returns a tuple with the Stacked field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetStackedOk() (bool, bool) {
+ if g == nil || g.Stacked == nil {
+ return false, false
+ }
+ return *g.Stacked, true
+}
+
+// HasStacked returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasStacked() bool {
+ if g != nil && g.Stacked != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStacked allocates a new g.Stacked and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetStacked(v bool) {
+ g.Stacked = &v
+}
+
+// GetStyle returns the Style field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetStyle() GraphDefinitionRequestStyle {
+ if g == nil || g.Style == nil {
+ return GraphDefinitionRequestStyle{}
+ }
+ return *g.Style
+}
+
+// GetOkStyle returns a tuple with the Style field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetStyleOk() (GraphDefinitionRequestStyle, bool) {
+ if g == nil || g.Style == nil {
+ return GraphDefinitionRequestStyle{}, false
+ }
+ return *g.Style, true
+}
+
+// HasStyle returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasStyle() bool {
+ if g != nil && g.Style != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStyle allocates a new g.Style and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetStyle(v GraphDefinitionRequestStyle) {
+ g.Style = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequest) GetType() string {
+ if g == nil || g.Type == nil {
+ return ""
+ }
+ return *g.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequest) GetTypeOk() (string, bool) {
+ if g == nil || g.Type == nil {
+ return "", false
+ }
+ return *g.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (g *GraphDefinitionRequest) HasType() bool {
+ if g != nil && g.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new g.Type and returns the pointer to it.
+func (g *GraphDefinitionRequest) SetType(v string) {
+ g.Type = &v
+}
+
+// GetPalette returns the Palette field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequestStyle) GetPalette() string {
+ if g == nil || g.Palette == nil {
+ return ""
+ }
+ return *g.Palette
+}
+
+// GetOkPalette returns a tuple with the Palette field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequestStyle) GetPaletteOk() (string, bool) {
+ if g == nil || g.Palette == nil {
+ return "", false
+ }
+ return *g.Palette, true
+}
+
+// HasPalette returns a boolean if a field has been set.
+func (g *GraphDefinitionRequestStyle) HasPalette() bool {
+ if g != nil && g.Palette != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPalette allocates a new g.Palette and returns the pointer to it.
+func (g *GraphDefinitionRequestStyle) SetPalette(v string) {
+ g.Palette = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequestStyle) GetType() string {
+ if g == nil || g.Type == nil {
+ return ""
+ }
+ return *g.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphDefinitionRequestStyle) GetTypeOk() (string, bool) {
+ if g == nil || g.Type == nil {
+ return "", false
+ }
+ return *g.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (g *GraphDefinitionRequestStyle) HasType() bool {
+ if g != nil && g.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new g.Type and returns the pointer to it.
+func (g *GraphDefinitionRequestStyle) SetType(v string) {
+ g.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (g *GraphDefinitionRequestStyle) GetWidth() string {
+ if g == nil || g.Width == nil {
+ return ""
+ }
+ return *g.Width
+}
+
+// GetOkWidth 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 (g *GraphDefinitionRequestStyle) GetWidthOk() (string, bool) {
+ if g == nil || g.Width == nil {
+ return "", false
+ }
+ return *g.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (g *GraphDefinitionRequestStyle) HasWidth() bool {
+ if g != nil && g.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new g.Width and returns the pointer to it.
+func (g *GraphDefinitionRequestStyle) SetWidth(v string) {
+ g.Width = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (g *GraphEvent) GetQuery() string {
+ if g == nil || g.Query == nil {
+ return ""
+ }
+ return *g.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphEvent) GetQueryOk() (string, bool) {
+ if g == nil || g.Query == nil {
+ return "", false
+ }
+ return *g.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (g *GraphEvent) HasQuery() bool {
+ if g != nil && g.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new g.Query and returns the pointer to it.
+func (g *GraphEvent) SetQuery(v string) {
+ g.Query = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetHeight() int {
+ if g == nil || g.Height == nil {
+ return 0
+ }
+ return *g.Height
+}
+
+// GetOkHeight 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 (g *GraphWidget) GetHeightOk() (int, bool) {
+ if g == nil || g.Height == nil {
+ return 0, false
+ }
+ return *g.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (g *GraphWidget) HasHeight() bool {
+ if g != nil && g.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new g.Height and returns the pointer to it.
+func (g *GraphWidget) SetHeight(v int) {
+ g.Height = &v
+}
+
+// GetLegend returns the Legend field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetLegend() bool {
+ if g == nil || g.Legend == nil {
+ return false
+ }
+ return *g.Legend
+}
+
+// GetOkLegend returns a tuple with the Legend field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetLegendOk() (bool, bool) {
+ if g == nil || g.Legend == nil {
+ return false, false
+ }
+ return *g.Legend, true
+}
+
+// HasLegend returns a boolean if a field has been set.
+func (g *GraphWidget) HasLegend() bool {
+ if g != nil && g.Legend != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegend allocates a new g.Legend and returns the pointer to it.
+func (g *GraphWidget) SetLegend(v bool) {
+ g.Legend = &v
+}
+
+// GetLegendSize returns the LegendSize field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetLegendSize() int {
+ if g == nil || g.LegendSize == nil {
+ return 0
+ }
+ return *g.LegendSize
+}
+
+// GetOkLegendSize returns a tuple with the LegendSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetLegendSizeOk() (int, bool) {
+ if g == nil || g.LegendSize == nil {
+ return 0, false
+ }
+ return *g.LegendSize, true
+}
+
+// HasLegendSize returns a boolean if a field has been set.
+func (g *GraphWidget) HasLegendSize() bool {
+ if g != nil && g.LegendSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegendSize allocates a new g.LegendSize and returns the pointer to it.
+func (g *GraphWidget) SetLegendSize(v int) {
+ g.LegendSize = &v
+}
+
+// GetTileDef returns the TileDef field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTileDef() TileDef {
+ if g == nil || g.TileDef == nil {
+ return TileDef{}
+ }
+ return *g.TileDef
+}
+
+// GetOkTileDef returns a tuple with the TileDef field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTileDefOk() (TileDef, bool) {
+ if g == nil || g.TileDef == nil {
+ return TileDef{}, false
+ }
+ return *g.TileDef, true
+}
+
+// HasTileDef returns a boolean if a field has been set.
+func (g *GraphWidget) HasTileDef() bool {
+ if g != nil && g.TileDef != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTileDef allocates a new g.TileDef and returns the pointer to it.
+func (g *GraphWidget) SetTileDef(v TileDef) {
+ g.TileDef = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTimeframe() string {
+ if g == nil || g.Timeframe == nil {
+ return ""
+ }
+ return *g.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTimeframeOk() (string, bool) {
+ if g == nil || g.Timeframe == nil {
+ return "", false
+ }
+ return *g.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (g *GraphWidget) HasTimeframe() bool {
+ if g != nil && g.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new g.Timeframe and returns the pointer to it.
+func (g *GraphWidget) SetTimeframe(v string) {
+ g.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTitle() bool {
+ if g == nil || g.Title == nil {
+ return false
+ }
+ return *g.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTitleOk() (bool, bool) {
+ if g == nil || g.Title == nil {
+ return false, false
+ }
+ return *g.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (g *GraphWidget) HasTitle() bool {
+ if g != nil && g.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new g.Title and returns the pointer to it.
+func (g *GraphWidget) SetTitle(v bool) {
+ g.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTitleAlign() string {
+ if g == nil || g.TitleAlign == nil {
+ return ""
+ }
+ return *g.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTitleAlignOk() (string, bool) {
+ if g == nil || g.TitleAlign == nil {
+ return "", false
+ }
+ return *g.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (g *GraphWidget) HasTitleAlign() bool {
+ if g != nil && g.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new g.TitleAlign and returns the pointer to it.
+func (g *GraphWidget) SetTitleAlign(v string) {
+ g.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTitleSize() int {
+ if g == nil || g.TitleSize == nil {
+ return 0
+ }
+ return *g.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTitleSizeOk() (int, bool) {
+ if g == nil || g.TitleSize == nil {
+ return 0, false
+ }
+ return *g.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (g *GraphWidget) HasTitleSize() bool {
+ if g != nil && g.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new g.TitleSize and returns the pointer to it.
+func (g *GraphWidget) SetTitleSize(v int) {
+ g.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetTitleText() string {
+ if g == nil || g.TitleText == nil {
+ return ""
+ }
+ return *g.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTitleTextOk() (string, bool) {
+ if g == nil || g.TitleText == nil {
+ return "", false
+ }
+ return *g.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (g *GraphWidget) HasTitleText() bool {
+ if g != nil && g.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new g.TitleText and returns the pointer to it.
+func (g *GraphWidget) SetTitleText(v string) {
+ g.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetType() string {
+ if g == nil || g.Type == nil {
+ return ""
+ }
+ return *g.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetTypeOk() (string, bool) {
+ if g == nil || g.Type == nil {
+ return "", false
+ }
+ return *g.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (g *GraphWidget) HasType() bool {
+ if g != nil && g.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new g.Type and returns the pointer to it.
+func (g *GraphWidget) SetType(v string) {
+ g.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetWidth() int {
+ if g == nil || g.Width == nil {
+ return 0
+ }
+ return *g.Width
+}
+
+// GetOkWidth 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 (g *GraphWidget) GetWidthOk() (int, bool) {
+ if g == nil || g.Width == nil {
+ return 0, false
+ }
+ return *g.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (g *GraphWidget) HasWidth() bool {
+ if g != nil && g.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new g.Width and returns the pointer to it.
+func (g *GraphWidget) SetWidth(v int) {
+ g.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetX() int {
+ if g == nil || g.X == nil {
+ return 0
+ }
+ return *g.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetXOk() (int, bool) {
+ if g == nil || g.X == nil {
+ return 0, false
+ }
+ return *g.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (g *GraphWidget) HasX() bool {
+ if g != nil && g.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new g.X and returns the pointer to it.
+func (g *GraphWidget) SetX(v int) {
+ g.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (g *GraphWidget) GetY() int {
+ if g == nil || g.Y == nil {
+ return 0
+ }
+ return *g.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (g *GraphWidget) GetYOk() (int, bool) {
+ if g == nil || g.Y == nil {
+ return 0, false
+ }
+ return *g.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (g *GraphWidget) HasY() bool {
+ if g != nil && g.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new g.Y and returns the pointer to it.
+func (g *GraphWidget) SetY(v int) {
+ g.Y = &v
+}
+
+// GetEndTime returns the EndTime field if non-nil, zero value otherwise.
+func (h *HostActionMute) GetEndTime() string {
+ if h == nil || h.EndTime == nil {
+ return ""
+ }
+ return *h.EndTime
+}
+
+// GetOkEndTime returns a tuple with the EndTime field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostActionMute) GetEndTimeOk() (string, bool) {
+ if h == nil || h.EndTime == nil {
+ return "", false
+ }
+ return *h.EndTime, true
+}
+
+// HasEndTime returns a boolean if a field has been set.
+func (h *HostActionMute) HasEndTime() bool {
+ if h != nil && h.EndTime != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEndTime allocates a new h.EndTime and returns the pointer to it.
+func (h *HostActionMute) SetEndTime(v string) {
+ h.EndTime = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (h *HostActionMute) GetMessage() string {
+ if h == nil || h.Message == nil {
+ return ""
+ }
+ return *h.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostActionMute) GetMessageOk() (string, bool) {
+ if h == nil || h.Message == nil {
+ return "", false
+ }
+ return *h.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (h *HostActionMute) HasMessage() bool {
+ if h != nil && h.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new h.Message and returns the pointer to it.
+func (h *HostActionMute) SetMessage(v string) {
+ h.Message = &v
+}
+
+// GetOverride returns the Override field if non-nil, zero value otherwise.
+func (h *HostActionMute) GetOverride() bool {
+ if h == nil || h.Override == nil {
+ return false
+ }
+ return *h.Override
+}
+
+// GetOkOverride returns a tuple with the Override field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostActionMute) GetOverrideOk() (bool, bool) {
+ if h == nil || h.Override == nil {
+ return false, false
+ }
+ return *h.Override, true
+}
+
+// HasOverride returns a boolean if a field has been set.
+func (h *HostActionMute) HasOverride() bool {
+ if h != nil && h.Override != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOverride allocates a new h.Override and returns the pointer to it.
+func (h *HostActionMute) SetOverride(v bool) {
+ h.Override = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetHeight() int {
+ if h == nil || h.Height == nil {
+ return 0
+ }
+ return *h.Height
+}
+
+// GetOkHeight 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 (h *HostMapWidget) GetHeightOk() (int, bool) {
+ if h == nil || h.Height == nil {
+ return 0, false
+ }
+ return *h.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (h *HostMapWidget) HasHeight() bool {
+ if h != nil && h.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new h.Height and returns the pointer to it.
+func (h *HostMapWidget) SetHeight(v int) {
+ h.Height = &v
+}
+
+// GetLegend returns the Legend field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetLegend() bool {
+ if h == nil || h.Legend == nil {
+ return false
+ }
+ return *h.Legend
+}
+
+// GetOkLegend returns a tuple with the Legend field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetLegendOk() (bool, bool) {
+ if h == nil || h.Legend == nil {
+ return false, false
+ }
+ return *h.Legend, true
+}
+
+// HasLegend returns a boolean if a field has been set.
+func (h *HostMapWidget) HasLegend() bool {
+ if h != nil && h.Legend != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegend allocates a new h.Legend and returns the pointer to it.
+func (h *HostMapWidget) SetLegend(v bool) {
+ h.Legend = &v
+}
+
+// GetLegendSize returns the LegendSize field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetLegendSize() int {
+ if h == nil || h.LegendSize == nil {
+ return 0
+ }
+ return *h.LegendSize
+}
+
+// GetOkLegendSize returns a tuple with the LegendSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetLegendSizeOk() (int, bool) {
+ if h == nil || h.LegendSize == nil {
+ return 0, false
+ }
+ return *h.LegendSize, true
+}
+
+// HasLegendSize returns a boolean if a field has been set.
+func (h *HostMapWidget) HasLegendSize() bool {
+ if h != nil && h.LegendSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegendSize allocates a new h.LegendSize and returns the pointer to it.
+func (h *HostMapWidget) SetLegendSize(v int) {
+ h.LegendSize = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetQuery() string {
+ if h == nil || h.Query == nil {
+ return ""
+ }
+ return *h.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetQueryOk() (string, bool) {
+ if h == nil || h.Query == nil {
+ return "", false
+ }
+ return *h.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (h *HostMapWidget) HasQuery() bool {
+ if h != nil && h.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new h.Query and returns the pointer to it.
+func (h *HostMapWidget) SetQuery(v string) {
+ h.Query = &v
+}
+
+// GetTileDef returns the TileDef field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTileDef() TileDef {
+ if h == nil || h.TileDef == nil {
+ return TileDef{}
+ }
+ return *h.TileDef
+}
+
+// GetOkTileDef returns a tuple with the TileDef field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTileDefOk() (TileDef, bool) {
+ if h == nil || h.TileDef == nil {
+ return TileDef{}, false
+ }
+ return *h.TileDef, true
+}
+
+// HasTileDef returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTileDef() bool {
+ if h != nil && h.TileDef != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTileDef allocates a new h.TileDef and returns the pointer to it.
+func (h *HostMapWidget) SetTileDef(v TileDef) {
+ h.TileDef = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTimeframe() string {
+ if h == nil || h.Timeframe == nil {
+ return ""
+ }
+ return *h.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTimeframeOk() (string, bool) {
+ if h == nil || h.Timeframe == nil {
+ return "", false
+ }
+ return *h.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTimeframe() bool {
+ if h != nil && h.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new h.Timeframe and returns the pointer to it.
+func (h *HostMapWidget) SetTimeframe(v string) {
+ h.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTitle() bool {
+ if h == nil || h.Title == nil {
+ return false
+ }
+ return *h.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTitleOk() (bool, bool) {
+ if h == nil || h.Title == nil {
+ return false, false
+ }
+ return *h.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTitle() bool {
+ if h != nil && h.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new h.Title and returns the pointer to it.
+func (h *HostMapWidget) SetTitle(v bool) {
+ h.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTitleAlign() string {
+ if h == nil || h.TitleAlign == nil {
+ return ""
+ }
+ return *h.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTitleAlignOk() (string, bool) {
+ if h == nil || h.TitleAlign == nil {
+ return "", false
+ }
+ return *h.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTitleAlign() bool {
+ if h != nil && h.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new h.TitleAlign and returns the pointer to it.
+func (h *HostMapWidget) SetTitleAlign(v string) {
+ h.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTitleSize() int {
+ if h == nil || h.TitleSize == nil {
+ return 0
+ }
+ return *h.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTitleSizeOk() (int, bool) {
+ if h == nil || h.TitleSize == nil {
+ return 0, false
+ }
+ return *h.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTitleSize() bool {
+ if h != nil && h.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new h.TitleSize and returns the pointer to it.
+func (h *HostMapWidget) SetTitleSize(v int) {
+ h.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetTitleText() string {
+ if h == nil || h.TitleText == nil {
+ return ""
+ }
+ return *h.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTitleTextOk() (string, bool) {
+ if h == nil || h.TitleText == nil {
+ return "", false
+ }
+ return *h.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (h *HostMapWidget) HasTitleText() bool {
+ if h != nil && h.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new h.TitleText and returns the pointer to it.
+func (h *HostMapWidget) SetTitleText(v string) {
+ h.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetType() string {
+ if h == nil || h.Type == nil {
+ return ""
+ }
+ return *h.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetTypeOk() (string, bool) {
+ if h == nil || h.Type == nil {
+ return "", false
+ }
+ return *h.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (h *HostMapWidget) HasType() bool {
+ if h != nil && h.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new h.Type and returns the pointer to it.
+func (h *HostMapWidget) SetType(v string) {
+ h.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetWidth() int {
+ if h == nil || h.Width == nil {
+ return 0
+ }
+ return *h.Width
+}
+
+// GetOkWidth 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 (h *HostMapWidget) GetWidthOk() (int, bool) {
+ if h == nil || h.Width == nil {
+ return 0, false
+ }
+ return *h.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (h *HostMapWidget) HasWidth() bool {
+ if h != nil && h.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new h.Width and returns the pointer to it.
+func (h *HostMapWidget) SetWidth(v int) {
+ h.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetX() int {
+ if h == nil || h.X == nil {
+ return 0
+ }
+ return *h.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetXOk() (int, bool) {
+ if h == nil || h.X == nil {
+ return 0, false
+ }
+ return *h.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (h *HostMapWidget) HasX() bool {
+ if h != nil && h.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new h.X and returns the pointer to it.
+func (h *HostMapWidget) SetX(v int) {
+ h.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (h *HostMapWidget) GetY() int {
+ if h == nil || h.Y == nil {
+ return 0
+ }
+ return *h.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (h *HostMapWidget) GetYOk() (int, bool) {
+ if h == nil || h.Y == nil {
+ return 0, false
+ }
+ return *h.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (h *HostMapWidget) HasY() bool {
+ if h != nil && h.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new h.Y and returns the pointer to it.
+func (h *HostMapWidget) SetY(v int) {
+ h.Y = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetHeight() int {
+ if i == nil || i.Height == nil {
+ return 0
+ }
+ return *i.Height
+}
+
+// GetOkHeight 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 (i *IFrameWidget) GetHeightOk() (int, bool) {
+ if i == nil || i.Height == nil {
+ return 0, false
+ }
+ return *i.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (i *IFrameWidget) HasHeight() bool {
+ if i != nil && i.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new i.Height and returns the pointer to it.
+func (i *IFrameWidget) SetHeight(v int) {
+ i.Height = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetTitle() bool {
+ if i == nil || i.Title == nil {
+ return false
+ }
+ return *i.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetTitleOk() (bool, bool) {
+ if i == nil || i.Title == nil {
+ return false, false
+ }
+ return *i.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (i *IFrameWidget) HasTitle() bool {
+ if i != nil && i.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new i.Title and returns the pointer to it.
+func (i *IFrameWidget) SetTitle(v bool) {
+ i.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetTitleAlign() string {
+ if i == nil || i.TitleAlign == nil {
+ return ""
+ }
+ return *i.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetTitleAlignOk() (string, bool) {
+ if i == nil || i.TitleAlign == nil {
+ return "", false
+ }
+ return *i.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (i *IFrameWidget) HasTitleAlign() bool {
+ if i != nil && i.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new i.TitleAlign and returns the pointer to it.
+func (i *IFrameWidget) SetTitleAlign(v string) {
+ i.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetTitleSize() int {
+ if i == nil || i.TitleSize == nil {
+ return 0
+ }
+ return *i.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetTitleSizeOk() (int, bool) {
+ if i == nil || i.TitleSize == nil {
+ return 0, false
+ }
+ return *i.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (i *IFrameWidget) HasTitleSize() bool {
+ if i != nil && i.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new i.TitleSize and returns the pointer to it.
+func (i *IFrameWidget) SetTitleSize(v int) {
+ i.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetTitleText() string {
+ if i == nil || i.TitleText == nil {
+ return ""
+ }
+ return *i.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetTitleTextOk() (string, bool) {
+ if i == nil || i.TitleText == nil {
+ return "", false
+ }
+ return *i.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (i *IFrameWidget) HasTitleText() bool {
+ if i != nil && i.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new i.TitleText and returns the pointer to it.
+func (i *IFrameWidget) SetTitleText(v string) {
+ i.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetType() string {
+ if i == nil || i.Type == nil {
+ return ""
+ }
+ return *i.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetTypeOk() (string, bool) {
+ if i == nil || i.Type == nil {
+ return "", false
+ }
+ return *i.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (i *IFrameWidget) HasType() bool {
+ if i != nil && i.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new i.Type and returns the pointer to it.
+func (i *IFrameWidget) SetType(v string) {
+ i.Type = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetUrl() string {
+ if i == nil || i.Url == nil {
+ return ""
+ }
+ return *i.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetUrlOk() (string, bool) {
+ if i == nil || i.Url == nil {
+ return "", false
+ }
+ return *i.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (i *IFrameWidget) HasUrl() bool {
+ if i != nil && i.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new i.Url and returns the pointer to it.
+func (i *IFrameWidget) SetUrl(v string) {
+ i.Url = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetWidth() int {
+ if i == nil || i.Width == nil {
+ return 0
+ }
+ return *i.Width
+}
+
+// GetOkWidth 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 (i *IFrameWidget) GetWidthOk() (int, bool) {
+ if i == nil || i.Width == nil {
+ return 0, false
+ }
+ return *i.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (i *IFrameWidget) HasWidth() bool {
+ if i != nil && i.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new i.Width and returns the pointer to it.
+func (i *IFrameWidget) SetWidth(v int) {
+ i.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetX() int {
+ if i == nil || i.X == nil {
+ return 0
+ }
+ return *i.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetXOk() (int, bool) {
+ if i == nil || i.X == nil {
+ return 0, false
+ }
+ return *i.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (i *IFrameWidget) HasX() bool {
+ if i != nil && i.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new i.X and returns the pointer to it.
+func (i *IFrameWidget) SetX(v int) {
+ i.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (i *IFrameWidget) GetY() int {
+ if i == nil || i.Y == nil {
+ return 0
+ }
+ return *i.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IFrameWidget) GetYOk() (int, bool) {
+ if i == nil || i.Y == nil {
+ return 0, false
+ }
+ return *i.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (i *IFrameWidget) HasY() bool {
+ if i != nil && i.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new i.Y and returns the pointer to it.
+func (i *IFrameWidget) SetY(v int) {
+ i.Y = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetHeight() int {
+ if i == nil || i.Height == nil {
+ return 0
+ }
+ return *i.Height
+}
+
+// GetOkHeight 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 (i *ImageWidget) GetHeightOk() (int, bool) {
+ if i == nil || i.Height == nil {
+ return 0, false
+ }
+ return *i.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (i *ImageWidget) HasHeight() bool {
+ if i != nil && i.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new i.Height and returns the pointer to it.
+func (i *ImageWidget) SetHeight(v int) {
+ i.Height = &v
+}
+
+// GetSizing returns the Sizing field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetSizing() string {
+ if i == nil || i.Sizing == nil {
+ return ""
+ }
+ return *i.Sizing
+}
+
+// GetOkSizing returns a tuple with the Sizing field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetSizingOk() (string, bool) {
+ if i == nil || i.Sizing == nil {
+ return "", false
+ }
+ return *i.Sizing, true
+}
+
+// HasSizing returns a boolean if a field has been set.
+func (i *ImageWidget) HasSizing() bool {
+ if i != nil && i.Sizing != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSizing allocates a new i.Sizing and returns the pointer to it.
+func (i *ImageWidget) SetSizing(v string) {
+ i.Sizing = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetTitle() bool {
+ if i == nil || i.Title == nil {
+ return false
+ }
+ return *i.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetTitleOk() (bool, bool) {
+ if i == nil || i.Title == nil {
+ return false, false
+ }
+ return *i.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (i *ImageWidget) HasTitle() bool {
+ if i != nil && i.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new i.Title and returns the pointer to it.
+func (i *ImageWidget) SetTitle(v bool) {
+ i.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetTitleAlign() string {
+ if i == nil || i.TitleAlign == nil {
+ return ""
+ }
+ return *i.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetTitleAlignOk() (string, bool) {
+ if i == nil || i.TitleAlign == nil {
+ return "", false
+ }
+ return *i.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (i *ImageWidget) HasTitleAlign() bool {
+ if i != nil && i.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new i.TitleAlign and returns the pointer to it.
+func (i *ImageWidget) SetTitleAlign(v string) {
+ i.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetTitleSize() TextSize {
+ if i == nil || i.TitleSize == nil {
+ return TextSize{}
+ }
+ return *i.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetTitleSizeOk() (TextSize, bool) {
+ if i == nil || i.TitleSize == nil {
+ return TextSize{}, false
+ }
+ return *i.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (i *ImageWidget) HasTitleSize() bool {
+ if i != nil && i.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new i.TitleSize and returns the pointer to it.
+func (i *ImageWidget) SetTitleSize(v TextSize) {
+ i.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetTitleText() string {
+ if i == nil || i.TitleText == nil {
+ return ""
+ }
+ return *i.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetTitleTextOk() (string, bool) {
+ if i == nil || i.TitleText == nil {
+ return "", false
+ }
+ return *i.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (i *ImageWidget) HasTitleText() bool {
+ if i != nil && i.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new i.TitleText and returns the pointer to it.
+func (i *ImageWidget) SetTitleText(v string) {
+ i.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetType() string {
+ if i == nil || i.Type == nil {
+ return ""
+ }
+ return *i.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetTypeOk() (string, bool) {
+ if i == nil || i.Type == nil {
+ return "", false
+ }
+ return *i.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (i *ImageWidget) HasType() bool {
+ if i != nil && i.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new i.Type and returns the pointer to it.
+func (i *ImageWidget) SetType(v string) {
+ i.Type = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetUrl() string {
+ if i == nil || i.Url == nil {
+ return ""
+ }
+ return *i.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetUrlOk() (string, bool) {
+ if i == nil || i.Url == nil {
+ return "", false
+ }
+ return *i.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (i *ImageWidget) HasUrl() bool {
+ if i != nil && i.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new i.Url and returns the pointer to it.
+func (i *ImageWidget) SetUrl(v string) {
+ i.Url = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetWidth() int {
+ if i == nil || i.Width == nil {
+ return 0
+ }
+ return *i.Width
+}
+
+// GetOkWidth 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 (i *ImageWidget) GetWidthOk() (int, bool) {
+ if i == nil || i.Width == nil {
+ return 0, false
+ }
+ return *i.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (i *ImageWidget) HasWidth() bool {
+ if i != nil && i.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new i.Width and returns the pointer to it.
+func (i *ImageWidget) SetWidth(v int) {
+ i.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetX() int {
+ if i == nil || i.X == nil {
+ return 0
+ }
+ return *i.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetXOk() (int, bool) {
+ if i == nil || i.X == nil {
+ return 0, false
+ }
+ return *i.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (i *ImageWidget) HasX() bool {
+ if i != nil && i.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new i.X and returns the pointer to it.
+func (i *ImageWidget) SetX(v int) {
+ i.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (i *ImageWidget) GetY() int {
+ if i == nil || i.Y == nil {
+ return 0
+ }
+ return *i.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *ImageWidget) GetYOk() (int, bool) {
+ if i == nil || i.Y == nil {
+ return 0, false
+ }
+ return *i.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (i *ImageWidget) HasY() bool {
+ if i != nil && i.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new i.Y and returns the pointer to it.
+func (i *ImageWidget) SetY(v int) {
+ i.Y = &v
+}
+
+// GetAccountID returns the AccountID field if non-nil, zero value otherwise.
+func (i *IntegrationAWSAccount) GetAccountID() string {
+ if i == nil || i.AccountID == nil {
+ return ""
+ }
+ return *i.AccountID
+}
+
+// GetOkAccountID returns a tuple with the AccountID field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationAWSAccount) GetAccountIDOk() (string, bool) {
+ if i == nil || i.AccountID == nil {
+ return "", false
+ }
+ return *i.AccountID, true
+}
+
+// HasAccountID returns a boolean if a field has been set.
+func (i *IntegrationAWSAccount) HasAccountID() bool {
+ if i != nil && i.AccountID != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccountID allocates a new i.AccountID and returns the pointer to it.
+func (i *IntegrationAWSAccount) SetAccountID(v string) {
+ i.AccountID = &v
+}
+
+// GetRoleName returns the RoleName field if non-nil, zero value otherwise.
+func (i *IntegrationAWSAccount) GetRoleName() string {
+ if i == nil || i.RoleName == nil {
+ return ""
+ }
+ return *i.RoleName
+}
+
+// GetOkRoleName returns a tuple with the RoleName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationAWSAccount) GetRoleNameOk() (string, bool) {
+ if i == nil || i.RoleName == nil {
+ return "", false
+ }
+ return *i.RoleName, true
+}
+
+// HasRoleName returns a boolean if a field has been set.
+func (i *IntegrationAWSAccount) HasRoleName() bool {
+ if i != nil && i.RoleName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRoleName allocates a new i.RoleName and returns the pointer to it.
+func (i *IntegrationAWSAccount) SetRoleName(v string) {
+ i.RoleName = &v
+}
+
+// GetAccountID returns the AccountID field if non-nil, zero value otherwise.
+func (i *IntegrationAWSAccountDeleteRequest) GetAccountID() string {
+ if i == nil || i.AccountID == nil {
+ return ""
+ }
+ return *i.AccountID
+}
+
+// GetOkAccountID returns a tuple with the AccountID field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationAWSAccountDeleteRequest) GetAccountIDOk() (string, bool) {
+ if i == nil || i.AccountID == nil {
+ return "", false
+ }
+ return *i.AccountID, true
+}
+
+// HasAccountID returns a boolean if a field has been set.
+func (i *IntegrationAWSAccountDeleteRequest) HasAccountID() bool {
+ if i != nil && i.AccountID != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccountID allocates a new i.AccountID and returns the pointer to it.
+func (i *IntegrationAWSAccountDeleteRequest) SetAccountID(v string) {
+ i.AccountID = &v
+}
+
+// GetRoleName returns the RoleName field if non-nil, zero value otherwise.
+func (i *IntegrationAWSAccountDeleteRequest) GetRoleName() string {
+ if i == nil || i.RoleName == nil {
+ return ""
+ }
+ return *i.RoleName
+}
+
+// GetOkRoleName returns a tuple with the RoleName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationAWSAccountDeleteRequest) GetRoleNameOk() (string, bool) {
+ if i == nil || i.RoleName == nil {
+ return "", false
+ }
+ return *i.RoleName, true
+}
+
+// HasRoleName returns a boolean if a field has been set.
+func (i *IntegrationAWSAccountDeleteRequest) HasRoleName() bool {
+ if i != nil && i.RoleName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRoleName allocates a new i.RoleName and returns the pointer to it.
+func (i *IntegrationAWSAccountDeleteRequest) SetRoleName(v string) {
+ i.RoleName = &v
+}
+
+// GetAPIToken returns the APIToken field if non-nil, zero value otherwise.
+func (i *integrationPD) GetAPIToken() string {
+ if i == nil || i.APIToken == nil {
+ return ""
+ }
+ return *i.APIToken
+}
+
+// GetOkAPIToken returns a tuple with the APIToken field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *integrationPD) GetAPITokenOk() (string, bool) {
+ if i == nil || i.APIToken == nil {
+ return "", false
+ }
+ return *i.APIToken, true
+}
+
+// HasAPIToken returns a boolean if a field has been set.
+func (i *integrationPD) HasAPIToken() bool {
+ if i != nil && i.APIToken != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAPIToken allocates a new i.APIToken and returns the pointer to it.
+func (i *integrationPD) SetAPIToken(v string) {
+ i.APIToken = &v
+}
+
+// GetSubdomain returns the Subdomain field if non-nil, zero value otherwise.
+func (i *integrationPD) GetSubdomain() string {
+ if i == nil || i.Subdomain == nil {
+ return ""
+ }
+ return *i.Subdomain
+}
+
+// GetOkSubdomain returns a tuple with the Subdomain field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *integrationPD) GetSubdomainOk() (string, bool) {
+ if i == nil || i.Subdomain == nil {
+ return "", false
+ }
+ return *i.Subdomain, true
+}
+
+// HasSubdomain returns a boolean if a field has been set.
+func (i *integrationPD) HasSubdomain() bool {
+ if i != nil && i.Subdomain != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSubdomain allocates a new i.Subdomain and returns the pointer to it.
+func (i *integrationPD) SetSubdomain(v string) {
+ i.Subdomain = &v
+}
+
+// GetAPIToken returns the APIToken field if non-nil, zero value otherwise.
+func (i *IntegrationPDRequest) GetAPIToken() string {
+ if i == nil || i.APIToken == nil {
+ return ""
+ }
+ return *i.APIToken
+}
+
+// GetOkAPIToken returns a tuple with the APIToken field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationPDRequest) GetAPITokenOk() (string, bool) {
+ if i == nil || i.APIToken == nil {
+ return "", false
+ }
+ return *i.APIToken, true
+}
+
+// HasAPIToken returns a boolean if a field has been set.
+func (i *IntegrationPDRequest) HasAPIToken() bool {
+ if i != nil && i.APIToken != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAPIToken allocates a new i.APIToken and returns the pointer to it.
+func (i *IntegrationPDRequest) SetAPIToken(v string) {
+ i.APIToken = &v
+}
+
+// GetRunCheck returns the RunCheck field if non-nil, zero value otherwise.
+func (i *IntegrationPDRequest) GetRunCheck() bool {
+ if i == nil || i.RunCheck == nil {
+ return false
+ }
+ return *i.RunCheck
+}
+
+// GetOkRunCheck returns a tuple with the RunCheck field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationPDRequest) GetRunCheckOk() (bool, bool) {
+ if i == nil || i.RunCheck == nil {
+ return false, false
+ }
+ return *i.RunCheck, true
+}
+
+// HasRunCheck returns a boolean if a field has been set.
+func (i *IntegrationPDRequest) HasRunCheck() bool {
+ if i != nil && i.RunCheck != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRunCheck allocates a new i.RunCheck and returns the pointer to it.
+func (i *IntegrationPDRequest) SetRunCheck(v bool) {
+ i.RunCheck = &v
+}
+
+// GetSubdomain returns the Subdomain field if non-nil, zero value otherwise.
+func (i *IntegrationPDRequest) GetSubdomain() string {
+ if i == nil || i.Subdomain == nil {
+ return ""
+ }
+ return *i.Subdomain
+}
+
+// GetOkSubdomain returns a tuple with the Subdomain field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationPDRequest) GetSubdomainOk() (string, bool) {
+ if i == nil || i.Subdomain == nil {
+ return "", false
+ }
+ return *i.Subdomain, true
+}
+
+// HasSubdomain returns a boolean if a field has been set.
+func (i *IntegrationPDRequest) HasSubdomain() bool {
+ if i != nil && i.Subdomain != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSubdomain allocates a new i.Subdomain and returns the pointer to it.
+func (i *IntegrationPDRequest) SetSubdomain(v string) {
+ i.Subdomain = &v
+}
+
+// GetRunCheck returns the RunCheck field if non-nil, zero value otherwise.
+func (i *IntegrationSlackRequest) GetRunCheck() bool {
+ if i == nil || i.RunCheck == nil {
+ return false
+ }
+ return *i.RunCheck
+}
+
+// GetOkRunCheck returns a tuple with the RunCheck field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (i *IntegrationSlackRequest) GetRunCheckOk() (bool, bool) {
+ if i == nil || i.RunCheck == nil {
+ return false, false
+ }
+ return *i.RunCheck, true
+}
+
+// HasRunCheck returns a boolean if a field has been set.
+func (i *IntegrationSlackRequest) HasRunCheck() bool {
+ if i != nil && i.RunCheck != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRunCheck allocates a new i.RunCheck and returns the pointer to it.
+func (i *IntegrationSlackRequest) SetRunCheck(v bool) {
+ i.RunCheck = &v
+}
+
+// GetHost returns the Host field if non-nil, zero value otherwise.
+func (m *Metric) GetHost() string {
+ if m == nil || m.Host == nil {
+ return ""
+ }
+ return *m.Host
+}
+
+// GetOkHost returns a tuple with the Host field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Metric) GetHostOk() (string, bool) {
+ if m == nil || m.Host == nil {
+ return "", false
+ }
+ return *m.Host, true
+}
+
+// HasHost returns a boolean if a field has been set.
+func (m *Metric) HasHost() bool {
+ if m != nil && m.Host != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHost allocates a new m.Host and returns the pointer to it.
+func (m *Metric) SetHost(v string) {
+ m.Host = &v
+}
+
+// GetMetric returns the Metric field if non-nil, zero value otherwise.
+func (m *Metric) GetMetric() string {
+ if m == nil || m.Metric == nil {
+ return ""
+ }
+ return *m.Metric
+}
+
+// GetOkMetric returns a tuple with the Metric field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Metric) GetMetricOk() (string, bool) {
+ if m == nil || m.Metric == nil {
+ return "", false
+ }
+ return *m.Metric, true
+}
+
+// HasMetric returns a boolean if a field has been set.
+func (m *Metric) HasMetric() bool {
+ if m != nil && m.Metric != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMetric allocates a new m.Metric and returns the pointer to it.
+func (m *Metric) SetMetric(v string) {
+ m.Metric = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (m *Metric) GetType() string {
+ if m == nil || m.Type == nil {
+ return ""
+ }
+ return *m.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Metric) GetTypeOk() (string, bool) {
+ if m == nil || m.Type == nil {
+ return "", false
+ }
+ return *m.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (m *Metric) HasType() bool {
+ if m != nil && m.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new m.Type and returns the pointer to it.
+func (m *Metric) SetType(v string) {
+ m.Type = &v
+}
+
+// GetUnit returns the Unit field if non-nil, zero value otherwise.
+func (m *Metric) GetUnit() string {
+ if m == nil || m.Unit == nil {
+ return ""
+ }
+ return *m.Unit
+}
+
+// GetOkUnit returns a tuple with the Unit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Metric) GetUnitOk() (string, bool) {
+ if m == nil || m.Unit == nil {
+ return "", false
+ }
+ return *m.Unit, true
+}
+
+// HasUnit returns a boolean if a field has been set.
+func (m *Metric) HasUnit() bool {
+ if m != nil && m.Unit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnit allocates a new m.Unit and returns the pointer to it.
+func (m *Metric) SetUnit(v string) {
+ m.Unit = &v
+}
+
+// GetDescription returns the Description field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetDescription() string {
+ if m == nil || m.Description == nil {
+ return ""
+ }
+ return *m.Description
+}
+
+// GetOkDescription returns a tuple with the Description field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetDescriptionOk() (string, bool) {
+ if m == nil || m.Description == nil {
+ return "", false
+ }
+ return *m.Description, true
+}
+
+// HasDescription returns a boolean if a field has been set.
+func (m *MetricMetadata) HasDescription() bool {
+ if m != nil && m.Description != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDescription allocates a new m.Description and returns the pointer to it.
+func (m *MetricMetadata) SetDescription(v string) {
+ m.Description = &v
+}
+
+// GetPerUnit returns the PerUnit field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetPerUnit() string {
+ if m == nil || m.PerUnit == nil {
+ return ""
+ }
+ return *m.PerUnit
+}
+
+// GetOkPerUnit returns a tuple with the PerUnit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetPerUnitOk() (string, bool) {
+ if m == nil || m.PerUnit == nil {
+ return "", false
+ }
+ return *m.PerUnit, true
+}
+
+// HasPerUnit returns a boolean if a field has been set.
+func (m *MetricMetadata) HasPerUnit() bool {
+ if m != nil && m.PerUnit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPerUnit allocates a new m.PerUnit and returns the pointer to it.
+func (m *MetricMetadata) SetPerUnit(v string) {
+ m.PerUnit = &v
+}
+
+// GetShortName returns the ShortName field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetShortName() string {
+ if m == nil || m.ShortName == nil {
+ return ""
+ }
+ return *m.ShortName
+}
+
+// GetOkShortName returns a tuple with the ShortName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetShortNameOk() (string, bool) {
+ if m == nil || m.ShortName == nil {
+ return "", false
+ }
+ return *m.ShortName, true
+}
+
+// HasShortName returns a boolean if a field has been set.
+func (m *MetricMetadata) HasShortName() bool {
+ if m != nil && m.ShortName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetShortName allocates a new m.ShortName and returns the pointer to it.
+func (m *MetricMetadata) SetShortName(v string) {
+ m.ShortName = &v
+}
+
+// GetStatsdInterval returns the StatsdInterval field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetStatsdInterval() int {
+ if m == nil || m.StatsdInterval == nil {
+ return 0
+ }
+ return *m.StatsdInterval
+}
+
+// GetOkStatsdInterval returns a tuple with the StatsdInterval field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetStatsdIntervalOk() (int, bool) {
+ if m == nil || m.StatsdInterval == nil {
+ return 0, false
+ }
+ return *m.StatsdInterval, true
+}
+
+// HasStatsdInterval returns a boolean if a field has been set.
+func (m *MetricMetadata) HasStatsdInterval() bool {
+ if m != nil && m.StatsdInterval != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStatsdInterval allocates a new m.StatsdInterval and returns the pointer to it.
+func (m *MetricMetadata) SetStatsdInterval(v int) {
+ m.StatsdInterval = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetType() string {
+ if m == nil || m.Type == nil {
+ return ""
+ }
+ return *m.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetTypeOk() (string, bool) {
+ if m == nil || m.Type == nil {
+ return "", false
+ }
+ return *m.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (m *MetricMetadata) HasType() bool {
+ if m != nil && m.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new m.Type and returns the pointer to it.
+func (m *MetricMetadata) SetType(v string) {
+ m.Type = &v
+}
+
+// GetUnit returns the Unit field if non-nil, zero value otherwise.
+func (m *MetricMetadata) GetUnit() string {
+ if m == nil || m.Unit == nil {
+ return ""
+ }
+ return *m.Unit
+}
+
+// GetOkUnit returns a tuple with the Unit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *MetricMetadata) GetUnitOk() (string, bool) {
+ if m == nil || m.Unit == nil {
+ return "", false
+ }
+ return *m.Unit, true
+}
+
+// HasUnit returns a boolean if a field has been set.
+func (m *MetricMetadata) HasUnit() bool {
+ if m != nil && m.Unit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnit allocates a new m.Unit and returns the pointer to it.
+func (m *MetricMetadata) SetUnit(v string) {
+ m.Unit = &v
+}
+
+// GetCreator returns the Creator field if non-nil, zero value otherwise.
+func (m *Monitor) GetCreator() Creator {
+ if m == nil || m.Creator == nil {
+ return Creator{}
+ }
+ return *m.Creator
+}
+
+// GetOkCreator returns a tuple with the Creator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetCreatorOk() (Creator, bool) {
+ if m == nil || m.Creator == nil {
+ return Creator{}, false
+ }
+ return *m.Creator, true
+}
+
+// HasCreator returns a boolean if a field has been set.
+func (m *Monitor) HasCreator() bool {
+ if m != nil && m.Creator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCreator allocates a new m.Creator and returns the pointer to it.
+func (m *Monitor) SetCreator(v Creator) {
+ m.Creator = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (m *Monitor) GetId() int {
+ if m == nil || m.Id == nil {
+ return 0
+ }
+ return *m.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetIdOk() (int, bool) {
+ if m == nil || m.Id == nil {
+ return 0, false
+ }
+ return *m.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (m *Monitor) HasId() bool {
+ if m != nil && m.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new m.Id and returns the pointer to it.
+func (m *Monitor) SetId(v int) {
+ m.Id = &v
+}
+
+// GetMessage returns the Message field if non-nil, zero value otherwise.
+func (m *Monitor) GetMessage() string {
+ if m == nil || m.Message == nil {
+ return ""
+ }
+ return *m.Message
+}
+
+// GetOkMessage returns a tuple with the Message field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetMessageOk() (string, bool) {
+ if m == nil || m.Message == nil {
+ return "", false
+ }
+ return *m.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (m *Monitor) HasMessage() bool {
+ if m != nil && m.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage allocates a new m.Message and returns the pointer to it.
+func (m *Monitor) SetMessage(v string) {
+ m.Message = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (m *Monitor) GetName() string {
+ if m == nil || m.Name == nil {
+ return ""
+ }
+ return *m.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetNameOk() (string, bool) {
+ if m == nil || m.Name == nil {
+ return "", false
+ }
+ return *m.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (m *Monitor) HasName() bool {
+ if m != nil && m.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new m.Name and returns the pointer to it.
+func (m *Monitor) SetName(v string) {
+ m.Name = &v
+}
+
+// GetOptions returns the Options field if non-nil, zero value otherwise.
+func (m *Monitor) GetOptions() Options {
+ if m == nil || m.Options == nil {
+ return Options{}
+ }
+ return *m.Options
+}
+
+// GetOkOptions returns a tuple with the Options field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetOptionsOk() (Options, bool) {
+ if m == nil || m.Options == nil {
+ return Options{}, false
+ }
+ return *m.Options, true
+}
+
+// HasOptions returns a boolean if a field has been set.
+func (m *Monitor) HasOptions() bool {
+ if m != nil && m.Options != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOptions allocates a new m.Options and returns the pointer to it.
+func (m *Monitor) SetOptions(v Options) {
+ m.Options = &v
+}
+
+// GetOverallState returns the OverallState field if non-nil, zero value otherwise.
+func (m *Monitor) GetOverallState() string {
+ if m == nil || m.OverallState == nil {
+ return ""
+ }
+ return *m.OverallState
+}
+
+// GetOkOverallState returns a tuple with the OverallState field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetOverallStateOk() (string, bool) {
+ if m == nil || m.OverallState == nil {
+ return "", false
+ }
+ return *m.OverallState, true
+}
+
+// HasOverallState returns a boolean if a field has been set.
+func (m *Monitor) HasOverallState() bool {
+ if m != nil && m.OverallState != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOverallState allocates a new m.OverallState and returns the pointer to it.
+func (m *Monitor) SetOverallState(v string) {
+ m.OverallState = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (m *Monitor) GetQuery() string {
+ if m == nil || m.Query == nil {
+ return ""
+ }
+ return *m.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetQueryOk() (string, bool) {
+ if m == nil || m.Query == nil {
+ return "", false
+ }
+ return *m.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (m *Monitor) HasQuery() bool {
+ if m != nil && m.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new m.Query and returns the pointer to it.
+func (m *Monitor) SetQuery(v string) {
+ m.Query = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (m *Monitor) GetType() string {
+ if m == nil || m.Type == nil {
+ return ""
+ }
+ return *m.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (m *Monitor) GetTypeOk() (string, bool) {
+ if m == nil || m.Type == nil {
+ return "", false
+ }
+ return *m.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (m *Monitor) HasType() bool {
+ if m != nil && m.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new m.Type and returns the pointer to it.
+func (m *Monitor) SetType(v string) {
+ m.Type = &v
+}
+
+// GetAutoRefresh returns the AutoRefresh field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetAutoRefresh() bool {
+ if n == nil || n.AutoRefresh == nil {
+ return false
+ }
+ return *n.AutoRefresh
+}
+
+// GetOkAutoRefresh returns a tuple with the AutoRefresh field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetAutoRefreshOk() (bool, bool) {
+ if n == nil || n.AutoRefresh == nil {
+ return false, false
+ }
+ return *n.AutoRefresh, true
+}
+
+// HasAutoRefresh returns a boolean if a field has been set.
+func (n *NoteWidget) HasAutoRefresh() bool {
+ if n != nil && n.AutoRefresh != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAutoRefresh allocates a new n.AutoRefresh and returns the pointer to it.
+func (n *NoteWidget) SetAutoRefresh(v bool) {
+ n.AutoRefresh = &v
+}
+
+// GetColor returns the Color field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetColor() string {
+ if n == nil || n.Color == nil {
+ return ""
+ }
+ return *n.Color
+}
+
+// GetOkColor returns a tuple with the Color field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetColorOk() (string, bool) {
+ if n == nil || n.Color == nil {
+ return "", false
+ }
+ return *n.Color, true
+}
+
+// HasColor returns a boolean if a field has been set.
+func (n *NoteWidget) HasColor() bool {
+ if n != nil && n.Color != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetColor allocates a new n.Color and returns the pointer to it.
+func (n *NoteWidget) SetColor(v string) {
+ n.Color = &v
+}
+
+// GetFontSize returns the FontSize field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetFontSize() int {
+ if n == nil || n.FontSize == nil {
+ return 0
+ }
+ return *n.FontSize
+}
+
+// GetOkFontSize returns a tuple with the FontSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetFontSizeOk() (int, bool) {
+ if n == nil || n.FontSize == nil {
+ return 0, false
+ }
+ return *n.FontSize, true
+}
+
+// HasFontSize returns a boolean if a field has been set.
+func (n *NoteWidget) HasFontSize() bool {
+ if n != nil && n.FontSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetFontSize allocates a new n.FontSize and returns the pointer to it.
+func (n *NoteWidget) SetFontSize(v int) {
+ n.FontSize = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetHeight() int {
+ if n == nil || n.Height == nil {
+ return 0
+ }
+ return *n.Height
+}
+
+// GetOkHeight 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 (n *NoteWidget) GetHeightOk() (int, bool) {
+ if n == nil || n.Height == nil {
+ return 0, false
+ }
+ return *n.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (n *NoteWidget) HasHeight() bool {
+ if n != nil && n.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new n.Height and returns the pointer to it.
+func (n *NoteWidget) SetHeight(v int) {
+ n.Height = &v
+}
+
+// GetHtml returns the Html field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetHtml() string {
+ if n == nil || n.Html == nil {
+ return ""
+ }
+ return *n.Html
+}
+
+// GetOkHtml returns a tuple with the Html field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetHtmlOk() (string, bool) {
+ if n == nil || n.Html == nil {
+ return "", false
+ }
+ return *n.Html, true
+}
+
+// HasHtml returns a boolean if a field has been set.
+func (n *NoteWidget) HasHtml() bool {
+ if n != nil && n.Html != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHtml allocates a new n.Html and returns the pointer to it.
+func (n *NoteWidget) SetHtml(v string) {
+ n.Html = &v
+}
+
+// GetNote returns the Note field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetNote() string {
+ if n == nil || n.Note == nil {
+ return ""
+ }
+ return *n.Note
+}
+
+// GetOkNote returns a tuple with the Note field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetNoteOk() (string, bool) {
+ if n == nil || n.Note == nil {
+ return "", false
+ }
+ return *n.Note, true
+}
+
+// HasNote returns a boolean if a field has been set.
+func (n *NoteWidget) HasNote() bool {
+ if n != nil && n.Note != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNote allocates a new n.Note and returns the pointer to it.
+func (n *NoteWidget) SetNote(v string) {
+ n.Note = &v
+}
+
+// GetRefreshEvery returns the RefreshEvery field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetRefreshEvery() int {
+ if n == nil || n.RefreshEvery == nil {
+ return 0
+ }
+ return *n.RefreshEvery
+}
+
+// GetOkRefreshEvery returns a tuple with the RefreshEvery field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetRefreshEveryOk() (int, bool) {
+ if n == nil || n.RefreshEvery == nil {
+ return 0, false
+ }
+ return *n.RefreshEvery, true
+}
+
+// HasRefreshEvery returns a boolean if a field has been set.
+func (n *NoteWidget) HasRefreshEvery() bool {
+ if n != nil && n.RefreshEvery != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRefreshEvery allocates a new n.RefreshEvery and returns the pointer to it.
+func (n *NoteWidget) SetRefreshEvery(v int) {
+ n.RefreshEvery = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTextAlign() string {
+ if n == nil || n.TextAlign == nil {
+ return ""
+ }
+ return *n.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTextAlignOk() (string, bool) {
+ if n == nil || n.TextAlign == nil {
+ return "", false
+ }
+ return *n.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (n *NoteWidget) HasTextAlign() bool {
+ if n != nil && n.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new n.TextAlign and returns the pointer to it.
+func (n *NoteWidget) SetTextAlign(v string) {
+ n.TextAlign = &v
+}
+
+// GetTick returns the Tick field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTick() bool {
+ if n == nil || n.Tick == nil {
+ return false
+ }
+ return *n.Tick
+}
+
+// GetOkTick returns a tuple with the Tick field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTickOk() (bool, bool) {
+ if n == nil || n.Tick == nil {
+ return false, false
+ }
+ return *n.Tick, true
+}
+
+// HasTick returns a boolean if a field has been set.
+func (n *NoteWidget) HasTick() bool {
+ if n != nil && n.Tick != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTick allocates a new n.Tick and returns the pointer to it.
+func (n *NoteWidget) SetTick(v bool) {
+ n.Tick = &v
+}
+
+// GetTickEdge returns the TickEdge field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTickEdge() string {
+ if n == nil || n.TickEdge == nil {
+ return ""
+ }
+ return *n.TickEdge
+}
+
+// GetOkTickEdge returns a tuple with the TickEdge field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTickEdgeOk() (string, bool) {
+ if n == nil || n.TickEdge == nil {
+ return "", false
+ }
+ return *n.TickEdge, true
+}
+
+// HasTickEdge returns a boolean if a field has been set.
+func (n *NoteWidget) HasTickEdge() bool {
+ if n != nil && n.TickEdge != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTickEdge allocates a new n.TickEdge and returns the pointer to it.
+func (n *NoteWidget) SetTickEdge(v string) {
+ n.TickEdge = &v
+}
+
+// GetTickPos returns the TickPos field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTickPos() string {
+ if n == nil || n.TickPos == nil {
+ return ""
+ }
+ return *n.TickPos
+}
+
+// GetOkTickPos returns a tuple with the TickPos field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTickPosOk() (string, bool) {
+ if n == nil || n.TickPos == nil {
+ return "", false
+ }
+ return *n.TickPos, true
+}
+
+// HasTickPos returns a boolean if a field has been set.
+func (n *NoteWidget) HasTickPos() bool {
+ if n != nil && n.TickPos != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTickPos allocates a new n.TickPos and returns the pointer to it.
+func (n *NoteWidget) SetTickPos(v string) {
+ n.TickPos = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTitle() bool {
+ if n == nil || n.Title == nil {
+ return false
+ }
+ return *n.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTitleOk() (bool, bool) {
+ if n == nil || n.Title == nil {
+ return false, false
+ }
+ return *n.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (n *NoteWidget) HasTitle() bool {
+ if n != nil && n.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new n.Title and returns the pointer to it.
+func (n *NoteWidget) SetTitle(v bool) {
+ n.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTitleAlign() string {
+ if n == nil || n.TitleAlign == nil {
+ return ""
+ }
+ return *n.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTitleAlignOk() (string, bool) {
+ if n == nil || n.TitleAlign == nil {
+ return "", false
+ }
+ return *n.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (n *NoteWidget) HasTitleAlign() bool {
+ if n != nil && n.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new n.TitleAlign and returns the pointer to it.
+func (n *NoteWidget) SetTitleAlign(v string) {
+ n.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTitleSize() int {
+ if n == nil || n.TitleSize == nil {
+ return 0
+ }
+ return *n.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTitleSizeOk() (int, bool) {
+ if n == nil || n.TitleSize == nil {
+ return 0, false
+ }
+ return *n.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (n *NoteWidget) HasTitleSize() bool {
+ if n != nil && n.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new n.TitleSize and returns the pointer to it.
+func (n *NoteWidget) SetTitleSize(v int) {
+ n.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetTitleText() string {
+ if n == nil || n.TitleText == nil {
+ return ""
+ }
+ return *n.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetTitleTextOk() (string, bool) {
+ if n == nil || n.TitleText == nil {
+ return "", false
+ }
+ return *n.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (n *NoteWidget) HasTitleText() bool {
+ if n != nil && n.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new n.TitleText and returns the pointer to it.
+func (n *NoteWidget) SetTitleText(v string) {
+ n.TitleText = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetWidth() int {
+ if n == nil || n.Width == nil {
+ return 0
+ }
+ return *n.Width
+}
+
+// GetOkWidth 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 (n *NoteWidget) GetWidthOk() (int, bool) {
+ if n == nil || n.Width == nil {
+ return 0, false
+ }
+ return *n.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (n *NoteWidget) HasWidth() bool {
+ if n != nil && n.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new n.Width and returns the pointer to it.
+func (n *NoteWidget) SetWidth(v int) {
+ n.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetX() int {
+ if n == nil || n.X == nil {
+ return 0
+ }
+ return *n.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetXOk() (int, bool) {
+ if n == nil || n.X == nil {
+ return 0, false
+ }
+ return *n.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (n *NoteWidget) HasX() bool {
+ if n != nil && n.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new n.X and returns the pointer to it.
+func (n *NoteWidget) SetX(v int) {
+ n.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (n *NoteWidget) GetY() int {
+ if n == nil || n.Y == nil {
+ return 0
+ }
+ return *n.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (n *NoteWidget) GetYOk() (int, bool) {
+ if n == nil || n.Y == nil {
+ return 0, false
+ }
+ return *n.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (n *NoteWidget) HasY() bool {
+ if n != nil && n.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new n.Y and returns the pointer to it.
+func (n *NoteWidget) SetY(v int) {
+ n.Y = &v
+}
+
+// GetEscalationMessage returns the EscalationMessage field if non-nil, zero value otherwise.
+func (o *Options) GetEscalationMessage() string {
+ if o == nil || o.EscalationMessage == nil {
+ return ""
+ }
+ return *o.EscalationMessage
+}
+
+// GetOkEscalationMessage returns a tuple with the EscalationMessage field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetEscalationMessageOk() (string, bool) {
+ if o == nil || o.EscalationMessage == nil {
+ return "", false
+ }
+ return *o.EscalationMessage, true
+}
+
+// HasEscalationMessage returns a boolean if a field has been set.
+func (o *Options) HasEscalationMessage() bool {
+ if o != nil && o.EscalationMessage != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEscalationMessage allocates a new o.EscalationMessage and returns the pointer to it.
+func (o *Options) SetEscalationMessage(v string) {
+ o.EscalationMessage = &v
+}
+
+// GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.
+func (o *Options) GetEvaluationDelay() int {
+ if o == nil || o.EvaluationDelay == nil {
+ return 0
+ }
+ return *o.EvaluationDelay
+}
+
+// GetOkEvaluationDelay returns a tuple with the EvaluationDelay field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetEvaluationDelayOk() (int, bool) {
+ if o == nil || o.EvaluationDelay == nil {
+ return 0, false
+ }
+ return *o.EvaluationDelay, true
+}
+
+// HasEvaluationDelay returns a boolean if a field has been set.
+func (o *Options) HasEvaluationDelay() bool {
+ if o != nil && o.EvaluationDelay != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEvaluationDelay allocates a new o.EvaluationDelay and returns the pointer to it.
+func (o *Options) SetEvaluationDelay(v int) {
+ o.EvaluationDelay = &v
+}
+
+// GetIncludeTags returns the IncludeTags field if non-nil, zero value otherwise.
+func (o *Options) GetIncludeTags() bool {
+ if o == nil || o.IncludeTags == nil {
+ return false
+ }
+ return *o.IncludeTags
+}
+
+// GetOkIncludeTags returns a tuple with the IncludeTags field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetIncludeTagsOk() (bool, bool) {
+ if o == nil || o.IncludeTags == nil {
+ return false, false
+ }
+ return *o.IncludeTags, true
+}
+
+// HasIncludeTags returns a boolean if a field has been set.
+func (o *Options) HasIncludeTags() bool {
+ if o != nil && o.IncludeTags != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIncludeTags allocates a new o.IncludeTags and returns the pointer to it.
+func (o *Options) SetIncludeTags(v bool) {
+ o.IncludeTags = &v
+}
+
+// GetLocked returns the Locked field if non-nil, zero value otherwise.
+func (o *Options) GetLocked() bool {
+ if o == nil || o.Locked == nil {
+ return false
+ }
+ return *o.Locked
+}
+
+// GetOkLocked returns a tuple with the Locked field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetLockedOk() (bool, bool) {
+ if o == nil || o.Locked == nil {
+ return false, false
+ }
+ return *o.Locked, true
+}
+
+// HasLocked returns a boolean if a field has been set.
+func (o *Options) HasLocked() bool {
+ if o != nil && o.Locked != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLocked allocates a new o.Locked and returns the pointer to it.
+func (o *Options) SetLocked(v bool) {
+ o.Locked = &v
+}
+
+// GetNewHostDelay returns the NewHostDelay field if non-nil, zero value otherwise.
+func (o *Options) GetNewHostDelay() int {
+ if o == nil || o.NewHostDelay == nil {
+ return 0
+ }
+ return *o.NewHostDelay
+}
+
+// GetOkNewHostDelay returns a tuple with the NewHostDelay field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetNewHostDelayOk() (int, bool) {
+ if o == nil || o.NewHostDelay == nil {
+ return 0, false
+ }
+ return *o.NewHostDelay, true
+}
+
+// HasNewHostDelay returns a boolean if a field has been set.
+func (o *Options) HasNewHostDelay() bool {
+ if o != nil && o.NewHostDelay != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNewHostDelay allocates a new o.NewHostDelay and returns the pointer to it.
+func (o *Options) SetNewHostDelay(v int) {
+ o.NewHostDelay = &v
+}
+
+// GetNotifyAudit returns the NotifyAudit field if non-nil, zero value otherwise.
+func (o *Options) GetNotifyAudit() bool {
+ if o == nil || o.NotifyAudit == nil {
+ return false
+ }
+ return *o.NotifyAudit
+}
+
+// GetOkNotifyAudit returns a tuple with the NotifyAudit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetNotifyAuditOk() (bool, bool) {
+ if o == nil || o.NotifyAudit == nil {
+ return false, false
+ }
+ return *o.NotifyAudit, true
+}
+
+// HasNotifyAudit returns a boolean if a field has been set.
+func (o *Options) HasNotifyAudit() bool {
+ if o != nil && o.NotifyAudit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNotifyAudit allocates a new o.NotifyAudit and returns the pointer to it.
+func (o *Options) SetNotifyAudit(v bool) {
+ o.NotifyAudit = &v
+}
+
+// GetNotifyNoData returns the NotifyNoData field if non-nil, zero value otherwise.
+func (o *Options) GetNotifyNoData() bool {
+ if o == nil || o.NotifyNoData == nil {
+ return false
+ }
+ return *o.NotifyNoData
+}
+
+// GetOkNotifyNoData returns a tuple with the NotifyNoData field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetNotifyNoDataOk() (bool, bool) {
+ if o == nil || o.NotifyNoData == nil {
+ return false, false
+ }
+ return *o.NotifyNoData, true
+}
+
+// HasNotifyNoData returns a boolean if a field has been set.
+func (o *Options) HasNotifyNoData() bool {
+ if o != nil && o.NotifyNoData != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNotifyNoData allocates a new o.NotifyNoData and returns the pointer to it.
+func (o *Options) SetNotifyNoData(v bool) {
+ o.NotifyNoData = &v
+}
+
+// GetRenotifyInterval returns the RenotifyInterval field if non-nil, zero value otherwise.
+func (o *Options) GetRenotifyInterval() int {
+ if o == nil || o.RenotifyInterval == nil {
+ return 0
+ }
+ return *o.RenotifyInterval
+}
+
+// GetOkRenotifyInterval returns a tuple with the RenotifyInterval field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetRenotifyIntervalOk() (int, bool) {
+ if o == nil || o.RenotifyInterval == nil {
+ return 0, false
+ }
+ return *o.RenotifyInterval, true
+}
+
+// HasRenotifyInterval returns a boolean if a field has been set.
+func (o *Options) HasRenotifyInterval() bool {
+ if o != nil && o.RenotifyInterval != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRenotifyInterval allocates a new o.RenotifyInterval and returns the pointer to it.
+func (o *Options) SetRenotifyInterval(v int) {
+ o.RenotifyInterval = &v
+}
+
+// GetRequireFullWindow returns the RequireFullWindow field if non-nil, zero value otherwise.
+func (o *Options) GetRequireFullWindow() bool {
+ if o == nil || o.RequireFullWindow == nil {
+ return false
+ }
+ return *o.RequireFullWindow
+}
+
+// GetOkRequireFullWindow returns a tuple with the RequireFullWindow field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetRequireFullWindowOk() (bool, bool) {
+ if o == nil || o.RequireFullWindow == nil {
+ return false, false
+ }
+ return *o.RequireFullWindow, true
+}
+
+// HasRequireFullWindow returns a boolean if a field has been set.
+func (o *Options) HasRequireFullWindow() bool {
+ if o != nil && o.RequireFullWindow != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRequireFullWindow allocates a new o.RequireFullWindow and returns the pointer to it.
+func (o *Options) SetRequireFullWindow(v bool) {
+ o.RequireFullWindow = &v
+}
+
+// GetThresholds returns the Thresholds field if non-nil, zero value otherwise.
+func (o *Options) GetThresholds() ThresholdCount {
+ if o == nil || o.Thresholds == nil {
+ return ThresholdCount{}
+ }
+ return *o.Thresholds
+}
+
+// GetOkThresholds returns a tuple with the Thresholds field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetThresholdsOk() (ThresholdCount, bool) {
+ if o == nil || o.Thresholds == nil {
+ return ThresholdCount{}, false
+ }
+ return *o.Thresholds, true
+}
+
+// HasThresholds returns a boolean if a field has been set.
+func (o *Options) HasThresholds() bool {
+ if o != nil && o.Thresholds != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetThresholds allocates a new o.Thresholds and returns the pointer to it.
+func (o *Options) SetThresholds(v ThresholdCount) {
+ o.Thresholds = &v
+}
+
+// GetTimeoutH returns the TimeoutH field if non-nil, zero value otherwise.
+func (o *Options) GetTimeoutH() int {
+ if o == nil || o.TimeoutH == nil {
+ return 0
+ }
+ return *o.TimeoutH
+}
+
+// GetOkTimeoutH returns a tuple with the TimeoutH field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (o *Options) GetTimeoutHOk() (int, bool) {
+ if o == nil || o.TimeoutH == nil {
+ return 0, false
+ }
+ return *o.TimeoutH, true
+}
+
+// HasTimeoutH returns a boolean if a field has been set.
+func (o *Options) HasTimeoutH() bool {
+ if o != nil && o.TimeoutH != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeoutH allocates a new o.TimeoutH and returns the pointer to it.
+func (o *Options) SetTimeoutH(v int) {
+ o.TimeoutH = &v
+}
+
+// GetAggregator returns the Aggregator field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetAggregator() string {
+ if q == nil || q.Aggregator == nil {
+ return ""
+ }
+ return *q.Aggregator
+}
+
+// GetOkAggregator returns a tuple with the Aggregator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetAggregatorOk() (string, bool) {
+ if q == nil || q.Aggregator == nil {
+ return "", false
+ }
+ return *q.Aggregator, true
+}
+
+// HasAggregator returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasAggregator() bool {
+ if q != nil && q.Aggregator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAggregator allocates a new q.Aggregator and returns the pointer to it.
+func (q *QueryValueWidget) SetAggregator(v string) {
+ q.Aggregator = &v
+}
+
+// GetCalcFunc returns the CalcFunc field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetCalcFunc() string {
+ if q == nil || q.CalcFunc == nil {
+ return ""
+ }
+ return *q.CalcFunc
+}
+
+// GetOkCalcFunc returns a tuple with the CalcFunc field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetCalcFuncOk() (string, bool) {
+ if q == nil || q.CalcFunc == nil {
+ return "", false
+ }
+ return *q.CalcFunc, true
+}
+
+// HasCalcFunc returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasCalcFunc() bool {
+ if q != nil && q.CalcFunc != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCalcFunc allocates a new q.CalcFunc and returns the pointer to it.
+func (q *QueryValueWidget) SetCalcFunc(v string) {
+ q.CalcFunc = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetHeight() int {
+ if q == nil || q.Height == nil {
+ return 0
+ }
+ return *q.Height
+}
+
+// GetOkHeight 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 (q *QueryValueWidget) GetHeightOk() (int, bool) {
+ if q == nil || q.Height == nil {
+ return 0, false
+ }
+ return *q.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasHeight() bool {
+ if q != nil && q.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new q.Height and returns the pointer to it.
+func (q *QueryValueWidget) SetHeight(v int) {
+ q.Height = &v
+}
+
+// GetIsValidQuery returns the IsValidQuery field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetIsValidQuery() bool {
+ if q == nil || q.IsValidQuery == nil {
+ return false
+ }
+ return *q.IsValidQuery
+}
+
+// GetOkIsValidQuery returns a tuple with the IsValidQuery field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetIsValidQueryOk() (bool, bool) {
+ if q == nil || q.IsValidQuery == nil {
+ return false, false
+ }
+ return *q.IsValidQuery, true
+}
+
+// HasIsValidQuery returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasIsValidQuery() bool {
+ if q != nil && q.IsValidQuery != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIsValidQuery allocates a new q.IsValidQuery and returns the pointer to it.
+func (q *QueryValueWidget) SetIsValidQuery(v bool) {
+ q.IsValidQuery = &v
+}
+
+// GetMetric returns the Metric field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetMetric() string {
+ if q == nil || q.Metric == nil {
+ return ""
+ }
+ return *q.Metric
+}
+
+// GetOkMetric returns a tuple with the Metric field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetMetricOk() (string, bool) {
+ if q == nil || q.Metric == nil {
+ return "", false
+ }
+ return *q.Metric, true
+}
+
+// HasMetric returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasMetric() bool {
+ if q != nil && q.Metric != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMetric allocates a new q.Metric and returns the pointer to it.
+func (q *QueryValueWidget) SetMetric(v string) {
+ q.Metric = &v
+}
+
+// GetMetricType returns the MetricType field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetMetricType() string {
+ if q == nil || q.MetricType == nil {
+ return ""
+ }
+ return *q.MetricType
+}
+
+// GetOkMetricType returns a tuple with the MetricType field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetMetricTypeOk() (string, bool) {
+ if q == nil || q.MetricType == nil {
+ return "", false
+ }
+ return *q.MetricType, true
+}
+
+// HasMetricType returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasMetricType() bool {
+ if q != nil && q.MetricType != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMetricType allocates a new q.MetricType and returns the pointer to it.
+func (q *QueryValueWidget) SetMetricType(v string) {
+ q.MetricType = &v
+}
+
+// GetPrecision returns the Precision field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetPrecision() int {
+ if q == nil || q.Precision == nil {
+ return 0
+ }
+ return *q.Precision
+}
+
+// GetOkPrecision returns a tuple with the Precision field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetPrecisionOk() (int, bool) {
+ if q == nil || q.Precision == nil {
+ return 0, false
+ }
+ return *q.Precision, true
+}
+
+// HasPrecision returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasPrecision() bool {
+ if q != nil && q.Precision != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPrecision allocates a new q.Precision and returns the pointer to it.
+func (q *QueryValueWidget) SetPrecision(v int) {
+ q.Precision = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetQuery() string {
+ if q == nil || q.Query == nil {
+ return ""
+ }
+ return *q.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetQueryOk() (string, bool) {
+ if q == nil || q.Query == nil {
+ return "", false
+ }
+ return *q.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasQuery() bool {
+ if q != nil && q.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new q.Query and returns the pointer to it.
+func (q *QueryValueWidget) SetQuery(v string) {
+ q.Query = &v
+}
+
+// GetResultCalcFunc returns the ResultCalcFunc field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetResultCalcFunc() string {
+ if q == nil || q.ResultCalcFunc == nil {
+ return ""
+ }
+ return *q.ResultCalcFunc
+}
+
+// GetOkResultCalcFunc returns a tuple with the ResultCalcFunc field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetResultCalcFuncOk() (string, bool) {
+ if q == nil || q.ResultCalcFunc == nil {
+ return "", false
+ }
+ return *q.ResultCalcFunc, true
+}
+
+// HasResultCalcFunc returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasResultCalcFunc() bool {
+ if q != nil && q.ResultCalcFunc != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResultCalcFunc allocates a new q.ResultCalcFunc and returns the pointer to it.
+func (q *QueryValueWidget) SetResultCalcFunc(v string) {
+ q.ResultCalcFunc = &v
+}
+
+// GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTextAlign() string {
+ if q == nil || q.TextAlign == nil {
+ return ""
+ }
+ return *q.TextAlign
+}
+
+// GetOkTextAlign returns a tuple with the TextAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTextAlignOk() (string, bool) {
+ if q == nil || q.TextAlign == nil {
+ return "", false
+ }
+ return *q.TextAlign, true
+}
+
+// HasTextAlign returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTextAlign() bool {
+ if q != nil && q.TextAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextAlign allocates a new q.TextAlign and returns the pointer to it.
+func (q *QueryValueWidget) SetTextAlign(v string) {
+ q.TextAlign = &v
+}
+
+// GetTextSize returns the TextSize field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTextSize() TextSize {
+ if q == nil || q.TextSize == nil {
+ return TextSize{}
+ }
+ return *q.TextSize
+}
+
+// GetOkTextSize returns a tuple with the TextSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTextSizeOk() (TextSize, bool) {
+ if q == nil || q.TextSize == nil {
+ return TextSize{}, false
+ }
+ return *q.TextSize, true
+}
+
+// HasTextSize returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTextSize() bool {
+ if q != nil && q.TextSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTextSize allocates a new q.TextSize and returns the pointer to it.
+func (q *QueryValueWidget) SetTextSize(v TextSize) {
+ q.TextSize = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTimeframe() string {
+ if q == nil || q.Timeframe == nil {
+ return ""
+ }
+ return *q.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTimeframeOk() (string, bool) {
+ if q == nil || q.Timeframe == nil {
+ return "", false
+ }
+ return *q.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTimeframe() bool {
+ if q != nil && q.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new q.Timeframe and returns the pointer to it.
+func (q *QueryValueWidget) SetTimeframe(v string) {
+ q.Timeframe = &v
+}
+
+// GetTimeframeAggregator returns the TimeframeAggregator field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTimeframeAggregator() string {
+ if q == nil || q.TimeframeAggregator == nil {
+ return ""
+ }
+ return *q.TimeframeAggregator
+}
+
+// GetOkTimeframeAggregator returns a tuple with the TimeframeAggregator field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTimeframeAggregatorOk() (string, bool) {
+ if q == nil || q.TimeframeAggregator == nil {
+ return "", false
+ }
+ return *q.TimeframeAggregator, true
+}
+
+// HasTimeframeAggregator returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTimeframeAggregator() bool {
+ if q != nil && q.TimeframeAggregator != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframeAggregator allocates a new q.TimeframeAggregator and returns the pointer to it.
+func (q *QueryValueWidget) SetTimeframeAggregator(v string) {
+ q.TimeframeAggregator = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTitle() bool {
+ if q == nil || q.Title == nil {
+ return false
+ }
+ return *q.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTitleOk() (bool, bool) {
+ if q == nil || q.Title == nil {
+ return false, false
+ }
+ return *q.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTitle() bool {
+ if q != nil && q.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new q.Title and returns the pointer to it.
+func (q *QueryValueWidget) SetTitle(v bool) {
+ q.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTitleAlign() string {
+ if q == nil || q.TitleAlign == nil {
+ return ""
+ }
+ return *q.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTitleAlignOk() (string, bool) {
+ if q == nil || q.TitleAlign == nil {
+ return "", false
+ }
+ return *q.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTitleAlign() bool {
+ if q != nil && q.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new q.TitleAlign and returns the pointer to it.
+func (q *QueryValueWidget) SetTitleAlign(v string) {
+ q.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTitleSize() TextSize {
+ if q == nil || q.TitleSize == nil {
+ return TextSize{}
+ }
+ return *q.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTitleSizeOk() (TextSize, bool) {
+ if q == nil || q.TitleSize == nil {
+ return TextSize{}, false
+ }
+ return *q.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTitleSize() bool {
+ if q != nil && q.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new q.TitleSize and returns the pointer to it.
+func (q *QueryValueWidget) SetTitleSize(v TextSize) {
+ q.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetTitleText() string {
+ if q == nil || q.TitleText == nil {
+ return ""
+ }
+ return *q.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTitleTextOk() (string, bool) {
+ if q == nil || q.TitleText == nil {
+ return "", false
+ }
+ return *q.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasTitleText() bool {
+ if q != nil && q.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new q.TitleText and returns the pointer to it.
+func (q *QueryValueWidget) SetTitleText(v string) {
+ q.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetType() string {
+ if q == nil || q.Type == nil {
+ return ""
+ }
+ return *q.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetTypeOk() (string, bool) {
+ if q == nil || q.Type == nil {
+ return "", false
+ }
+ return *q.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasType() bool {
+ if q != nil && q.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new q.Type and returns the pointer to it.
+func (q *QueryValueWidget) SetType(v string) {
+ q.Type = &v
+}
+
+// GetUnit returns the Unit field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetUnit() string {
+ if q == nil || q.Unit == nil {
+ return ""
+ }
+ return *q.Unit
+}
+
+// GetOkUnit returns a tuple with the Unit field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetUnitOk() (string, bool) {
+ if q == nil || q.Unit == nil {
+ return "", false
+ }
+ return *q.Unit, true
+}
+
+// HasUnit returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasUnit() bool {
+ if q != nil && q.Unit != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnit allocates a new q.Unit and returns the pointer to it.
+func (q *QueryValueWidget) SetUnit(v string) {
+ q.Unit = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetWidth() int {
+ if q == nil || q.Width == nil {
+ return 0
+ }
+ return *q.Width
+}
+
+// GetOkWidth 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 (q *QueryValueWidget) GetWidthOk() (int, bool) {
+ if q == nil || q.Width == nil {
+ return 0, false
+ }
+ return *q.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasWidth() bool {
+ if q != nil && q.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new q.Width and returns the pointer to it.
+func (q *QueryValueWidget) SetWidth(v int) {
+ q.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetX() int {
+ if q == nil || q.X == nil {
+ return 0
+ }
+ return *q.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetXOk() (int, bool) {
+ if q == nil || q.X == nil {
+ return 0, false
+ }
+ return *q.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasX() bool {
+ if q != nil && q.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new q.X and returns the pointer to it.
+func (q *QueryValueWidget) SetX(v int) {
+ q.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (q *QueryValueWidget) GetY() int {
+ if q == nil || q.Y == nil {
+ return 0
+ }
+ return *q.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (q *QueryValueWidget) GetYOk() (int, bool) {
+ if q == nil || q.Y == nil {
+ return 0, false
+ }
+ return *q.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (q *QueryValueWidget) HasY() bool {
+ if q != nil && q.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new q.Y and returns the pointer to it.
+func (q *QueryValueWidget) SetY(v int) {
+ q.Y = &v
+}
+
+// GetPeriod returns the Period field if non-nil, zero value otherwise.
+func (r *Recurrence) GetPeriod() int {
+ if r == nil || r.Period == nil {
+ return 0
+ }
+ return *r.Period
+}
+
+// GetOkPeriod returns a tuple with the Period field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *Recurrence) GetPeriodOk() (int, bool) {
+ if r == nil || r.Period == nil {
+ return 0, false
+ }
+ return *r.Period, true
+}
+
+// HasPeriod returns a boolean if a field has been set.
+func (r *Recurrence) HasPeriod() bool {
+ if r != nil && r.Period != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPeriod allocates a new r.Period and returns the pointer to it.
+func (r *Recurrence) SetPeriod(v int) {
+ r.Period = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (r *Recurrence) GetType() string {
+ if r == nil || r.Type == nil {
+ return ""
+ }
+ return *r.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *Recurrence) GetTypeOk() (string, bool) {
+ if r == nil || r.Type == nil {
+ return "", false
+ }
+ return *r.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (r *Recurrence) HasType() bool {
+ if r != nil && r.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new r.Type and returns the pointer to it.
+func (r *Recurrence) SetType(v string) {
+ r.Type = &v
+}
+
+// GetUntilDate returns the UntilDate field if non-nil, zero value otherwise.
+func (r *Recurrence) GetUntilDate() int {
+ if r == nil || r.UntilDate == nil {
+ return 0
+ }
+ return *r.UntilDate
+}
+
+// GetOkUntilDate returns a tuple with the UntilDate field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *Recurrence) GetUntilDateOk() (int, bool) {
+ if r == nil || r.UntilDate == nil {
+ return 0, false
+ }
+ return *r.UntilDate, true
+}
+
+// HasUntilDate returns a boolean if a field has been set.
+func (r *Recurrence) HasUntilDate() bool {
+ if r != nil && r.UntilDate != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUntilDate allocates a new r.UntilDate and returns the pointer to it.
+func (r *Recurrence) SetUntilDate(v int) {
+ r.UntilDate = &v
+}
+
+// GetUntilOccurrences returns the UntilOccurrences field if non-nil, zero value otherwise.
+func (r *Recurrence) GetUntilOccurrences() int {
+ if r == nil || r.UntilOccurrences == nil {
+ return 0
+ }
+ return *r.UntilOccurrences
+}
+
+// GetOkUntilOccurrences returns a tuple with the UntilOccurrences field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *Recurrence) GetUntilOccurrencesOk() (int, bool) {
+ if r == nil || r.UntilOccurrences == nil {
+ return 0, false
+ }
+ return *r.UntilOccurrences, true
+}
+
+// HasUntilOccurrences returns a boolean if a field has been set.
+func (r *Recurrence) HasUntilOccurrences() bool {
+ if r != nil && r.UntilOccurrences != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUntilOccurrences allocates a new r.UntilOccurrences and returns the pointer to it.
+func (r *Recurrence) SetUntilOccurrences(v int) {
+ r.UntilOccurrences = &v
+}
+
+// GetComment returns the Comment field if non-nil, zero value otherwise.
+func (r *reqComment) GetComment() Comment {
+ if r == nil || r.Comment == nil {
+ return Comment{}
+ }
+ return *r.Comment
+}
+
+// GetOkComment returns a tuple with the Comment field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqComment) GetCommentOk() (Comment, bool) {
+ if r == nil || r.Comment == nil {
+ return Comment{}, false
+ }
+ return *r.Comment, true
+}
+
+// HasComment returns a boolean if a field has been set.
+func (r *reqComment) HasComment() bool {
+ if r != nil && r.Comment != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetComment allocates a new r.Comment and returns the pointer to it.
+func (r *reqComment) SetComment(v Comment) {
+ r.Comment = &v
+}
+
+// GetDashboard returns the Dashboard field if non-nil, zero value otherwise.
+func (r *reqGetDashboard) GetDashboard() Dashboard {
+ if r == nil || r.Dashboard == nil {
+ return Dashboard{}
+ }
+ return *r.Dashboard
+}
+
+// GetOkDashboard returns a tuple with the Dashboard field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqGetDashboard) GetDashboardOk() (Dashboard, bool) {
+ if r == nil || r.Dashboard == nil {
+ return Dashboard{}, false
+ }
+ return *r.Dashboard, true
+}
+
+// HasDashboard returns a boolean if a field has been set.
+func (r *reqGetDashboard) HasDashboard() bool {
+ if r != nil && r.Dashboard != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDashboard allocates a new r.Dashboard and returns the pointer to it.
+func (r *reqGetDashboard) SetDashboard(v Dashboard) {
+ r.Dashboard = &v
+}
+
+// GetResource returns the Resource field if non-nil, zero value otherwise.
+func (r *reqGetDashboard) GetResource() string {
+ if r == nil || r.Resource == nil {
+ return ""
+ }
+ return *r.Resource
+}
+
+// GetOkResource returns a tuple with the Resource field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqGetDashboard) GetResourceOk() (string, bool) {
+ if r == nil || r.Resource == nil {
+ return "", false
+ }
+ return *r.Resource, true
+}
+
+// HasResource returns a boolean if a field has been set.
+func (r *reqGetDashboard) HasResource() bool {
+ if r != nil && r.Resource != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResource allocates a new r.Resource and returns the pointer to it.
+func (r *reqGetDashboard) SetResource(v string) {
+ r.Resource = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (r *reqGetDashboard) GetUrl() string {
+ if r == nil || r.Url == nil {
+ return ""
+ }
+ return *r.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqGetDashboard) GetUrlOk() (string, bool) {
+ if r == nil || r.Url == nil {
+ return "", false
+ }
+ return *r.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (r *reqGetDashboard) HasUrl() bool {
+ if r != nil && r.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new r.Url and returns the pointer to it.
+func (r *reqGetDashboard) SetUrl(v string) {
+ r.Url = &v
+}
+
+// GetEvent returns the Event field if non-nil, zero value otherwise.
+func (r *reqGetEvent) GetEvent() Event {
+ if r == nil || r.Event == nil {
+ return Event{}
+ }
+ return *r.Event
+}
+
+// GetOkEvent returns a tuple with the Event field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqGetEvent) GetEventOk() (Event, bool) {
+ if r == nil || r.Event == nil {
+ return Event{}, false
+ }
+ return *r.Event, true
+}
+
+// HasEvent returns a boolean if a field has been set.
+func (r *reqGetEvent) HasEvent() bool {
+ if r != nil && r.Event != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEvent allocates a new r.Event and returns the pointer to it.
+func (r *reqGetEvent) SetEvent(v Event) {
+ r.Event = &v
+}
+
+// GetTags returns the Tags field if non-nil, zero value otherwise.
+func (r *reqGetTags) GetTags() TagMap {
+ if r == nil || r.Tags == nil {
+ return TagMap{}
+ }
+ return *r.Tags
+}
+
+// GetOkTags returns a tuple with the Tags field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (r *reqGetTags) GetTagsOk() (TagMap, bool) {
+ if r == nil || r.Tags == nil {
+ return TagMap{}, false
+ }
+ return *r.Tags, true
+}
+
+// HasTags returns a boolean if a field has been set.
+func (r *reqGetTags) HasTags() bool {
+ if r != nil && r.Tags != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTags allocates a new r.Tags and returns the pointer to it.
+func (r *reqGetTags) SetTags(v TagMap) {
+ r.Tags = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (s *Screenboard) GetHeight() string {
+ if s == nil || s.Height == nil {
+ return ""
+ }
+ return *s.Height
+}
+
+// GetOkHeight 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() (string, bool) {
+ if s == nil || s.Height == nil {
+ return "", false
+ }
+ return *s.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (s *Screenboard) HasHeight() bool {
+ if s != nil && s.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new s.Height and returns the pointer to it.
+func (s *Screenboard) SetHeight(v string) {
+ s.Height = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (s *Screenboard) GetId() int {
+ if s == nil || s.Id == nil {
+ return 0
+ }
+ return *s.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Screenboard) GetIdOk() (int, bool) {
+ if s == nil || s.Id == nil {
+ return 0, false
+ }
+ return *s.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (s *Screenboard) HasId() bool {
+ if s != nil && s.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new s.Id and returns the pointer to it.
+func (s *Screenboard) SetId(v int) {
+ s.Id = &v
+}
+
+// GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise.
+func (s *Screenboard) GetReadOnly() bool {
+ if s == nil || s.ReadOnly == nil {
+ return false
+ }
+ return *s.ReadOnly
+}
+
+// GetOkReadOnly returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Screenboard) GetReadOnlyOk() (bool, bool) {
+ if s == nil || s.ReadOnly == nil {
+ return false, false
+ }
+ return *s.ReadOnly, true
+}
+
+// HasReadOnly returns a boolean if a field has been set.
+func (s *Screenboard) HasReadOnly() bool {
+ if s != nil && s.ReadOnly != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetReadOnly allocates a new s.ReadOnly and returns the pointer to it.
+func (s *Screenboard) SetReadOnly(v bool) {
+ s.ReadOnly = &v
+}
+
+// GetShared returns the Shared field if non-nil, zero value otherwise.
+func (s *Screenboard) GetShared() bool {
+ if s == nil || s.Shared == nil {
+ return false
+ }
+ return *s.Shared
+}
+
+// GetOkShared returns a tuple with the Shared field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Screenboard) GetSharedOk() (bool, bool) {
+ if s == nil || s.Shared == nil {
+ return false, false
+ }
+ return *s.Shared, true
+}
+
+// HasShared returns a boolean if a field has been set.
+func (s *Screenboard) HasShared() bool {
+ if s != nil && s.Shared != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetShared allocates a new s.Shared and returns the pointer to it.
+func (s *Screenboard) SetShared(v bool) {
+ s.Shared = &v
+}
+
+// GetTemplated returns the Templated field if non-nil, zero value otherwise.
+func (s *Screenboard) GetTemplated() bool {
+ if s == nil || s.Templated == nil {
+ return false
+ }
+ return *s.Templated
+}
+
+// GetOkTemplated returns a tuple with the Templated field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Screenboard) GetTemplatedOk() (bool, bool) {
+ if s == nil || s.Templated == nil {
+ return false, false
+ }
+ return *s.Templated, true
+}
+
+// HasTemplated returns a boolean if a field has been set.
+func (s *Screenboard) HasTemplated() bool {
+ if s != nil && s.Templated != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTemplated allocates a new s.Templated and returns the pointer to it.
+func (s *Screenboard) SetTemplated(v bool) {
+ s.Templated = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (s *Screenboard) GetTitle() string {
+ if s == nil || s.Title == nil {
+ return ""
+ }
+ return *s.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Screenboard) GetTitleOk() (string, bool) {
+ if s == nil || s.Title == nil {
+ return "", false
+ }
+ return *s.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (s *Screenboard) HasTitle() bool {
+ if s != nil && s.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new s.Title and returns the pointer to it.
+func (s *Screenboard) SetTitle(v string) {
+ s.Title = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (s *Screenboard) GetWidth() string {
+ if s == nil || s.Width == nil {
+ return ""
+ }
+ return *s.Width
+}
+
+// GetOkWidth 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() (string, bool) {
+ if s == nil || s.Width == nil {
+ return "", false
+ }
+ return *s.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (s *Screenboard) HasWidth() bool {
+ if s != nil && s.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new s.Width and returns the pointer to it.
+func (s *Screenboard) SetWidth(v string) {
+ s.Width = &v
+}
+
+// GetId returns the Id field if non-nil, zero value otherwise.
+func (s *ScreenboardLite) GetId() int {
+ if s == nil || s.Id == nil {
+ return 0
+ }
+ return *s.Id
+}
+
+// GetOkId returns a tuple with the Id field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ScreenboardLite) GetIdOk() (int, bool) {
+ if s == nil || s.Id == nil {
+ return 0, false
+ }
+ return *s.Id, true
+}
+
+// HasId returns a boolean if a field has been set.
+func (s *ScreenboardLite) HasId() bool {
+ if s != nil && s.Id != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetId allocates a new s.Id and returns the pointer to it.
+func (s *ScreenboardLite) SetId(v int) {
+ s.Id = &v
+}
+
+// GetResource returns the Resource field if non-nil, zero value otherwise.
+func (s *ScreenboardLite) GetResource() string {
+ if s == nil || s.Resource == nil {
+ return ""
+ }
+ return *s.Resource
+}
+
+// GetOkResource returns a tuple with the Resource field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ScreenboardLite) GetResourceOk() (string, bool) {
+ if s == nil || s.Resource == nil {
+ return "", false
+ }
+ return *s.Resource, true
+}
+
+// HasResource returns a boolean if a field has been set.
+func (s *ScreenboardLite) HasResource() bool {
+ if s != nil && s.Resource != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetResource allocates a new s.Resource and returns the pointer to it.
+func (s *ScreenboardLite) SetResource(v string) {
+ s.Resource = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (s *ScreenboardLite) GetTitle() string {
+ if s == nil || s.Title == nil {
+ return ""
+ }
+ return *s.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ScreenboardLite) GetTitleOk() (string, bool) {
+ if s == nil || s.Title == nil {
+ return "", false
+ }
+ return *s.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (s *ScreenboardLite) HasTitle() bool {
+ if s != nil && s.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new s.Title and returns the pointer to it.
+func (s *ScreenboardLite) SetTitle(v string) {
+ s.Title = &v
+}
+
+// GetAggr returns the Aggr field if non-nil, zero value otherwise.
+func (s *Series) GetAggr() string {
+ if s == nil || s.Aggr == nil {
+ return ""
+ }
+ return *s.Aggr
+}
+
+// GetOkAggr returns a tuple with the Aggr field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetAggrOk() (string, bool) {
+ if s == nil || s.Aggr == nil {
+ return "", false
+ }
+ return *s.Aggr, true
+}
+
+// HasAggr returns a boolean if a field has been set.
+func (s *Series) HasAggr() bool {
+ if s != nil && s.Aggr != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAggr allocates a new s.Aggr and returns the pointer to it.
+func (s *Series) SetAggr(v string) {
+ s.Aggr = &v
+}
+
+// GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.
+func (s *Series) GetDisplayName() string {
+ if s == nil || s.DisplayName == nil {
+ return ""
+ }
+ return *s.DisplayName
+}
+
+// GetOkDisplayName returns a tuple with the DisplayName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetDisplayNameOk() (string, bool) {
+ if s == nil || s.DisplayName == nil {
+ return "", false
+ }
+ return *s.DisplayName, true
+}
+
+// HasDisplayName returns a boolean if a field has been set.
+func (s *Series) HasDisplayName() bool {
+ if s != nil && s.DisplayName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDisplayName allocates a new s.DisplayName and returns the pointer to it.
+func (s *Series) SetDisplayName(v string) {
+ s.DisplayName = &v
+}
+
+// GetEnd returns the End field if non-nil, zero value otherwise.
+func (s *Series) GetEnd() float64 {
+ if s == nil || s.End == nil {
+ return 0
+ }
+ return *s.End
+}
+
+// GetOkEnd returns a tuple with the End field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetEndOk() (float64, bool) {
+ if s == nil || s.End == nil {
+ return 0, false
+ }
+ return *s.End, true
+}
+
+// HasEnd returns a boolean if a field has been set.
+func (s *Series) HasEnd() bool {
+ if s != nil && s.End != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEnd allocates a new s.End and returns the pointer to it.
+func (s *Series) SetEnd(v float64) {
+ s.End = &v
+}
+
+// GetExpression returns the Expression field if non-nil, zero value otherwise.
+func (s *Series) GetExpression() string {
+ if s == nil || s.Expression == nil {
+ return ""
+ }
+ return *s.Expression
+}
+
+// GetOkExpression returns a tuple with the Expression field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetExpressionOk() (string, bool) {
+ if s == nil || s.Expression == nil {
+ return "", false
+ }
+ return *s.Expression, true
+}
+
+// HasExpression returns a boolean if a field has been set.
+func (s *Series) HasExpression() bool {
+ if s != nil && s.Expression != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetExpression allocates a new s.Expression and returns the pointer to it.
+func (s *Series) SetExpression(v string) {
+ s.Expression = &v
+}
+
+// GetInterval returns the Interval field if non-nil, zero value otherwise.
+func (s *Series) GetInterval() int {
+ if s == nil || s.Interval == nil {
+ return 0
+ }
+ return *s.Interval
+}
+
+// GetOkInterval returns a tuple with the Interval field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetIntervalOk() (int, bool) {
+ if s == nil || s.Interval == nil {
+ return 0, false
+ }
+ return *s.Interval, true
+}
+
+// HasInterval returns a boolean if a field has been set.
+func (s *Series) HasInterval() bool {
+ if s != nil && s.Interval != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetInterval allocates a new s.Interval and returns the pointer to it.
+func (s *Series) SetInterval(v int) {
+ s.Interval = &v
+}
+
+// GetLength returns the Length field if non-nil, zero value otherwise.
+func (s *Series) GetLength() int {
+ if s == nil || s.Length == nil {
+ return 0
+ }
+ return *s.Length
+}
+
+// GetOkLength returns a tuple with the Length field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetLengthOk() (int, bool) {
+ if s == nil || s.Length == nil {
+ return 0, false
+ }
+ return *s.Length, true
+}
+
+// HasLength returns a boolean if a field has been set.
+func (s *Series) HasLength() bool {
+ if s != nil && s.Length != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLength allocates a new s.Length and returns the pointer to it.
+func (s *Series) SetLength(v int) {
+ s.Length = &v
+}
+
+// GetMetric returns the Metric field if non-nil, zero value otherwise.
+func (s *Series) GetMetric() string {
+ if s == nil || s.Metric == nil {
+ return ""
+ }
+ return *s.Metric
+}
+
+// GetOkMetric returns a tuple with the Metric field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetMetricOk() (string, bool) {
+ if s == nil || s.Metric == nil {
+ return "", false
+ }
+ return *s.Metric, true
+}
+
+// HasMetric returns a boolean if a field has been set.
+func (s *Series) HasMetric() bool {
+ if s != nil && s.Metric != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMetric allocates a new s.Metric and returns the pointer to it.
+func (s *Series) SetMetric(v string) {
+ s.Metric = &v
+}
+
+// GetScope returns the Scope field if non-nil, zero value otherwise.
+func (s *Series) GetScope() string {
+ if s == nil || s.Scope == nil {
+ return ""
+ }
+ return *s.Scope
+}
+
+// GetOkScope returns a tuple with the Scope field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetScopeOk() (string, bool) {
+ if s == nil || s.Scope == nil {
+ return "", false
+ }
+ return *s.Scope, true
+}
+
+// HasScope returns a boolean if a field has been set.
+func (s *Series) HasScope() bool {
+ if s != nil && s.Scope != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetScope allocates a new s.Scope and returns the pointer to it.
+func (s *Series) SetScope(v string) {
+ s.Scope = &v
+}
+
+// GetStart returns the Start field if non-nil, zero value otherwise.
+func (s *Series) GetStart() float64 {
+ if s == nil || s.Start == nil {
+ return 0
+ }
+ return *s.Start
+}
+
+// GetOkStart returns a tuple with the Start field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetStartOk() (float64, bool) {
+ if s == nil || s.Start == nil {
+ return 0, false
+ }
+ return *s.Start, true
+}
+
+// HasStart returns a boolean if a field has been set.
+func (s *Series) HasStart() bool {
+ if s != nil && s.Start != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStart allocates a new s.Start and returns the pointer to it.
+func (s *Series) SetStart(v float64) {
+ s.Start = &v
+}
+
+// GetUnits returns the Units field if non-nil, zero value otherwise.
+func (s *Series) GetUnits() UnitPair {
+ if s == nil || s.Units == nil {
+ return UnitPair{}
+ }
+ return *s.Units
+}
+
+// GetOkUnits returns a tuple with the Units field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Series) GetUnitsOk() (UnitPair, bool) {
+ if s == nil || s.Units == nil {
+ return UnitPair{}, false
+ }
+ return *s.Units, true
+}
+
+// HasUnits returns a boolean if a field has been set.
+func (s *Series) HasUnits() bool {
+ if s != nil && s.Units != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnits allocates a new s.Units and returns the pointer to it.
+func (s *Series) SetUnits(v UnitPair) {
+ s.Units = &v
+}
+
+// GetAccount returns the Account field if non-nil, zero value otherwise.
+func (s *ServiceHookSlackRequest) GetAccount() string {
+ if s == nil || s.Account == nil {
+ return ""
+ }
+ return *s.Account
+}
+
+// GetOkAccount returns a tuple with the Account field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ServiceHookSlackRequest) GetAccountOk() (string, bool) {
+ if s == nil || s.Account == nil {
+ return "", false
+ }
+ return *s.Account, true
+}
+
+// HasAccount returns a boolean if a field has been set.
+func (s *ServiceHookSlackRequest) HasAccount() bool {
+ if s != nil && s.Account != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccount allocates a new s.Account and returns the pointer to it.
+func (s *ServiceHookSlackRequest) SetAccount(v string) {
+ s.Account = &v
+}
+
+// GetUrl returns the Url field if non-nil, zero value otherwise.
+func (s *ServiceHookSlackRequest) GetUrl() string {
+ if s == nil || s.Url == nil {
+ return ""
+ }
+ return *s.Url
+}
+
+// GetOkUrl returns a tuple with the Url field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ServiceHookSlackRequest) GetUrlOk() (string, bool) {
+ if s == nil || s.Url == nil {
+ return "", false
+ }
+ return *s.Url, true
+}
+
+// HasUrl returns a boolean if a field has been set.
+func (s *ServiceHookSlackRequest) HasUrl() bool {
+ if s != nil && s.Url != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUrl allocates a new s.Url and returns the pointer to it.
+func (s *ServiceHookSlackRequest) SetUrl(v string) {
+ s.Url = &v
+}
+
+// GetServiceKey returns the ServiceKey field if non-nil, zero value otherwise.
+func (s *servicePD) GetServiceKey() string {
+ if s == nil || s.ServiceKey == nil {
+ return ""
+ }
+ return *s.ServiceKey
+}
+
+// GetOkServiceKey returns a tuple with the ServiceKey field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *servicePD) GetServiceKeyOk() (string, bool) {
+ if s == nil || s.ServiceKey == nil {
+ return "", false
+ }
+ return *s.ServiceKey, true
+}
+
+// HasServiceKey returns a boolean if a field has been set.
+func (s *servicePD) HasServiceKey() bool {
+ if s != nil && s.ServiceKey != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetServiceKey allocates a new s.ServiceKey and returns the pointer to it.
+func (s *servicePD) SetServiceKey(v string) {
+ s.ServiceKey = &v
+}
+
+// GetServiceName returns the ServiceName field if non-nil, zero value otherwise.
+func (s *servicePD) GetServiceName() string {
+ if s == nil || s.ServiceName == nil {
+ return ""
+ }
+ return *s.ServiceName
+}
+
+// GetOkServiceName returns a tuple with the ServiceName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *servicePD) GetServiceNameOk() (string, bool) {
+ if s == nil || s.ServiceName == nil {
+ return "", false
+ }
+ return *s.ServiceName, true
+}
+
+// HasServiceName returns a boolean if a field has been set.
+func (s *servicePD) HasServiceName() bool {
+ if s != nil && s.ServiceName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetServiceName allocates a new s.ServiceName and returns the pointer to it.
+func (s *servicePD) SetServiceName(v string) {
+ s.ServiceName = &v
+}
+
+// GetServiceKey returns the ServiceKey field if non-nil, zero value otherwise.
+func (s *ServicePDRequest) GetServiceKey() string {
+ if s == nil || s.ServiceKey == nil {
+ return ""
+ }
+ return *s.ServiceKey
+}
+
+// GetOkServiceKey returns a tuple with the ServiceKey field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ServicePDRequest) GetServiceKeyOk() (string, bool) {
+ if s == nil || s.ServiceKey == nil {
+ return "", false
+ }
+ return *s.ServiceKey, true
+}
+
+// HasServiceKey returns a boolean if a field has been set.
+func (s *ServicePDRequest) HasServiceKey() bool {
+ if s != nil && s.ServiceKey != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetServiceKey allocates a new s.ServiceKey and returns the pointer to it.
+func (s *ServicePDRequest) SetServiceKey(v string) {
+ s.ServiceKey = &v
+}
+
+// GetServiceName returns the ServiceName field if non-nil, zero value otherwise.
+func (s *ServicePDRequest) GetServiceName() string {
+ if s == nil || s.ServiceName == nil {
+ return ""
+ }
+ return *s.ServiceName
+}
+
+// GetOkServiceName returns a tuple with the ServiceName field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *ServicePDRequest) GetServiceNameOk() (string, bool) {
+ if s == nil || s.ServiceName == nil {
+ return "", false
+ }
+ return *s.ServiceName, true
+}
+
+// HasServiceName returns a boolean if a field has been set.
+func (s *ServicePDRequest) HasServiceName() bool {
+ if s != nil && s.ServiceName != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetServiceName allocates a new s.ServiceName and returns the pointer to it.
+func (s *ServicePDRequest) SetServiceName(v string) {
+ s.ServiceName = &v
+}
+
+// GetPalette returns the Palette field if non-nil, zero value otherwise.
+func (s *Style) GetPalette() string {
+ if s == nil || s.Palette == nil {
+ return ""
+ }
+ return *s.Palette
+}
+
+// GetOkPalette returns a tuple with the Palette field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Style) GetPaletteOk() (string, bool) {
+ if s == nil || s.Palette == nil {
+ return "", false
+ }
+ return *s.Palette, true
+}
+
+// HasPalette returns a boolean if a field has been set.
+func (s *Style) HasPalette() bool {
+ if s != nil && s.Palette != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPalette allocates a new s.Palette and returns the pointer to it.
+func (s *Style) SetPalette(v string) {
+ s.Palette = &v
+}
+
+// GetPaletteFlip returns the PaletteFlip field if non-nil, zero value otherwise.
+func (s *Style) GetPaletteFlip() bool {
+ if s == nil || s.PaletteFlip == nil {
+ return false
+ }
+ return *s.PaletteFlip
+}
+
+// GetOkPaletteFlip returns a tuple with the PaletteFlip field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (s *Style) GetPaletteFlipOk() (bool, bool) {
+ if s == nil || s.PaletteFlip == nil {
+ return false, false
+ }
+ return *s.PaletteFlip, true
+}
+
+// HasPaletteFlip returns a boolean if a field has been set.
+func (s *Style) HasPaletteFlip() bool {
+ if s != nil && s.PaletteFlip != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPaletteFlip allocates a new s.PaletteFlip and returns the pointer to it.
+func (s *Style) SetPaletteFlip(v bool) {
+ s.PaletteFlip = &v
+}
+
+// GetDefault returns the Default field if non-nil, zero value otherwise.
+func (t *TemplateVariable) GetDefault() string {
+ if t == nil || t.Default == nil {
+ return ""
+ }
+ return *t.Default
+}
+
+// GetOkDefault returns a tuple with the Default field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TemplateVariable) GetDefaultOk() (string, bool) {
+ if t == nil || t.Default == nil {
+ return "", false
+ }
+ return *t.Default, true
+}
+
+// HasDefault returns a boolean if a field has been set.
+func (t *TemplateVariable) HasDefault() bool {
+ if t != nil && t.Default != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDefault allocates a new t.Default and returns the pointer to it.
+func (t *TemplateVariable) SetDefault(v string) {
+ t.Default = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (t *TemplateVariable) GetName() string {
+ if t == nil || t.Name == nil {
+ return ""
+ }
+ return *t.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TemplateVariable) GetNameOk() (string, bool) {
+ if t == nil || t.Name == nil {
+ return "", false
+ }
+ return *t.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (t *TemplateVariable) HasName() bool {
+ if t != nil && t.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new t.Name and returns the pointer to it.
+func (t *TemplateVariable) SetName(v string) {
+ t.Name = &v
+}
+
+// GetPrefix returns the Prefix field if non-nil, zero value otherwise.
+func (t *TemplateVariable) GetPrefix() string {
+ if t == nil || t.Prefix == nil {
+ return ""
+ }
+ return *t.Prefix
+}
+
+// GetOkPrefix returns a tuple with the Prefix field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TemplateVariable) GetPrefixOk() (string, bool) {
+ if t == nil || t.Prefix == nil {
+ return "", false
+ }
+ return *t.Prefix, true
+}
+
+// HasPrefix returns a boolean if a field has been set.
+func (t *TemplateVariable) HasPrefix() bool {
+ if t != nil && t.Prefix != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPrefix allocates a new t.Prefix and returns the pointer to it.
+func (t *TemplateVariable) SetPrefix(v string) {
+ t.Prefix = &v
+}
+
+// GetAuto returns the Auto field if non-nil, zero value otherwise.
+func (t *TextSize) GetAuto() bool {
+ if t == nil || t.Auto == nil {
+ return false
+ }
+ return *t.Auto
+}
+
+// GetOkAuto returns a tuple with the Auto field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TextSize) GetAutoOk() (bool, bool) {
+ if t == nil || t.Auto == nil {
+ return false, false
+ }
+ return *t.Auto, true
+}
+
+// HasAuto returns a boolean if a field has been set.
+func (t *TextSize) HasAuto() bool {
+ if t != nil && t.Auto != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAuto allocates a new t.Auto and returns the pointer to it.
+func (t *TextSize) SetAuto(v bool) {
+ t.Auto = &v
+}
+
+// GetSize returns the Size field if non-nil, zero value otherwise.
+func (t *TextSize) GetSize() int {
+ if t == nil || t.Size == nil {
+ return 0
+ }
+ return *t.Size
+}
+
+// GetOkSize returns a tuple with the Size field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TextSize) GetSizeOk() (int, bool) {
+ if t == nil || t.Size == nil {
+ return 0, false
+ }
+ return *t.Size, true
+}
+
+// HasSize returns a boolean if a field has been set.
+func (t *TextSize) HasSize() bool {
+ if t != nil && t.Size != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetSize allocates a new t.Size and returns the pointer to it.
+func (t *TextSize) SetSize(v int) {
+ t.Size = &v
+}
+
+// GetCritical returns the Critical field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetCritical() json.Number {
+ if t == nil || t.Critical == nil {
+ return ""
+ }
+ return *t.Critical
+}
+
+// GetOkCritical returns a tuple with the Critical field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetCriticalOk() (json.Number, bool) {
+ if t == nil || t.Critical == nil {
+ return "", false
+ }
+ return *t.Critical, true
+}
+
+// HasCritical returns a boolean if a field has been set.
+func (t *ThresholdCount) HasCritical() bool {
+ if t != nil && t.Critical != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCritical allocates a new t.Critical and returns the pointer to it.
+func (t *ThresholdCount) SetCritical(v json.Number) {
+ t.Critical = &v
+}
+
+// GetCriticalRecovery returns the CriticalRecovery field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetCriticalRecovery() json.Number {
+ if t == nil || t.CriticalRecovery == nil {
+ return ""
+ }
+ return *t.CriticalRecovery
+}
+
+// GetOkCriticalRecovery returns a tuple with the CriticalRecovery field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetCriticalRecoveryOk() (json.Number, bool) {
+ if t == nil || t.CriticalRecovery == nil {
+ return "", false
+ }
+ return *t.CriticalRecovery, true
+}
+
+// HasCriticalRecovery returns a boolean if a field has been set.
+func (t *ThresholdCount) HasCriticalRecovery() bool {
+ if t != nil && t.CriticalRecovery != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCriticalRecovery allocates a new t.CriticalRecovery and returns the pointer to it.
+func (t *ThresholdCount) SetCriticalRecovery(v json.Number) {
+ t.CriticalRecovery = &v
+}
+
+// GetOk returns the Ok field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetOk() json.Number {
+ if t == nil || t.Ok == nil {
+ return ""
+ }
+ return *t.Ok
+}
+
+// GetOkOk returns a tuple with the Ok field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetOkOk() (json.Number, bool) {
+ if t == nil || t.Ok == nil {
+ return "", false
+ }
+ return *t.Ok, true
+}
+
+// HasOk returns a boolean if a field has been set.
+func (t *ThresholdCount) HasOk() bool {
+ if t != nil && t.Ok != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetOk allocates a new t.Ok and returns the pointer to it.
+func (t *ThresholdCount) SetOk(v json.Number) {
+ t.Ok = &v
+}
+
+// GetUnknown returns the Unknown field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetUnknown() json.Number {
+ if t == nil || t.Unknown == nil {
+ return ""
+ }
+ return *t.Unknown
+}
+
+// GetOkUnknown returns a tuple with the Unknown field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetUnknownOk() (json.Number, bool) {
+ if t == nil || t.Unknown == nil {
+ return "", false
+ }
+ return *t.Unknown, true
+}
+
+// HasUnknown returns a boolean if a field has been set.
+func (t *ThresholdCount) HasUnknown() bool {
+ if t != nil && t.Unknown != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetUnknown allocates a new t.Unknown and returns the pointer to it.
+func (t *ThresholdCount) SetUnknown(v json.Number) {
+ t.Unknown = &v
+}
+
+// GetWarning returns the Warning field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetWarning() json.Number {
+ if t == nil || t.Warning == nil {
+ return ""
+ }
+ return *t.Warning
+}
+
+// GetOkWarning returns a tuple with the Warning field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetWarningOk() (json.Number, bool) {
+ if t == nil || t.Warning == nil {
+ return "", false
+ }
+ return *t.Warning, true
+}
+
+// HasWarning returns a boolean if a field has been set.
+func (t *ThresholdCount) HasWarning() bool {
+ if t != nil && t.Warning != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWarning allocates a new t.Warning and returns the pointer to it.
+func (t *ThresholdCount) SetWarning(v json.Number) {
+ t.Warning = &v
+}
+
+// GetWarningRecovery returns the WarningRecovery field if non-nil, zero value otherwise.
+func (t *ThresholdCount) GetWarningRecovery() json.Number {
+ if t == nil || t.WarningRecovery == nil {
+ return ""
+ }
+ return *t.WarningRecovery
+}
+
+// GetOkWarningRecovery returns a tuple with the WarningRecovery field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ThresholdCount) GetWarningRecoveryOk() (json.Number, bool) {
+ if t == nil || t.WarningRecovery == nil {
+ return "", false
+ }
+ return *t.WarningRecovery, true
+}
+
+// HasWarningRecovery returns a boolean if a field has been set.
+func (t *ThresholdCount) HasWarningRecovery() bool {
+ if t != nil && t.WarningRecovery != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWarningRecovery allocates a new t.WarningRecovery and returns the pointer to it.
+func (t *ThresholdCount) SetWarningRecovery(v json.Number) {
+ t.WarningRecovery = &v
+}
+
+// GetViz returns the Viz field if non-nil, zero value otherwise.
+func (t *TileDef) GetViz() string {
+ if t == nil || t.Viz == nil {
+ return ""
+ }
+ return *t.Viz
+}
+
+// GetOkViz returns a tuple with the Viz field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TileDef) GetVizOk() (string, bool) {
+ if t == nil || t.Viz == nil {
+ return "", false
+ }
+ return *t.Viz, true
+}
+
+// HasViz returns a boolean if a field has been set.
+func (t *TileDef) HasViz() bool {
+ if t != nil && t.Viz != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetViz allocates a new t.Viz and returns the pointer to it.
+func (t *TileDef) SetViz(v string) {
+ t.Viz = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (t *TileDefEvent) GetQuery() string {
+ if t == nil || t.Query == nil {
+ return ""
+ }
+ return *t.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TileDefEvent) GetQueryOk() (string, bool) {
+ if t == nil || t.Query == nil {
+ return "", false
+ }
+ return *t.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (t *TileDefEvent) HasQuery() bool {
+ if t != nil && t.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new t.Query and returns the pointer to it.
+func (t *TileDefEvent) SetQuery(v string) {
+ t.Query = &v
+}
+
+// GetLabel returns the Label field if non-nil, zero value otherwise.
+func (t *TimeseriesMarker) GetLabel() string {
+ if t == nil || t.Label == nil {
+ return ""
+ }
+ return *t.Label
+}
+
+// GetOkLabel returns a tuple with the Label field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesMarker) GetLabelOk() (string, bool) {
+ if t == nil || t.Label == nil {
+ return "", false
+ }
+ return *t.Label, true
+}
+
+// HasLabel returns a boolean if a field has been set.
+func (t *TimeseriesMarker) HasLabel() bool {
+ if t != nil && t.Label != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLabel allocates a new t.Label and returns the pointer to it.
+func (t *TimeseriesMarker) SetLabel(v string) {
+ t.Label = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (t *TimeseriesMarker) GetType() string {
+ if t == nil || t.Type == nil {
+ return ""
+ }
+ return *t.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesMarker) GetTypeOk() (string, bool) {
+ if t == nil || t.Type == nil {
+ return "", false
+ }
+ return *t.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (t *TimeseriesMarker) HasType() bool {
+ if t != nil && t.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new t.Type and returns the pointer to it.
+func (t *TimeseriesMarker) SetType(v string) {
+ t.Type = &v
+}
+
+// GetValue returns the Value field if non-nil, zero value otherwise.
+func (t *TimeseriesMarker) GetValue() string {
+ if t == nil || t.Value == nil {
+ return ""
+ }
+ return *t.Value
+}
+
+// GetOkValue returns a tuple with the Value field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesMarker) GetValueOk() (string, bool) {
+ if t == nil || t.Value == nil {
+ return "", false
+ }
+ return *t.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (t *TimeseriesMarker) HasValue() bool {
+ if t != nil && t.Value != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetValue allocates a new t.Value and returns the pointer to it.
+func (t *TimeseriesMarker) SetValue(v string) {
+ t.Value = &v
+}
+
+// GetQuery returns the Query field if non-nil, zero value otherwise.
+func (t *TimeseriesRequest) GetQuery() string {
+ if t == nil || t.Query == nil {
+ return ""
+ }
+ return *t.Query
+}
+
+// GetOkQuery returns a tuple with the Query field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesRequest) GetQueryOk() (string, bool) {
+ if t == nil || t.Query == nil {
+ return "", false
+ }
+ return *t.Query, true
+}
+
+// HasQuery returns a boolean if a field has been set.
+func (t *TimeseriesRequest) HasQuery() bool {
+ if t != nil && t.Query != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQuery allocates a new t.Query and returns the pointer to it.
+func (t *TimeseriesRequest) SetQuery(v string) {
+ t.Query = &v
+}
+
+// GetStyle returns the Style field if non-nil, zero value otherwise.
+func (t *TimeseriesRequest) GetStyle() TimeseriesRequestStyle {
+ if t == nil || t.Style == nil {
+ return TimeseriesRequestStyle{}
+ }
+ return *t.Style
+}
+
+// GetOkStyle returns a tuple with the Style field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesRequest) GetStyleOk() (TimeseriesRequestStyle, bool) {
+ if t == nil || t.Style == nil {
+ return TimeseriesRequestStyle{}, false
+ }
+ return *t.Style, true
+}
+
+// HasStyle returns a boolean if a field has been set.
+func (t *TimeseriesRequest) HasStyle() bool {
+ if t != nil && t.Style != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStyle allocates a new t.Style and returns the pointer to it.
+func (t *TimeseriesRequest) SetStyle(v TimeseriesRequestStyle) {
+ t.Style = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (t *TimeseriesRequest) GetType() string {
+ if t == nil || t.Type == nil {
+ return ""
+ }
+ return *t.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesRequest) GetTypeOk() (string, bool) {
+ if t == nil || t.Type == nil {
+ return "", false
+ }
+ return *t.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (t *TimeseriesRequest) HasType() bool {
+ if t != nil && t.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new t.Type and returns the pointer to it.
+func (t *TimeseriesRequest) SetType(v string) {
+ t.Type = &v
+}
+
+// GetPalette returns the Palette field if non-nil, zero value otherwise.
+func (t *TimeseriesRequestStyle) GetPalette() string {
+ if t == nil || t.Palette == nil {
+ return ""
+ }
+ return *t.Palette
+}
+
+// GetOkPalette returns a tuple with the Palette field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesRequestStyle) GetPaletteOk() (string, bool) {
+ if t == nil || t.Palette == nil {
+ return "", false
+ }
+ return *t.Palette, true
+}
+
+// HasPalette returns a boolean if a field has been set.
+func (t *TimeseriesRequestStyle) HasPalette() bool {
+ if t != nil && t.Palette != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPalette allocates a new t.Palette and returns the pointer to it.
+func (t *TimeseriesRequestStyle) SetPalette(v string) {
+ t.Palette = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetHeight() int {
+ if t == nil || t.Height == nil {
+ return 0
+ }
+ return *t.Height
+}
+
+// GetOkHeight 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 (t *TimeseriesWidget) GetHeightOk() (int, bool) {
+ if t == nil || t.Height == nil {
+ return 0, false
+ }
+ return *t.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasHeight() bool {
+ if t != nil && t.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new t.Height and returns the pointer to it.
+func (t *TimeseriesWidget) SetHeight(v int) {
+ t.Height = &v
+}
+
+// GetLegend returns the Legend field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetLegend() bool {
+ if t == nil || t.Legend == nil {
+ return false
+ }
+ return *t.Legend
+}
+
+// GetOkLegend returns a tuple with the Legend field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetLegendOk() (bool, bool) {
+ if t == nil || t.Legend == nil {
+ return false, false
+ }
+ return *t.Legend, true
+}
+
+// HasLegend returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasLegend() bool {
+ if t != nil && t.Legend != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegend allocates a new t.Legend and returns the pointer to it.
+func (t *TimeseriesWidget) SetLegend(v bool) {
+ t.Legend = &v
+}
+
+// GetTileDef returns the TileDef field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTileDef() TileDef {
+ if t == nil || t.TileDef == nil {
+ return TileDef{}
+ }
+ return *t.TileDef
+}
+
+// GetOkTileDef returns a tuple with the TileDef field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTileDefOk() (TileDef, bool) {
+ if t == nil || t.TileDef == nil {
+ return TileDef{}, false
+ }
+ return *t.TileDef, true
+}
+
+// HasTileDef returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTileDef() bool {
+ if t != nil && t.TileDef != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTileDef allocates a new t.TileDef and returns the pointer to it.
+func (t *TimeseriesWidget) SetTileDef(v TileDef) {
+ t.TileDef = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTimeframe() string {
+ if t == nil || t.Timeframe == nil {
+ return ""
+ }
+ return *t.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTimeframeOk() (string, bool) {
+ if t == nil || t.Timeframe == nil {
+ return "", false
+ }
+ return *t.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTimeframe() bool {
+ if t != nil && t.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new t.Timeframe and returns the pointer to it.
+func (t *TimeseriesWidget) SetTimeframe(v string) {
+ t.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTitle() bool {
+ if t == nil || t.Title == nil {
+ return false
+ }
+ return *t.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTitleOk() (bool, bool) {
+ if t == nil || t.Title == nil {
+ return false, false
+ }
+ return *t.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTitle() bool {
+ if t != nil && t.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new t.Title and returns the pointer to it.
+func (t *TimeseriesWidget) SetTitle(v bool) {
+ t.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTitleAlign() string {
+ if t == nil || t.TitleAlign == nil {
+ return ""
+ }
+ return *t.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTitleAlignOk() (string, bool) {
+ if t == nil || t.TitleAlign == nil {
+ return "", false
+ }
+ return *t.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTitleAlign() bool {
+ if t != nil && t.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new t.TitleAlign and returns the pointer to it.
+func (t *TimeseriesWidget) SetTitleAlign(v string) {
+ t.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTitleSize() TextSize {
+ if t == nil || t.TitleSize == nil {
+ return TextSize{}
+ }
+ return *t.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTitleSizeOk() (TextSize, bool) {
+ if t == nil || t.TitleSize == nil {
+ return TextSize{}, false
+ }
+ return *t.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTitleSize() bool {
+ if t != nil && t.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new t.TitleSize and returns the pointer to it.
+func (t *TimeseriesWidget) SetTitleSize(v TextSize) {
+ t.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetTitleText() string {
+ if t == nil || t.TitleText == nil {
+ return ""
+ }
+ return *t.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTitleTextOk() (string, bool) {
+ if t == nil || t.TitleText == nil {
+ return "", false
+ }
+ return *t.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasTitleText() bool {
+ if t != nil && t.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new t.TitleText and returns the pointer to it.
+func (t *TimeseriesWidget) SetTitleText(v string) {
+ t.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetType() string {
+ if t == nil || t.Type == nil {
+ return ""
+ }
+ return *t.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetTypeOk() (string, bool) {
+ if t == nil || t.Type == nil {
+ return "", false
+ }
+ return *t.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasType() bool {
+ if t != nil && t.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new t.Type and returns the pointer to it.
+func (t *TimeseriesWidget) SetType(v string) {
+ t.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetWidth() int {
+ if t == nil || t.Width == nil {
+ return 0
+ }
+ return *t.Width
+}
+
+// GetOkWidth 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 (t *TimeseriesWidget) GetWidthOk() (int, bool) {
+ if t == nil || t.Width == nil {
+ return 0, false
+ }
+ return *t.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasWidth() bool {
+ if t != nil && t.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new t.Width and returns the pointer to it.
+func (t *TimeseriesWidget) SetWidth(v int) {
+ t.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetX() int {
+ if t == nil || t.X == nil {
+ return 0
+ }
+ return *t.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetXOk() (int, bool) {
+ if t == nil || t.X == nil {
+ return 0, false
+ }
+ return *t.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasX() bool {
+ if t != nil && t.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new t.X and returns the pointer to it.
+func (t *TimeseriesWidget) SetX(v int) {
+ t.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (t *TimeseriesWidget) GetY() int {
+ if t == nil || t.Y == nil {
+ return 0
+ }
+ return *t.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *TimeseriesWidget) GetYOk() (int, bool) {
+ if t == nil || t.Y == nil {
+ return 0, false
+ }
+ return *t.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (t *TimeseriesWidget) HasY() bool {
+ if t != nil && t.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new t.Y and returns the pointer to it.
+func (t *TimeseriesWidget) SetY(v int) {
+ t.Y = &v
+}
+
+// GetHeight returns the Height field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetHeight() int {
+ if t == nil || t.Height == nil {
+ return 0
+ }
+ return *t.Height
+}
+
+// GetOkHeight 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 (t *ToplistWidget) GetHeightOk() (int, bool) {
+ if t == nil || t.Height == nil {
+ return 0, false
+ }
+ return *t.Height, true
+}
+
+// HasHeight returns a boolean if a field has been set.
+func (t *ToplistWidget) HasHeight() bool {
+ if t != nil && t.Height != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHeight allocates a new t.Height and returns the pointer to it.
+func (t *ToplistWidget) SetHeight(v int) {
+ t.Height = &v
+}
+
+// GetLegend returns the Legend field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetLegend() bool {
+ if t == nil || t.Legend == nil {
+ return false
+ }
+ return *t.Legend
+}
+
+// GetOkLegend returns a tuple with the Legend field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetLegendOk() (bool, bool) {
+ if t == nil || t.Legend == nil {
+ return false, false
+ }
+ return *t.Legend, true
+}
+
+// HasLegend returns a boolean if a field has been set.
+func (t *ToplistWidget) HasLegend() bool {
+ if t != nil && t.Legend != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegend allocates a new t.Legend and returns the pointer to it.
+func (t *ToplistWidget) SetLegend(v bool) {
+ t.Legend = &v
+}
+
+// GetLegendSize returns the LegendSize field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetLegendSize() int {
+ if t == nil || t.LegendSize == nil {
+ return 0
+ }
+ return *t.LegendSize
+}
+
+// GetOkLegendSize returns a tuple with the LegendSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetLegendSizeOk() (int, bool) {
+ if t == nil || t.LegendSize == nil {
+ return 0, false
+ }
+ return *t.LegendSize, true
+}
+
+// HasLegendSize returns a boolean if a field has been set.
+func (t *ToplistWidget) HasLegendSize() bool {
+ if t != nil && t.LegendSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLegendSize allocates a new t.LegendSize and returns the pointer to it.
+func (t *ToplistWidget) SetLegendSize(v int) {
+ t.LegendSize = &v
+}
+
+// GetTileDef returns the TileDef field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTileDef() TileDef {
+ if t == nil || t.TileDef == nil {
+ return TileDef{}
+ }
+ return *t.TileDef
+}
+
+// GetOkTileDef returns a tuple with the TileDef field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTileDefOk() (TileDef, bool) {
+ if t == nil || t.TileDef == nil {
+ return TileDef{}, false
+ }
+ return *t.TileDef, true
+}
+
+// HasTileDef returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTileDef() bool {
+ if t != nil && t.TileDef != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTileDef allocates a new t.TileDef and returns the pointer to it.
+func (t *ToplistWidget) SetTileDef(v TileDef) {
+ t.TileDef = &v
+}
+
+// GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTimeframe() string {
+ if t == nil || t.Timeframe == nil {
+ return ""
+ }
+ return *t.Timeframe
+}
+
+// GetOkTimeframe returns a tuple with the Timeframe field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTimeframeOk() (string, bool) {
+ if t == nil || t.Timeframe == nil {
+ return "", false
+ }
+ return *t.Timeframe, true
+}
+
+// HasTimeframe returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTimeframe() bool {
+ if t != nil && t.Timeframe != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeframe allocates a new t.Timeframe and returns the pointer to it.
+func (t *ToplistWidget) SetTimeframe(v string) {
+ t.Timeframe = &v
+}
+
+// GetTitle returns the Title field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTitle() bool {
+ if t == nil || t.Title == nil {
+ return false
+ }
+ return *t.Title
+}
+
+// GetOkTitle returns a tuple with the Title field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTitleOk() (bool, bool) {
+ if t == nil || t.Title == nil {
+ return false, false
+ }
+ return *t.Title, true
+}
+
+// HasTitle returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTitle() bool {
+ if t != nil && t.Title != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitle allocates a new t.Title and returns the pointer to it.
+func (t *ToplistWidget) SetTitle(v bool) {
+ t.Title = &v
+}
+
+// GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTitleAlign() string {
+ if t == nil || t.TitleAlign == nil {
+ return ""
+ }
+ return *t.TitleAlign
+}
+
+// GetOkTitleAlign returns a tuple with the TitleAlign field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTitleAlignOk() (string, bool) {
+ if t == nil || t.TitleAlign == nil {
+ return "", false
+ }
+ return *t.TitleAlign, true
+}
+
+// HasTitleAlign returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTitleAlign() bool {
+ if t != nil && t.TitleAlign != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleAlign allocates a new t.TitleAlign and returns the pointer to it.
+func (t *ToplistWidget) SetTitleAlign(v string) {
+ t.TitleAlign = &v
+}
+
+// GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTitleSize() TextSize {
+ if t == nil || t.TitleSize == nil {
+ return TextSize{}
+ }
+ return *t.TitleSize
+}
+
+// GetOkTitleSize returns a tuple with the TitleSize field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTitleSizeOk() (TextSize, bool) {
+ if t == nil || t.TitleSize == nil {
+ return TextSize{}, false
+ }
+ return *t.TitleSize, true
+}
+
+// HasTitleSize returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTitleSize() bool {
+ if t != nil && t.TitleSize != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleSize allocates a new t.TitleSize and returns the pointer to it.
+func (t *ToplistWidget) SetTitleSize(v TextSize) {
+ t.TitleSize = &v
+}
+
+// GetTitleText returns the TitleText field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetTitleText() string {
+ if t == nil || t.TitleText == nil {
+ return ""
+ }
+ return *t.TitleText
+}
+
+// GetOkTitleText returns a tuple with the TitleText field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTitleTextOk() (string, bool) {
+ if t == nil || t.TitleText == nil {
+ return "", false
+ }
+ return *t.TitleText, true
+}
+
+// HasTitleText returns a boolean if a field has been set.
+func (t *ToplistWidget) HasTitleText() bool {
+ if t != nil && t.TitleText != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTitleText allocates a new t.TitleText and returns the pointer to it.
+func (t *ToplistWidget) SetTitleText(v string) {
+ t.TitleText = &v
+}
+
+// GetType returns the Type field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetType() string {
+ if t == nil || t.Type == nil {
+ return ""
+ }
+ return *t.Type
+}
+
+// GetOkType returns a tuple with the Type field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetTypeOk() (string, bool) {
+ if t == nil || t.Type == nil {
+ return "", false
+ }
+ return *t.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (t *ToplistWidget) HasType() bool {
+ if t != nil && t.Type != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetType allocates a new t.Type and returns the pointer to it.
+func (t *ToplistWidget) SetType(v string) {
+ t.Type = &v
+}
+
+// GetWidth returns the Width field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetWidth() int {
+ if t == nil || t.Width == nil {
+ return 0
+ }
+ return *t.Width
+}
+
+// GetOkWidth 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 (t *ToplistWidget) GetWidthOk() (int, bool) {
+ if t == nil || t.Width == nil {
+ return 0, false
+ }
+ return *t.Width, true
+}
+
+// HasWidth returns a boolean if a field has been set.
+func (t *ToplistWidget) HasWidth() bool {
+ if t != nil && t.Width != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetWidth allocates a new t.Width and returns the pointer to it.
+func (t *ToplistWidget) SetWidth(v int) {
+ t.Width = &v
+}
+
+// GetX returns the X field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetX() int {
+ if t == nil || t.X == nil {
+ return 0
+ }
+ return *t.X
+}
+
+// GetOkX returns a tuple with the X field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetXOk() (int, bool) {
+ if t == nil || t.X == nil {
+ return 0, false
+ }
+ return *t.X, true
+}
+
+// HasX returns a boolean if a field has been set.
+func (t *ToplistWidget) HasX() bool {
+ if t != nil && t.X != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetX allocates a new t.X and returns the pointer to it.
+func (t *ToplistWidget) SetX(v int) {
+ t.X = &v
+}
+
+// GetY returns the Y field if non-nil, zero value otherwise.
+func (t *ToplistWidget) GetY() int {
+ if t == nil || t.Y == nil {
+ return 0
+ }
+ return *t.Y
+}
+
+// GetOkY returns a tuple with the Y field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (t *ToplistWidget) GetYOk() (int, bool) {
+ if t == nil || t.Y == nil {
+ return 0, false
+ }
+ return *t.Y, true
+}
+
+// HasY returns a boolean if a field has been set.
+func (t *ToplistWidget) HasY() bool {
+ if t != nil && t.Y != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetY allocates a new t.Y and returns the pointer to it.
+func (t *ToplistWidget) SetY(v int) {
+ t.Y = &v
+}
+
+// GetAccessRole returns the AccessRole field if non-nil, zero value otherwise.
+func (u *User) GetAccessRole() string {
+ if u == nil || u.AccessRole == nil {
+ return ""
+ }
+ return *u.AccessRole
+}
+
+// GetOkAccessRole returns a tuple with the AccessRole field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetAccessRoleOk() (string, bool) {
+ if u == nil || u.AccessRole == nil {
+ return "", false
+ }
+ return *u.AccessRole, true
+}
+
+// HasAccessRole returns a boolean if a field has been set.
+func (u *User) HasAccessRole() bool {
+ if u != nil && u.AccessRole != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAccessRole allocates a new u.AccessRole and returns the pointer to it.
+func (u *User) SetAccessRole(v string) {
+ u.AccessRole = &v
+}
+
+// GetDisabled returns the Disabled field if non-nil, zero value otherwise.
+func (u *User) GetDisabled() bool {
+ if u == nil || u.Disabled == nil {
+ return false
+ }
+ return *u.Disabled
+}
+
+// GetOkDisabled returns a tuple with the Disabled field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetDisabledOk() (bool, bool) {
+ if u == nil || u.Disabled == nil {
+ return false, false
+ }
+ return *u.Disabled, true
+}
+
+// HasDisabled returns a boolean if a field has been set.
+func (u *User) HasDisabled() bool {
+ if u != nil && u.Disabled != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDisabled allocates a new u.Disabled and returns the pointer to it.
+func (u *User) SetDisabled(v bool) {
+ u.Disabled = &v
+}
+
+// GetEmail returns the Email field if non-nil, zero value otherwise.
+func (u *User) GetEmail() string {
+ if u == nil || u.Email == nil {
+ return ""
+ }
+ return *u.Email
+}
+
+// GetOkEmail returns a tuple with the Email field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetEmailOk() (string, bool) {
+ if u == nil || u.Email == nil {
+ return "", false
+ }
+ return *u.Email, true
+}
+
+// HasEmail returns a boolean if a field has been set.
+func (u *User) HasEmail() bool {
+ if u != nil && u.Email != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEmail allocates a new u.Email and returns the pointer to it.
+func (u *User) SetEmail(v string) {
+ u.Email = &v
+}
+
+// GetHandle returns the Handle field if non-nil, zero value otherwise.
+func (u *User) GetHandle() string {
+ if u == nil || u.Handle == nil {
+ return ""
+ }
+ return *u.Handle
+}
+
+// GetOkHandle returns a tuple with the Handle field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetHandleOk() (string, bool) {
+ if u == nil || u.Handle == nil {
+ return "", false
+ }
+ return *u.Handle, true
+}
+
+// HasHandle returns a boolean if a field has been set.
+func (u *User) HasHandle() bool {
+ if u != nil && u.Handle != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHandle allocates a new u.Handle and returns the pointer to it.
+func (u *User) SetHandle(v string) {
+ u.Handle = &v
+}
+
+// GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.
+func (u *User) GetIsAdmin() bool {
+ if u == nil || u.IsAdmin == nil {
+ return false
+ }
+ return *u.IsAdmin
+}
+
+// GetOkIsAdmin returns a tuple with the IsAdmin field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetIsAdminOk() (bool, bool) {
+ if u == nil || u.IsAdmin == nil {
+ return false, false
+ }
+ return *u.IsAdmin, true
+}
+
+// HasIsAdmin returns a boolean if a field has been set.
+func (u *User) HasIsAdmin() bool {
+ if u != nil && u.IsAdmin != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIsAdmin allocates a new u.IsAdmin and returns the pointer to it.
+func (u *User) SetIsAdmin(v bool) {
+ u.IsAdmin = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (u *User) GetName() string {
+ if u == nil || u.Name == nil {
+ return ""
+ }
+ return *u.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetNameOk() (string, bool) {
+ if u == nil || u.Name == nil {
+ return "", false
+ }
+ return *u.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (u *User) HasName() bool {
+ if u != nil && u.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new u.Name and returns the pointer to it.
+func (u *User) SetName(v string) {
+ u.Name = &v
+}
+
+// GetRole returns the Role field if non-nil, zero value otherwise.
+func (u *User) GetRole() string {
+ if u == nil || u.Role == nil {
+ return ""
+ }
+ return *u.Role
+}
+
+// GetOkRole returns a tuple with the Role field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetRoleOk() (string, bool) {
+ if u == nil || u.Role == nil {
+ return "", false
+ }
+ return *u.Role, true
+}
+
+// HasRole returns a boolean if a field has been set.
+func (u *User) HasRole() bool {
+ if u != nil && u.Role != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetRole allocates a new u.Role and returns the pointer to it.
+func (u *User) SetRole(v string) {
+ u.Role = &v
+}
+
+// GetVerified returns the Verified field if non-nil, zero value otherwise.
+func (u *User) GetVerified() bool {
+ if u == nil || u.Verified == nil {
+ return false
+ }
+ return *u.Verified
+}
+
+// GetOkVerified returns a tuple with the Verified field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (u *User) GetVerifiedOk() (bool, bool) {
+ if u == nil || u.Verified == nil {
+ return false, false
+ }
+ return *u.Verified, true
+}
+
+// HasVerified returns a boolean if a field has been set.
+func (u *User) HasVerified() bool {
+ if u != nil && u.Verified != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetVerified allocates a new u.Verified and returns the pointer to it.
+func (u *User) SetVerified(v bool) {
+ u.Verified = &v
+}
+
+// GetAlertGraphWidget returns the AlertGraphWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetAlertGraphWidget() AlertGraphWidget {
+ if w == nil || w.AlertGraphWidget == nil {
+ return AlertGraphWidget{}
+ }
+ return *w.AlertGraphWidget
+}
+
+// GetOkAlertGraphWidget returns a tuple with the AlertGraphWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetAlertGraphWidgetOk() (AlertGraphWidget, bool) {
+ if w == nil || w.AlertGraphWidget == nil {
+ return AlertGraphWidget{}, false
+ }
+ return *w.AlertGraphWidget, true
+}
+
+// HasAlertGraphWidget returns a boolean if a field has been set.
+func (w *Widget) HasAlertGraphWidget() bool {
+ if w != nil && w.AlertGraphWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAlertGraphWidget allocates a new w.AlertGraphWidget and returns the pointer to it.
+func (w *Widget) SetAlertGraphWidget(v AlertGraphWidget) {
+ w.AlertGraphWidget = &v
+}
+
+// GetAlertValueWidget returns the AlertValueWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetAlertValueWidget() AlertValueWidget {
+ if w == nil || w.AlertValueWidget == nil {
+ return AlertValueWidget{}
+ }
+ return *w.AlertValueWidget
+}
+
+// GetOkAlertValueWidget returns a tuple with the AlertValueWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetAlertValueWidgetOk() (AlertValueWidget, bool) {
+ if w == nil || w.AlertValueWidget == nil {
+ return AlertValueWidget{}, false
+ }
+ return *w.AlertValueWidget, true
+}
+
+// HasAlertValueWidget returns a boolean if a field has been set.
+func (w *Widget) HasAlertValueWidget() bool {
+ if w != nil && w.AlertValueWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetAlertValueWidget allocates a new w.AlertValueWidget and returns the pointer to it.
+func (w *Widget) SetAlertValueWidget(v AlertValueWidget) {
+ w.AlertValueWidget = &v
+}
+
+// GetChangeWidget returns the ChangeWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetChangeWidget() ChangeWidget {
+ if w == nil || w.ChangeWidget == nil {
+ return ChangeWidget{}
+ }
+ return *w.ChangeWidget
+}
+
+// GetOkChangeWidget returns a tuple with the ChangeWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetChangeWidgetOk() (ChangeWidget, bool) {
+ if w == nil || w.ChangeWidget == nil {
+ return ChangeWidget{}, false
+ }
+ return *w.ChangeWidget, true
+}
+
+// HasChangeWidget returns a boolean if a field has been set.
+func (w *Widget) HasChangeWidget() bool {
+ if w != nil && w.ChangeWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetChangeWidget allocates a new w.ChangeWidget and returns the pointer to it.
+func (w *Widget) SetChangeWidget(v ChangeWidget) {
+ w.ChangeWidget = &v
+}
+
+// GetCheckStatusWidget returns the CheckStatusWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetCheckStatusWidget() CheckStatusWidget {
+ if w == nil || w.CheckStatusWidget == nil {
+ return CheckStatusWidget{}
+ }
+ return *w.CheckStatusWidget
+}
+
+// GetOkCheckStatusWidget returns a tuple with the CheckStatusWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetCheckStatusWidgetOk() (CheckStatusWidget, bool) {
+ if w == nil || w.CheckStatusWidget == nil {
+ return CheckStatusWidget{}, false
+ }
+ return *w.CheckStatusWidget, true
+}
+
+// HasCheckStatusWidget returns a boolean if a field has been set.
+func (w *Widget) HasCheckStatusWidget() bool {
+ if w != nil && w.CheckStatusWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCheckStatusWidget allocates a new w.CheckStatusWidget and returns the pointer to it.
+func (w *Widget) SetCheckStatusWidget(v CheckStatusWidget) {
+ w.CheckStatusWidget = &v
+}
+
+// GetDefault returns the Default field if non-nil, zero value otherwise.
+func (w *Widget) GetDefault() string {
+ if w == nil || w.Default == nil {
+ return ""
+ }
+ return *w.Default
+}
+
+// GetOkDefault returns a tuple with the Default field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetDefaultOk() (string, bool) {
+ if w == nil || w.Default == nil {
+ return "", false
+ }
+ return *w.Default, true
+}
+
+// HasDefault returns a boolean if a field has been set.
+func (w *Widget) HasDefault() bool {
+ if w != nil && w.Default != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetDefault allocates a new w.Default and returns the pointer to it.
+func (w *Widget) SetDefault(v string) {
+ w.Default = &v
+}
+
+// GetEventStreamWidget returns the EventStreamWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetEventStreamWidget() EventStreamWidget {
+ if w == nil || w.EventStreamWidget == nil {
+ return EventStreamWidget{}
+ }
+ return *w.EventStreamWidget
+}
+
+// GetOkEventStreamWidget returns a tuple with the EventStreamWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetEventStreamWidgetOk() (EventStreamWidget, bool) {
+ if w == nil || w.EventStreamWidget == nil {
+ return EventStreamWidget{}, false
+ }
+ return *w.EventStreamWidget, true
+}
+
+// HasEventStreamWidget returns a boolean if a field has been set.
+func (w *Widget) HasEventStreamWidget() bool {
+ if w != nil && w.EventStreamWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEventStreamWidget allocates a new w.EventStreamWidget and returns the pointer to it.
+func (w *Widget) SetEventStreamWidget(v EventStreamWidget) {
+ w.EventStreamWidget = &v
+}
+
+// GetEventTimelineWidget returns the EventTimelineWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetEventTimelineWidget() EventTimelineWidget {
+ if w == nil || w.EventTimelineWidget == nil {
+ return EventTimelineWidget{}
+ }
+ return *w.EventTimelineWidget
+}
+
+// GetOkEventTimelineWidget returns a tuple with the EventTimelineWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetEventTimelineWidgetOk() (EventTimelineWidget, bool) {
+ if w == nil || w.EventTimelineWidget == nil {
+ return EventTimelineWidget{}, false
+ }
+ return *w.EventTimelineWidget, true
+}
+
+// HasEventTimelineWidget returns a boolean if a field has been set.
+func (w *Widget) HasEventTimelineWidget() bool {
+ if w != nil && w.EventTimelineWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetEventTimelineWidget allocates a new w.EventTimelineWidget and returns the pointer to it.
+func (w *Widget) SetEventTimelineWidget(v EventTimelineWidget) {
+ w.EventTimelineWidget = &v
+}
+
+// GetFreeTextWidget returns the FreeTextWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetFreeTextWidget() FreeTextWidget {
+ if w == nil || w.FreeTextWidget == nil {
+ return FreeTextWidget{}
+ }
+ return *w.FreeTextWidget
+}
+
+// GetOkFreeTextWidget returns a tuple with the FreeTextWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetFreeTextWidgetOk() (FreeTextWidget, bool) {
+ if w == nil || w.FreeTextWidget == nil {
+ return FreeTextWidget{}, false
+ }
+ return *w.FreeTextWidget, true
+}
+
+// HasFreeTextWidget returns a boolean if a field has been set.
+func (w *Widget) HasFreeTextWidget() bool {
+ if w != nil && w.FreeTextWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetFreeTextWidget allocates a new w.FreeTextWidget and returns the pointer to it.
+func (w *Widget) SetFreeTextWidget(v FreeTextWidget) {
+ w.FreeTextWidget = &v
+}
+
+// GetGraphWidget returns the GraphWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetGraphWidget() GraphWidget {
+ if w == nil || w.GraphWidget == nil {
+ return GraphWidget{}
+ }
+ return *w.GraphWidget
+}
+
+// GetOkGraphWidget returns a tuple with the GraphWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetGraphWidgetOk() (GraphWidget, bool) {
+ if w == nil || w.GraphWidget == nil {
+ return GraphWidget{}, false
+ }
+ return *w.GraphWidget, true
+}
+
+// HasGraphWidget returns a boolean if a field has been set.
+func (w *Widget) HasGraphWidget() bool {
+ if w != nil && w.GraphWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetGraphWidget allocates a new w.GraphWidget and returns the pointer to it.
+func (w *Widget) SetGraphWidget(v GraphWidget) {
+ w.GraphWidget = &v
+}
+
+// GetHostMapWidget returns the HostMapWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetHostMapWidget() HostMapWidget {
+ if w == nil || w.HostMapWidget == nil {
+ return HostMapWidget{}
+ }
+ return *w.HostMapWidget
+}
+
+// GetOkHostMapWidget returns a tuple with the HostMapWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetHostMapWidgetOk() (HostMapWidget, bool) {
+ if w == nil || w.HostMapWidget == nil {
+ return HostMapWidget{}, false
+ }
+ return *w.HostMapWidget, true
+}
+
+// HasHostMapWidget returns a boolean if a field has been set.
+func (w *Widget) HasHostMapWidget() bool {
+ if w != nil && w.HostMapWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetHostMapWidget allocates a new w.HostMapWidget and returns the pointer to it.
+func (w *Widget) SetHostMapWidget(v HostMapWidget) {
+ w.HostMapWidget = &v
+}
+
+// GetIFrameWidget returns the IFrameWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetIFrameWidget() IFrameWidget {
+ if w == nil || w.IFrameWidget == nil {
+ return IFrameWidget{}
+ }
+ return *w.IFrameWidget
+}
+
+// GetOkIFrameWidget returns a tuple with the IFrameWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetIFrameWidgetOk() (IFrameWidget, bool) {
+ if w == nil || w.IFrameWidget == nil {
+ return IFrameWidget{}, false
+ }
+ return *w.IFrameWidget, true
+}
+
+// HasIFrameWidget returns a boolean if a field has been set.
+func (w *Widget) HasIFrameWidget() bool {
+ if w != nil && w.IFrameWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIFrameWidget allocates a new w.IFrameWidget and returns the pointer to it.
+func (w *Widget) SetIFrameWidget(v IFrameWidget) {
+ w.IFrameWidget = &v
+}
+
+// GetImageWidget returns the ImageWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetImageWidget() ImageWidget {
+ if w == nil || w.ImageWidget == nil {
+ return ImageWidget{}
+ }
+ return *w.ImageWidget
+}
+
+// GetOkImageWidget returns a tuple with the ImageWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetImageWidgetOk() (ImageWidget, bool) {
+ if w == nil || w.ImageWidget == nil {
+ return ImageWidget{}, false
+ }
+ return *w.ImageWidget, true
+}
+
+// HasImageWidget returns a boolean if a field has been set.
+func (w *Widget) HasImageWidget() bool {
+ if w != nil && w.ImageWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetImageWidget allocates a new w.ImageWidget and returns the pointer to it.
+func (w *Widget) SetImageWidget(v ImageWidget) {
+ w.ImageWidget = &v
+}
+
+// GetName returns the Name field if non-nil, zero value otherwise.
+func (w *Widget) GetName() string {
+ if w == nil || w.Name == nil {
+ return ""
+ }
+ return *w.Name
+}
+
+// GetOkName returns a tuple with the Name field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetNameOk() (string, bool) {
+ if w == nil || w.Name == nil {
+ return "", false
+ }
+ return *w.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (w *Widget) HasName() bool {
+ if w != nil && w.Name != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetName allocates a new w.Name and returns the pointer to it.
+func (w *Widget) SetName(v string) {
+ w.Name = &v
+}
+
+// GetNoteWidget returns the NoteWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetNoteWidget() NoteWidget {
+ if w == nil || w.NoteWidget == nil {
+ return NoteWidget{}
+ }
+ return *w.NoteWidget
+}
+
+// GetOkNoteWidget returns a tuple with the NoteWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetNoteWidgetOk() (NoteWidget, bool) {
+ if w == nil || w.NoteWidget == nil {
+ return NoteWidget{}, false
+ }
+ return *w.NoteWidget, true
+}
+
+// HasNoteWidget returns a boolean if a field has been set.
+func (w *Widget) HasNoteWidget() bool {
+ if w != nil && w.NoteWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetNoteWidget allocates a new w.NoteWidget and returns the pointer to it.
+func (w *Widget) SetNoteWidget(v NoteWidget) {
+ w.NoteWidget = &v
+}
+
+// GetPrefix returns the Prefix field if non-nil, zero value otherwise.
+func (w *Widget) GetPrefix() string {
+ if w == nil || w.Prefix == nil {
+ return ""
+ }
+ return *w.Prefix
+}
+
+// GetOkPrefix returns a tuple with the Prefix field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetPrefixOk() (string, bool) {
+ if w == nil || w.Prefix == nil {
+ return "", false
+ }
+ return *w.Prefix, true
+}
+
+// HasPrefix returns a boolean if a field has been set.
+func (w *Widget) HasPrefix() bool {
+ if w != nil && w.Prefix != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetPrefix allocates a new w.Prefix and returns the pointer to it.
+func (w *Widget) SetPrefix(v string) {
+ w.Prefix = &v
+}
+
+// GetQueryValueWidget returns the QueryValueWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetQueryValueWidget() QueryValueWidget {
+ if w == nil || w.QueryValueWidget == nil {
+ return QueryValueWidget{}
+ }
+ return *w.QueryValueWidget
+}
+
+// GetOkQueryValueWidget returns a tuple with the QueryValueWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetQueryValueWidgetOk() (QueryValueWidget, bool) {
+ if w == nil || w.QueryValueWidget == nil {
+ return QueryValueWidget{}, false
+ }
+ return *w.QueryValueWidget, true
+}
+
+// HasQueryValueWidget returns a boolean if a field has been set.
+func (w *Widget) HasQueryValueWidget() bool {
+ if w != nil && w.QueryValueWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetQueryValueWidget allocates a new w.QueryValueWidget and returns the pointer to it.
+func (w *Widget) SetQueryValueWidget(v QueryValueWidget) {
+ w.QueryValueWidget = &v
+}
+
+// GetTimeseriesWidget returns the TimeseriesWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetTimeseriesWidget() TimeseriesWidget {
+ if w == nil || w.TimeseriesWidget == nil {
+ return TimeseriesWidget{}
+ }
+ return *w.TimeseriesWidget
+}
+
+// GetOkTimeseriesWidget returns a tuple with the TimeseriesWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetTimeseriesWidgetOk() (TimeseriesWidget, bool) {
+ if w == nil || w.TimeseriesWidget == nil {
+ return TimeseriesWidget{}, false
+ }
+ return *w.TimeseriesWidget, true
+}
+
+// HasTimeseriesWidget returns a boolean if a field has been set.
+func (w *Widget) HasTimeseriesWidget() bool {
+ if w != nil && w.TimeseriesWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetTimeseriesWidget allocates a new w.TimeseriesWidget and returns the pointer to it.
+func (w *Widget) SetTimeseriesWidget(v TimeseriesWidget) {
+ w.TimeseriesWidget = &v
+}
+
+// GetToplistWidget returns the ToplistWidget field if non-nil, zero value otherwise.
+func (w *Widget) GetToplistWidget() ToplistWidget {
+ if w == nil || w.ToplistWidget == nil {
+ return ToplistWidget{}
+ }
+ return *w.ToplistWidget
+}
+
+// GetOkToplistWidget returns a tuple with the ToplistWidget field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (w *Widget) GetToplistWidgetOk() (ToplistWidget, bool) {
+ if w == nil || w.ToplistWidget == nil {
+ return ToplistWidget{}, false
+ }
+ return *w.ToplistWidget, true
+}
+
+// HasToplistWidget returns a boolean if a field has been set.
+func (w *Widget) HasToplistWidget() bool {
+ if w != nil && w.ToplistWidget != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetToplistWidget allocates a new w.ToplistWidget and returns the pointer to it.
+func (w *Widget) SetToplistWidget(v ToplistWidget) {
+ w.ToplistWidget = &v
+}
+
+// GetMax returns the Max field if non-nil, zero value otherwise.
+func (y *Yaxis) GetMax() float64 {
+ if y == nil || y.Max == nil {
+ return 0
+ }
+ return *y.Max
+}
+
+// GetOkMax returns a tuple with the Max field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (y *Yaxis) GetMaxOk() (float64, bool) {
+ if y == nil || y.Max == nil {
+ return 0, false
+ }
+ return *y.Max, true
+}
+
+// HasMax returns a boolean if a field has been set.
+func (y *Yaxis) HasMax() bool {
+ if y != nil && y.Max != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMax allocates a new y.Max and returns the pointer to it.
+func (y *Yaxis) SetMax(v float64) {
+ y.Max = &v
+}
+
+// GetMin returns the Min field if non-nil, zero value otherwise.
+func (y *Yaxis) GetMin() float64 {
+ if y == nil || y.Min == nil {
+ return 0
+ }
+ return *y.Min
+}
+
+// GetOkMin returns a tuple with the Min field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (y *Yaxis) GetMinOk() (float64, bool) {
+ if y == nil || y.Min == nil {
+ return 0, false
+ }
+ return *y.Min, true
+}
+
+// HasMin returns a boolean if a field has been set.
+func (y *Yaxis) HasMin() bool {
+ if y != nil && y.Min != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMin allocates a new y.Min and returns the pointer to it.
+func (y *Yaxis) SetMin(v float64) {
+ y.Min = &v
+}
+
+// GetScale returns the Scale field if non-nil, zero value otherwise.
+func (y *Yaxis) GetScale() string {
+ if y == nil || y.Scale == nil {
+ return ""
+ }
+ return *y.Scale
+}
+
+// GetOkScale returns a tuple with the Scale field if it's non-nil, zero value otherwise
+// and a boolean to check if the value has been set.
+func (y *Yaxis) GetScaleOk() (string, bool) {
+ if y == nil || y.Scale == nil {
+ return "", false
+ }
+ return *y.Scale, true
+}
+
+// HasScale returns a boolean if a field has been set.
+func (y *Yaxis) HasScale() bool {
+ if y != nil && y.Scale != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetScale allocates a new y.Scale and returns the pointer to it.
+func (y *Yaxis) SetScale(v string) {
+ y.Scale = &v
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/downtimes.go b/vendor/github.com/zorkian/go-datadog-api/downtimes.go
new file mode 100644
index 00000000..0e11b57a
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/downtimes.go
@@ -0,0 +1,81 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+)
+
+type Recurrence struct {
+ Period *int `json:"period,omitempty"`
+ Type *string `json:"type,omitempty"`
+ UntilDate *int `json:"until_date,omitempty"`
+ UntilOccurrences *int `json:"until_occurrences,omitempty"`
+ WeekDays []string `json:"week_days,omitempty"`
+}
+
+type Downtime struct {
+ Active *bool `json:"active,omitempty"`
+ Canceled *int `json:"canceled,omitempty"`
+ Disabled *bool `json:"disabled,omitempty"`
+ End *int `json:"end,omitempty"`
+ Id *int `json:"id,omitempty"`
+ MonitorId *int `json:"monitor_id,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Recurrence *Recurrence `json:"recurrence,omitempty"`
+ Scope []string `json:"scope,omitempty"`
+ Start *int `json:"start,omitempty"`
+}
+
+// reqDowntimes retrieves a slice of all Downtimes.
+type reqDowntimes struct {
+ Downtimes []Downtime `json:"downtimes,omitempty"`
+}
+
+// CreateDowntime adds a new downtme to the system. This returns a pointer
+// to a Downtime so you can pass that to UpdateDowntime or CancelDowntime
+// later if needed.
+func (client *Client) CreateDowntime(downtime *Downtime) (*Downtime, error) {
+ var out Downtime
+ if err := client.doJsonRequest("POST", "/v1/downtime", downtime, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// UpdateDowntime takes a downtime that was previously retrieved through some method
+// and sends it back to the server.
+func (client *Client) UpdateDowntime(downtime *Downtime) error {
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/downtime/%d", *downtime.Id),
+ downtime, nil)
+}
+
+// Getdowntime retrieves an downtime by identifier.
+func (client *Client) GetDowntime(id int) (*Downtime, error) {
+ var out Downtime
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/downtime/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// DeleteDowntime removes an downtime from the system.
+func (client *Client) DeleteDowntime(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/downtime/%d", id),
+ nil, nil)
+}
+
+// GetDowntimes returns a slice of all downtimes.
+func (client *Client) GetDowntimes() ([]Downtime, error) {
+ var out reqDowntimes
+ if err := client.doJsonRequest("GET", "/v1/downtime", nil, &out.Downtimes); err != nil {
+ return nil, err
+ }
+ return out.Downtimes, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/events.go b/vendor/github.com/zorkian/go-datadog-api/events.go
new file mode 100644
index 00000000..0aeedef1
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/events.go
@@ -0,0 +1,87 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+ "net/url"
+ "strconv"
+)
+
+// Event is a single event. If this is being used to post an event, then not
+// all fields will be filled out.
+type Event struct {
+ Id *int `json:"id,omitempty"`
+ Title *string `json:"title,omitempty"`
+ Text *string `json:"text,omitempty"`
+ Time *int `json:"date_happened,omitempty"` // UNIX time.
+ Priority *string `json:"priority,omitempty"`
+ AlertType *string `json:"alert_type,omitempty"`
+ Host *string `json:"host,omitempty"`
+ Aggregation *string `json:"aggregation_key,omitempty"`
+ SourceType *string `json:"source_type_name,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ Url *string `json:"url,omitempty"`
+ Resource *string `json:"resource,omitempty"`
+ EventType *string `json:"event_type,omitempty"`
+}
+
+// reqGetEvent is the container for receiving a single event.
+type reqGetEvent struct {
+ Event *Event `json:"event,omitempty"`
+}
+
+// reqGetEvents is for returning many events.
+type reqGetEvents struct {
+ Events []Event `json:"events,omitempty"`
+}
+
+// PostEvent takes as input an event and then posts it to the server.
+func (client *Client) PostEvent(event *Event) (*Event, error) {
+ var out reqGetEvent
+ if err := client.doJsonRequest("POST", "/v1/events", event, &out); err != nil {
+ return nil, err
+ }
+ return out.Event, nil
+}
+
+// GetEvent gets a single event given an identifier.
+func (client *Client) GetEvent(id int) (*Event, error) {
+ var out reqGetEvent
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/events/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Event, nil
+}
+
+// QueryEvents returns a slice of events from the query stream.
+func (client *Client) GetEvents(start, end int,
+ priority, sources, tags string) ([]Event, error) {
+ // Since this is a GET request, we need to build a query string.
+ vals := url.Values{}
+ vals.Add("start", strconv.Itoa(start))
+ vals.Add("end", strconv.Itoa(end))
+ if priority != "" {
+ vals.Add("priority", priority)
+ }
+ if sources != "" {
+ vals.Add("sources", sources)
+ }
+ if tags != "" {
+ vals.Add("tags", tags)
+ }
+
+ // Now the request and response.
+ var out reqGetEvents
+ if err := client.doJsonRequest("GET",
+ fmt.Sprintf("/v1/events?%s", vals.Encode()), nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Events, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/generate.go b/vendor/github.com/zorkian/go-datadog-api/generate.go
new file mode 100644
index 00000000..a2bf2fff
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/generate.go
@@ -0,0 +1,3 @@
+package datadog
+
+//go:generate go run cmd/tools/gen-accessors.go -v
diff --git a/vendor/github.com/zorkian/go-datadog-api/helpers.go b/vendor/github.com/zorkian/go-datadog-api/helpers.go
new file mode 100644
index 00000000..866cdc5f
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/helpers.go
@@ -0,0 +1,67 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2017 by authors and contributors.
+ */
+
+package datadog
+
+import "encoding/json"
+
+// Bool is a helper routine that allocates a new bool value
+// to store v and returns a pointer to it.
+func Bool(v bool) *bool { return &v }
+
+// GetBool is a helper routine that returns a boolean representing
+// if a value was set, and if so, dereferences the pointer to it.
+func GetBool(v *bool) (bool, bool) {
+ if v != nil {
+ return *v, true
+ }
+
+ return false, false
+}
+
+// Int is a helper routine that allocates a new int value
+// to store v and returns a pointer to it.
+func Int(v int) *int { return &v }
+
+// GetInt is a helper routine that returns a boolean representing
+// if a value was set, and if so, dereferences the pointer to it.
+func GetIntOk(v *int) (int, bool) {
+ if v != nil {
+ return *v, true
+ }
+
+ return 0, false
+}
+
+// String is a helper routine that allocates a new string value
+// to store v and returns a pointer to it.
+func String(v string) *string { return &v }
+
+// GetString is a helper routine that returns a boolean representing
+// if a value was set, and if so, dereferences the pointer to it.
+func GetStringOk(v *string) (string, bool) {
+ if v != nil {
+ return *v, true
+ }
+
+ return "", false
+}
+
+// JsonNumber is a helper routine that allocates a new string value
+// to store v and returns a pointer to it.
+func JsonNumber(v json.Number) *json.Number { return &v }
+
+// GetJsonNumber is a helper routine that returns a boolean representing
+// if a value was set, and if so, dereferences the pointer to it.
+func GetJsonNumberOk(v *json.Number) (json.Number, bool) {
+ if v != nil {
+ return *v, true
+ }
+
+ return "", false
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/hosts.go b/vendor/github.com/zorkian/go-datadog-api/hosts.go
new file mode 100644
index 00000000..fed7ef0e
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/hosts.go
@@ -0,0 +1,33 @@
+package datadog
+
+type HostActionResp struct {
+ Action string `json:"action"`
+ Hostname string `json:"hostname"`
+ Message string `json:"message,omitempty"`
+}
+
+type HostActionMute struct {
+ Message *string `json:"message,omitempty"`
+ EndTime *string `json:"end,omitempty"`
+ Override *bool `json:"override,omitempty"`
+}
+
+// MuteHost mutes all monitors for the given host
+func (client *Client) MuteHost(host string, action *HostActionMute) (*HostActionResp, error) {
+ var out HostActionResp
+ uri := "/v1/host/" + host + "/mute"
+ if err := client.doJsonRequest("POST", uri, action, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// UnmuteHost unmutes all monitors for the given host
+func (client *Client) UnmuteHost(host string) (*HostActionResp, error) {
+ var out HostActionResp
+ uri := "/v1/host/" + host + "/unmute"
+ if err := client.doJsonRequest("POST", uri, nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/integrations.go b/vendor/github.com/zorkian/go-datadog-api/integrations.go
new file mode 100644
index 00000000..c3ed2f4e
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/integrations.go
@@ -0,0 +1,178 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2018 by authors and contributors.
+ */
+
+package datadog
+
+/*
+ PagerDuty Integration
+*/
+
+type servicePD struct {
+ ServiceName *string `json:"service_name"`
+ ServiceKey *string `json:"service_key"`
+}
+
+type integrationPD struct {
+ Services []servicePD `json:"services"`
+ Subdomain *string `json:"subdomain"`
+ Schedules []string `json:"schedules"`
+ APIToken *string `json:"api_token"`
+}
+
+// ServicePDRequest defines the Services struct that is part of the IntegrationPDRequest.
+type ServicePDRequest struct {
+ ServiceName *string `json:"service_name"`
+ ServiceKey *string `json:"service_key"`
+}
+
+// IntegrationPDRequest defines the request payload for
+// creating & updating Datadog-PagerDuty integration.
+type IntegrationPDRequest struct {
+ Services []ServicePDRequest `json:"services,omitempty"`
+ Subdomain *string `json:"subdomain,omitempty"`
+ Schedules []string `json:"schedules,omitempty"`
+ APIToken *string `json:"api_token,omitempty"`
+ RunCheck *bool `json:"run_check,omitempty"`
+}
+
+// CreateIntegrationPD creates new PagerDuty Integrations.
+// Use this if you want to setup the integration for the first time
+// or to add more services/schedules.
+func (client *Client) CreateIntegrationPD(pdIntegration *IntegrationPDRequest) error {
+ return client.doJsonRequest("POST", "/v1/integration/pagerduty", pdIntegration, nil)
+}
+
+// UpdateIntegrationPD updates the PagerDuty Integration.
+// This will replace the existing values with the new values.
+func (client *Client) UpdateIntegrationPD(pdIntegration *IntegrationPDRequest) error {
+ return client.doJsonRequest("PUT", "/v1/integration/pagerduty", pdIntegration, nil)
+}
+
+// GetIntegrationPD gets all the PagerDuty Integrations from the system.
+func (client *Client) GetIntegrationPD() (*integrationPD, error) {
+ var out integrationPD
+ if err := client.doJsonRequest("GET", "/v1/integration/pagerduty", nil, &out); err != nil {
+ return nil, err
+ }
+
+ return &out, nil
+}
+
+// DeleteIntegrationPD removes the PagerDuty Integration from the system.
+func (client *Client) DeleteIntegrationPD() error {
+ return client.doJsonRequest("DELETE", "/v1/integration/pagerduty", nil, nil)
+}
+
+/*
+ Slack Integration
+*/
+
+// ServiceHookSlackRequest defines the ServiceHooks struct that is part of the IntegrationSlackRequest.
+type ServiceHookSlackRequest struct {
+ Account *string `json:"account"`
+ Url *string `json:"url"`
+}
+
+// ChannelSlackRequest defines the Channels struct that is part of the IntegrationSlackRequest.
+type ChannelSlackRequest struct {
+ ChannelName *string `json:"channel_name"`
+ TransferAllUserComments *bool `json:"transfer_all_user_comments,omitempty,string"`
+ Account *string `json:"account"`
+}
+
+// IntegrationSlackRequest defines the request payload for
+// creating & updating Datadog-Slack integration.
+type IntegrationSlackRequest struct {
+ ServiceHooks []ServiceHookSlackRequest `json:"service_hooks,omitempty"`
+ Channels []ChannelSlackRequest `json:"channels,omitempty"`
+ RunCheck *bool `json:"run_check,omitempty,string"`
+}
+
+// CreateIntegrationSlack creates new Slack Integrations.
+// Use this if you want to setup the integration for the first time
+// or to add more channels.
+func (client *Client) CreateIntegrationSlack(slackIntegration *IntegrationSlackRequest) error {
+ return client.doJsonRequest("POST", "/v1/integration/slack", slackIntegration, nil)
+}
+
+// UpdateIntegrationSlack updates the Slack Integration.
+// This will replace the existing values with the new values.
+func (client *Client) UpdateIntegrationSlack(slackIntegration *IntegrationSlackRequest) error {
+ return client.doJsonRequest("PUT", "/v1/integration/slack", slackIntegration, nil)
+}
+
+// GetIntegrationSlack gets all the Slack Integrations from the system.
+func (client *Client) GetIntegrationSlack() (*IntegrationSlackRequest, error) {
+ var out IntegrationSlackRequest
+ if err := client.doJsonRequest("GET", "/v1/integration/slack", nil, &out); err != nil {
+ return nil, err
+ }
+
+ return &out, nil
+}
+
+// DeleteIntegrationSlack removes the Slack Integration from the system.
+func (client *Client) DeleteIntegrationSlack() error {
+ return client.doJsonRequest("DELETE", "/v1/integration/slack", nil, nil)
+}
+
+/*
+ AWS Integration
+*/
+
+// IntegrationAWSAccount defines the request payload for
+// creating & updating Datadog-AWS integration.
+type IntegrationAWSAccount struct {
+ AccountID *string `json:"account_id"`
+ RoleName *string `json:"role_name"`
+ FilterTags []string `json:"filter_tags"`
+ HostTags []string `json:"host_tags"`
+ AccountSpecificNamespaceRules map[string]bool `json:"account_specific_namespace_rules"`
+}
+
+// IntegrationAWSAccountCreateResponse defines the response payload for
+// creating & updating Datadog-AWS integration.
+type IntegrationAWSAccountCreateResponse struct {
+ ExternalID string `json:"external_id"`
+}
+
+type IntegrationAWSAccountGetResponse struct {
+ Accounts []IntegrationAWSAccount `json:"accounts"`
+}
+
+type IntegrationAWSAccountDeleteRequest struct {
+ AccountID *string `json:"account_id"`
+ RoleName *string `json:"role_name"`
+}
+
+// CreateIntegrationAWS adds a new AWS Account in the AWS Integrations.
+// Use this if you want to setup the integration for the first time
+// or to add more accounts.
+func (client *Client) CreateIntegrationAWS(awsAccount *IntegrationAWSAccount) (*IntegrationAWSAccountCreateResponse, error) {
+ var out IntegrationAWSAccountCreateResponse
+ if err := client.doJsonRequest("POST", "/v1/integration/aws", awsAccount, &out); err != nil {
+ return nil, err
+ }
+
+ return &out, nil
+}
+
+// GetIntegrationAWS gets all the AWS Accounts in the AWS Integrations from Datadog.
+func (client *Client) GetIntegrationAWS() (*[]IntegrationAWSAccount, error) {
+ var response IntegrationAWSAccountGetResponse
+ if err := client.doJsonRequest("GET", "/v1/integration/aws", nil, &response); err != nil {
+ return nil, err
+ }
+
+ return &response.Accounts, nil
+}
+
+// DeleteIntegrationAWS removes a specific AWS Account from the AWS Integration.
+func (client *Client) DeleteIntegrationAWS(awsAccount *IntegrationAWSAccountDeleteRequest) error {
+ return client.doJsonRequest("DELETE", "/v1/integration/aws", awsAccount, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/metric_metadata.go b/vendor/github.com/zorkian/go-datadog-api/metric_metadata.go
new file mode 100644
index 00000000..af203a5d
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/metric_metadata.go
@@ -0,0 +1,39 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import "fmt"
+
+// MetricMetadata allows you to edit fields of a metric's metadata.
+type MetricMetadata struct {
+ Type *string `json:"type,omitempty"`
+ Description *string `json:"description,omitempty"`
+ ShortName *string `json:"short_name,omitempty"`
+ Unit *string `json:"unit,omitempty"`
+ PerUnit *string `json:"per_unit,omitempty"`
+ StatsdInterval *int `json:"statsd_interval,omitempty"`
+}
+
+// ViewMetricMetadata allows you to get metadata about a specific metric.
+func (client *Client) ViewMetricMetadata(mn string) (*MetricMetadata, error) {
+ var out MetricMetadata
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/metrics/%s", mn), nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// EditMetricMetadata edits the metadata for the given metric.
+func (client *Client) EditMetricMetadata(mn string, mm *MetricMetadata) (*MetricMetadata, error) {
+ var out MetricMetadata
+ if err := client.doJsonRequest("PUT", fmt.Sprintf("/v1/metrics/%s", mn), mm, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/monitors.go b/vendor/github.com/zorkian/go-datadog-api/monitors.go
new file mode 100644
index 00000000..3a97cc27
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/monitors.go
@@ -0,0 +1,177 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "encoding/json"
+ "fmt"
+ "net/url"
+ "strconv"
+ "strings"
+)
+
+type ThresholdCount struct {
+ Ok *json.Number `json:"ok,omitempty"`
+ Critical *json.Number `json:"critical,omitempty"`
+ Warning *json.Number `json:"warning,omitempty"`
+ Unknown *json.Number `json:"unknown,omitempty"`
+ CriticalRecovery *json.Number `json:"critical_recovery,omitempty"`
+ WarningRecovery *json.Number `json:"warning_recovery,omitempty"`
+}
+
+type NoDataTimeframe int
+
+func (tf *NoDataTimeframe) UnmarshalJSON(data []byte) error {
+ s := string(data)
+ if s == "false" || s == "null" {
+ *tf = 0
+ } else {
+ i, err := strconv.ParseInt(s, 10, 32)
+ if err != nil {
+ return err
+ }
+ *tf = NoDataTimeframe(i)
+ }
+ return nil
+}
+
+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"`
+ IncludeTags *bool `json:"include_tags,omitempty"`
+ RequireFullWindow *bool `json:"require_full_window,omitempty"`
+ Locked *bool `json:"locked,omitempty"`
+}
+
+// Monitor allows watching a metric or check that you care about,
+// notifying your team when some defined threshold is exceeded
+type Monitor struct {
+ Creator *Creator `json:"creator,omitempty"`
+ Id *int `json:"id,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Query *string `json:"query,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Message *string `json:"message,omitempty"`
+ OverallState *string `json:"overall_state,omitempty"`
+ Tags []string `json:"tags"`
+ Options *Options `json:"options,omitempty"`
+}
+
+// Creator contains the creator of the monitor
+type Creator struct {
+ Email *string `json:"email,omitempty"`
+ Handle *string `json:"handle,omitempty"`
+ Id *int `json:"id,omitempty"`
+ Name *string `json:"name,omitempty"`
+}
+
+// reqMonitors receives a slice of all monitors
+type reqMonitors struct {
+ Monitors []Monitor `json:"monitors,omitempty"`
+}
+
+// CreateMonitor adds a new monitor to the system. This returns a pointer to a
+// monitor so you can pass that to UpdateMonitor later if needed
+func (client *Client) CreateMonitor(monitor *Monitor) (*Monitor, error) {
+ var out Monitor
+ // TODO: is this more pretty of frowned upon?
+ if err := client.doJsonRequest("POST", "/v1/monitor", monitor, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// UpdateMonitor takes a monitor that was previously retrieved through some method
+// and sends it back to the server
+func (client *Client) UpdateMonitor(monitor *Monitor) error {
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/monitor/%d", *monitor.Id),
+ monitor, nil)
+}
+
+// GetMonitor retrieves a monitor by identifier
+func (client *Client) GetMonitor(id int) (*Monitor, error) {
+ var out Monitor
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/monitor/%d", id), nil, &out); err != nil {
+ return nil, err
+ }
+ return &out, nil
+}
+
+// GetMonitor retrieves monitors by name
+func (self *Client) GetMonitorsByName(name string) ([]Monitor, error) {
+ var out reqMonitors
+ query, err := url.ParseQuery(fmt.Sprintf("name=%v", name))
+ if err != nil {
+ return nil, err
+ }
+
+ err = self.doJsonRequest("GET", fmt.Sprintf("/v1/monitor?%v", query.Encode()), nil, &out.Monitors)
+ if err != nil {
+ return nil, err
+ }
+ return out.Monitors, nil
+}
+
+// GetMonitor retrieves monitors by a slice of tags
+func (self *Client) GetMonitorsByTags(tags []string) ([]Monitor, error) {
+ var out reqMonitors
+ query, err := url.ParseQuery(fmt.Sprintf("monitor_tags=%v", strings.Join(tags, ",")))
+ if err != nil {
+ return nil, err
+ }
+
+ err = self.doJsonRequest("GET", fmt.Sprintf("/v1/monitor?%v", query.Encode()), nil, &out.Monitors)
+ if err != nil {
+ return nil, err
+ }
+ return out.Monitors, nil
+}
+
+// DeleteMonitor removes a monitor from the system
+func (client *Client) DeleteMonitor(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/monitor/%d", id),
+ nil, nil)
+}
+
+// GetMonitors returns a slice of all monitors
+func (client *Client) GetMonitors() ([]Monitor, error) {
+ var out reqMonitors
+ if err := client.doJsonRequest("GET", "/v1/monitor", nil, &out.Monitors); err != nil {
+ return nil, err
+ }
+ return out.Monitors, nil
+}
+
+// MuteMonitors turns off monitoring notifications
+func (client *Client) MuteMonitors() error {
+ return client.doJsonRequest("POST", "/v1/monitor/mute_all", nil, nil)
+}
+
+// UnmuteMonitors turns on monitoring notifications
+func (client *Client) UnmuteMonitors() error {
+ return client.doJsonRequest("POST", "/v1/monitor/unmute_all", nil, nil)
+}
+
+// MuteMonitor turns off monitoring notifications for a monitor
+func (client *Client) MuteMonitor(id int) error {
+ return client.doJsonRequest("POST", fmt.Sprintf("/v1/monitor/%d/mute", id), nil, nil)
+}
+
+// UnmuteMonitor turns on monitoring notifications for a monitor
+func (client *Client) UnmuteMonitor(id int) error {
+ return client.doJsonRequest("POST", fmt.Sprintf("/v1/monitor/%d/unmute", id), nil, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/request.go b/vendor/github.com/zorkian/go-datadog-api/request.go
new file mode 100644
index 00000000..f65ac5a9
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/request.go
@@ -0,0 +1,194 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strings"
+ "time"
+
+ "github.com/cenkalti/backoff"
+)
+
+// uriForAPI is to be called with something like "/v1/events" and it will give
+// the proper request URI to be posted to.
+func (client *Client) uriForAPI(api string) (string, error) {
+ apiBase, err := url.Parse(client.baseUrl + "/api" + api)
+ if err != nil {
+ return "", err
+ }
+ q := apiBase.Query()
+ q.Add("api_key", client.apiKey)
+ q.Add("application_key", client.appKey)
+ apiBase.RawQuery = q.Encode()
+ return apiBase.String(), nil
+}
+
+// redactError removes api and application keys from error strings
+func (client *Client) redactError(err error) error {
+ if err == nil {
+ return nil
+ }
+ errString := err.Error()
+
+ if len(client.apiKey) > 0 {
+ errString = strings.Replace(errString, client.apiKey, "redacted", -1)
+ }
+ if len(client.appKey) > 0 {
+ errString = strings.Replace(errString, client.appKey, "redacted", -1)
+ }
+
+ // Return original error if no replacements were made to keep the original,
+ // probably more useful error type information.
+ if errString == err.Error() {
+ return err
+ }
+ return fmt.Errorf("%s", errString)
+}
+
+// doJsonRequest is the simplest type of request: a method on a URI that
+// returns some JSON result which we unmarshal into the passed interface. It
+// wraps doJsonRequestUnredacted to redact api and application keys from
+// errors.
+func (client *Client) doJsonRequest(method, api string,
+ reqbody, out interface{}) error {
+ if err := client.doJsonRequestUnredacted(method, api, reqbody, out); err != nil {
+ return client.redactError(err)
+ }
+ return nil
+}
+
+// doJsonRequestUnredacted is the simplest type of request: a method on a URI that returns
+// some JSON result which we unmarshal into the passed interface.
+func (client *Client) doJsonRequestUnredacted(method, api string,
+ reqbody, out interface{}) error {
+ req, err := client.createRequest(method, api, reqbody)
+ if err != nil {
+ return err
+ }
+
+ // Perform the request and retry it if it's not a POST or PUT request
+ var resp *http.Response
+ if method == "POST" || method == "PUT" {
+ resp, err = client.HttpClient.Do(req)
+ } else {
+ resp, err = client.doRequestWithRetries(req, client.RetryTimeout)
+ }
+ if err != nil {
+ return err
+ }
+ defer resp.Body.Close()
+
+ if resp.StatusCode < 200 || resp.StatusCode > 299 {
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return err
+ }
+ return fmt.Errorf("API error %s: %s", resp.Status, body)
+ }
+
+ // If they don't care about the body, then we don't care to give them one,
+ // so bail out because we're done.
+ if out == nil {
+ // read the response body so http conn can be reused immediately
+ io.Copy(ioutil.Discard, resp.Body)
+ return nil
+ }
+
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return err
+ }
+
+ // If we got no body, by default let's just make an empty JSON dict. This
+ // saves us some work in other parts of the code.
+ if len(body) == 0 {
+ body = []byte{'{', '}'}
+ }
+
+ return json.Unmarshal(body, &out)
+}
+
+// doRequestWithRetries performs an HTTP request repeatedly for maxTime or until
+// no error and no acceptable HTTP response code was returned.
+func (client *Client) doRequestWithRetries(req *http.Request, maxTime time.Duration) (*http.Response, error) {
+ var (
+ err error
+ resp *http.Response
+ bo = backoff.NewExponentialBackOff()
+ body []byte
+ )
+
+ bo.MaxElapsedTime = maxTime
+
+ // Save the body for retries
+ if req.Body != nil {
+ body, err = ioutil.ReadAll(req.Body)
+ if err != nil {
+ return resp, err
+ }
+ }
+
+ operation := func() error {
+ if body != nil {
+ r := bytes.NewReader(body)
+ req.Body = ioutil.NopCloser(r)
+ }
+
+ resp, err = client.HttpClient.Do(req)
+ if err != nil {
+ return err
+ }
+
+ if resp.StatusCode >= 200 && resp.StatusCode < 300 {
+ // 2xx all done
+ return nil
+ } else if resp.StatusCode >= 400 && resp.StatusCode < 500 {
+ // 4xx are not retryable
+ return nil
+ }
+
+ return fmt.Errorf("Received HTTP status code %d", resp.StatusCode)
+ }
+
+ err = backoff.Retry(operation, bo)
+
+ return resp, err
+}
+
+func (client *Client) createRequest(method, api string, reqbody interface{}) (*http.Request, error) {
+ // Handle the body if they gave us one.
+ var bodyReader io.Reader
+ if method != "GET" && reqbody != nil {
+ bjson, err := json.Marshal(reqbody)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(bjson)
+ }
+
+ apiUrlStr, err := client.uriForAPI(api)
+ if err != nil {
+ return nil, err
+ }
+ req, err := http.NewRequest(method, apiUrlStr, bodyReader)
+ if err != nil {
+ return nil, err
+ }
+ if bodyReader != nil {
+ req.Header.Add("Content-Type", "application/json")
+ }
+ return req, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/screen_widgets.go b/vendor/github.com/zorkian/go-datadog-api/screen_widgets.go
new file mode 100644
index 00000000..28955bf5
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/screen_widgets.go
@@ -0,0 +1,287 @@
+package datadog
+
+type TextSize struct {
+ Size *int
+ Auto *bool
+}
+
+type TileDef struct {
+ Events []TileDefEvent `json:"events,omitempty"`
+ Markers []TimeseriesMarker `json:"markers,omitempty"`
+ Requests []TimeseriesRequest `json:"requests,omitempty"`
+ Viz *string `json:"viz,omitempty"`
+}
+
+type TimeseriesRequest struct {
+ Query *string `json:"q,omitempty"`
+ Type *string `json:"type,omitempty"`
+ ConditionalFormats []ConditionalFormat `json:"conditional_formats,omitempty"`
+ Style *TimeseriesRequestStyle `json:"style,omitempty"`
+}
+
+type TimeseriesRequestStyle struct {
+ Palette *string `json:"palette,omitempty"`
+}
+
+type TimeseriesMarker struct {
+ Label *string `json:"label,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Value *string `json:"value,omitempty"`
+}
+
+type TileDefEvent struct {
+ Query *string `json:"q"`
+}
+
+type AlertValueWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Precision *int `json:"precision,omitempty"`
+ AlertId *int `json:"alert_id,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ AddTimeframe *bool `json:"add_timeframe,omitempty"`
+ Y *int `json:"y,omitempty"`
+ X *int `json:"x,omitempty"`
+ TextSize *string `json:"text_size,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Unit *string `json:"unit,omitempty"`
+}
+
+type ChangeWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Aggregator *string `json:"aggregator,omitempty"`
+ TileDef *TileDef `json:"tile_def,omitempty"`
+}
+
+type GraphWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ LegendSize *int `json:"legend_size,omitempty"`
+ Legend *bool `json:"legend,omitempty"`
+ TileDef *TileDef `json:"tile_def,omitempty"`
+}
+
+type EventTimelineWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ Query *string `json:"query,omitempty"`
+}
+
+type AlertGraphWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ VizType *string `json:"timeseries,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ AlertId *int `json:"alert_id,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ Type *string `json:"type,omitempty"`
+ AddTimeframe *bool `json:"add_timeframe,omitempty"`
+}
+
+type HostMapWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Query *string `json:"query,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ LegendSize *int `json:"legend_size,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Legend *bool `json:"legend,omitempty"`
+ TileDef *TileDef `json:"tile_def,omitempty"`
+}
+
+type CheckStatusWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Tags *string `json:"tags,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ TextSize *string `json:"text_size,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Check *string `json:"check,omitempty"`
+ Group *string `json:"group,omitempty"`
+ Grouping *string `json:"grouping,omitempty"`
+}
+
+type IFrameWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ Url *string `json:"url,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"y,omitempty"`
+ Y *int `json:"x,omitempty"`
+ Type *string `json:"type,omitempty"`
+}
+
+type NoteWidget struct {
+ TitleSize *int `json:"title_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ RefreshEvery *int `json:"refresh_every,omitempty"`
+ TickPos *string `json:"tick_pos,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TickEdge *string `json:"tick_edge,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Color *string `json:"bgcolor,omitempty"`
+ Html *string `json:"html,omitempty"`
+ Y *int `json:"y,omitempty"`
+ X *int `json:"x,omitempty"`
+ FontSize *int `json:"font_size,omitempty"`
+ Tick *bool `json:"tick,omitempty"`
+ Note *string `json:"type,omitempty"`
+ Width *int `json:"width,omitempty"`
+ AutoRefresh *bool `json:"auto_refresh,omitempty"`
+}
+
+type TimeseriesWidget struct {
+ Height *int `json:"height,omitempty"`
+ Legend *bool `json:"legend,omitempty"`
+ TileDef *TileDef `json:"tile_def,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleSize *TextSize `json:"title_size,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
+
+type QueryValueWidget struct {
+ Timeframe *string `json:"timeframe,omitempty"`
+ TimeframeAggregator *string `json:"aggr,omitempty"`
+ Aggregator *string `json:"aggregator,omitempty"`
+ CalcFunc *string `json:"calc_func,omitempty"`
+ ConditionalFormats []ConditionalFormat `json:"conditional_formats,omitempty"`
+ Height *int `json:"height,omitempty"`
+ IsValidQuery *bool `json:"is_valid_query,omitempty,omitempty"`
+ Metric *string `json:"metric,omitempty"`
+ MetricType *string `json:"metric_type,omitempty"`
+ Precision *int `json:"precision,omitempty"`
+ Query *string `json:"query,omitempty"`
+ ResultCalcFunc *string `json:"res_calc_func,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ TextSize *TextSize `json:"text_size,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleSize *TextSize `json:"title_size,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Unit *string `json:"auto,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
+type ConditionalFormat struct {
+ Color *string `json:"color,omitempty"`
+ Comparator *string `json:"comparator,omitempty"`
+ Inverted *bool `json:"invert,omitempty"`
+ Value *int `json:"value,omitempty"`
+}
+
+type ToplistWidget struct {
+ Height *int `json:"height,omitempty"`
+ Legend *bool `json:"legend,omitempty"`
+ LegendSize *int `json:"legend_size,omitempty"`
+ TileDef *TileDef `json:"tile_def,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleSize *TextSize `json:"title_size,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
+
+type EventStreamWidget struct {
+ EventSize *string `json:"event_size,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Query *string `json:"query,omitempty"`
+ Timeframe *string `json:"timeframe,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleSize *TextSize `json:"title_size,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
+
+type FreeTextWidget struct {
+ Color *string `json:"color,omitempty"`
+ FontSize *string `json:"font_size,omitempty"`
+ Height *int `json:"height,omitempty"`
+ Text *string `json:"text,omitempty"`
+ TextAlign *string `json:"text_align,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
+
+type ImageWidget struct {
+ Height *int `json:"height,omitempty"`
+ Sizing *string `json:"sizing,omitempty"`
+ Title *bool `json:"title,omitempty"`
+ TitleAlign *string `json:"title_align,omitempty"`
+ TitleSize *TextSize `json:"title_size,omitempty"`
+ TitleText *string `json:"title_text,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Url *string `json:"url,omitempty"`
+ Width *int `json:"width,omitempty"`
+ X *int `json:"x,omitempty"`
+ Y *int `json:"y,omitempty"`
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/screenboards.go b/vendor/github.com/zorkian/go-datadog-api/screenboards.go
new file mode 100644
index 00000000..2866fd58
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/screenboards.go
@@ -0,0 +1,116 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+)
+
+// Screenboard represents a user created screenboard. This is the full screenboard
+// struct when we load a screenboard in detail.
+type Screenboard struct {
+ Id *int `json:"id,omitempty"`
+ Title *string `json:"board_title,omitempty"`
+ Height *string `json:"height,omitempty"`
+ Width *string `json:"width,omitempty"`
+ Shared *bool `json:"shared,omitempty"`
+ Templated *bool `json:"templated,omitempty"`
+ TemplateVariables []TemplateVariable `json:"template_variables,omitempty"`
+ Widgets []Widget `json:"widgets"`
+ ReadOnly *bool `json:"read_only,omitempty"`
+}
+
+//type Widget struct {
+type Widget struct {
+ Default *string `json:"default,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Prefix *string `json:"prefix,omitempty"`
+ TimeseriesWidget *TimeseriesWidget `json:"timeseries,omitempty"`
+ QueryValueWidget *QueryValueWidget `json:"query_value,omitempty"`
+ EventStreamWidget *EventStreamWidget `json:"event_stream,omitempty"`
+ FreeTextWidget *FreeTextWidget `json:"free_text,omitempty"`
+ ToplistWidget *ToplistWidget `json:"toplist,omitempty"`
+ ImageWidget *ImageWidget `json:"image,omitempty"`
+ ChangeWidget *ChangeWidget `json:"change,omitempty"`
+ GraphWidget *GraphWidget `json:"graph,omitempty"`
+ EventTimelineWidget *EventTimelineWidget `json:"event_timeline,omitempty"`
+ AlertValueWidget *AlertValueWidget `json:"alert_value,omitempty"`
+ AlertGraphWidget *AlertGraphWidget `json:"alert_graph,omitempty"`
+ HostMapWidget *HostMapWidget `json:"hostmap,omitempty"`
+ CheckStatusWidget *CheckStatusWidget `json:"check_status,omitempty"`
+ IFrameWidget *IFrameWidget `json:"iframe,omitempty"`
+ NoteWidget *NoteWidget `json:"frame,omitempty"`
+}
+
+// ScreenboardLite represents a user created screenboard. This is the mini
+// struct when we load the summaries.
+type ScreenboardLite struct {
+ Id *int `json:"id,omitempty"`
+ Resource *string `json:"resource,omitempty"`
+ Title *string `json:"title,omitempty"`
+}
+
+// reqGetScreenboards from /api/v1/screen
+type reqGetScreenboards struct {
+ Screenboards []*ScreenboardLite `json:"screenboards,omitempty"`
+}
+
+// GetScreenboard returns a single screenboard created on this account.
+func (client *Client) GetScreenboard(id int) (*Screenboard, error) {
+ out := &Screenboard{}
+ if err := client.doJsonRequest("GET", fmt.Sprintf("/v1/screen/%d", id), nil, out); err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// GetScreenboards returns a list of all screenboards created on this account.
+func (client *Client) GetScreenboards() ([]*ScreenboardLite, error) {
+ var out reqGetScreenboards
+ if err := client.doJsonRequest("GET", "/v1/screen", nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Screenboards, nil
+}
+
+// DeleteScreenboard deletes a screenboard by the identifier.
+func (client *Client) DeleteScreenboard(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/screen/%d", id), nil, nil)
+}
+
+// CreateScreenboard creates a new screenboard when given a Screenboard struct. Note
+// that the Id, Resource, Url and similar elements are not used in creation.
+func (client *Client) CreateScreenboard(board *Screenboard) (*Screenboard, error) {
+ out := &Screenboard{}
+ if err := client.doJsonRequest("POST", "/v1/screen", board, out); err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// UpdateScreenboard in essence takes a Screenboard struct and persists it back to
+// the server. Use this if you've updated your local and need to push it back.
+func (client *Client) UpdateScreenboard(board *Screenboard) error {
+ return client.doJsonRequest("PUT", fmt.Sprintf("/v1/screen/%d", *board.Id), board, nil)
+}
+
+type ScreenShareResponse struct {
+ BoardId int `json:"board_id"`
+ PublicUrl string `json:"public_url"`
+}
+
+// ShareScreenboard shares an existing screenboard, it takes and updates ScreenShareResponse
+func (client *Client) ShareScreenboard(id int, response *ScreenShareResponse) error {
+ return client.doJsonRequest("POST", fmt.Sprintf("/v1/screen/share/%d", id), nil, response)
+}
+
+// RevokeScreenboard revokes a currently shared screenboard
+func (client *Client) RevokeScreenboard(id int) error {
+ return client.doJsonRequest("DELETE", fmt.Sprintf("/v1/screen/share/%d", id), nil, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/search.go b/vendor/github.com/zorkian/go-datadog-api/search.go
new file mode 100644
index 00000000..a0348e46
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/search.go
@@ -0,0 +1,35 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+// reqSearch is the container for receiving search results.
+type reqSearch struct {
+ Results struct {
+ Hosts []string `json:"hosts,omitempty"`
+ Metrics []string `json:"metrics,omitempty"`
+ } `json:"results"`
+}
+
+// SearchHosts searches through the hosts facet, returning matching hostnames.
+func (client *Client) SearchHosts(search string) ([]string, error) {
+ var out reqSearch
+ if err := client.doJsonRequest("GET", "/v1/search?q=hosts:"+search, nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Results.Hosts, nil
+}
+
+// SearchMetrics searches through the metrics facet, returning matching ones.
+func (client *Client) SearchMetrics(search string) ([]string, error) {
+ var out reqSearch
+ if err := client.doJsonRequest("GET", "/v1/search?q=metrics:"+search, nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Results.Metrics, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/series.go b/vendor/github.com/zorkian/go-datadog-api/series.go
new file mode 100644
index 00000000..7337dcb3
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/series.go
@@ -0,0 +1,91 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "net/url"
+ "strconv"
+)
+
+// DataPoint is a tuple of [UNIX timestamp, value]. This has to use floats
+// because the value could be non-integer.
+type DataPoint [2]*float64
+
+// Metric represents a collection of data points that we might send or receive
+// on one single metric line.
+type Metric struct {
+ Metric *string `json:"metric,omitempty"`
+ Points []DataPoint `json:"points,omitempty"`
+ Type *string `json:"type,omitempty"`
+ Host *string `json:"host,omitempty"`
+ Tags []string `json:"tags,omitempty"`
+ Unit *string `json:"unit,omitempty"`
+}
+
+// Unit represents a unit definition that we might receive when query for timeseries data.
+type Unit struct {
+ Family string `json:"family"`
+ ScaleFactor float32 `json:"scale_factor"`
+ Name string `json:"name"`
+ ShortName string `json:"short_name"`
+ Plural string `json:"plural"`
+ Id int `json:"id"`
+}
+
+// A Series is characterized by 2 units as: x per y
+// One or both could be missing
+type UnitPair []*Unit
+
+// Series represents a collection of data points we get when we query for timeseries data
+type Series struct {
+ Metric *string `json:"metric,omitempty"`
+ DisplayName *string `json:"display_name,omitempty"`
+ Points []DataPoint `json:"pointlist,omitempty"`
+ Start *float64 `json:"start,omitempty"`
+ End *float64 `json:"end,omitempty"`
+ Interval *int `json:"interval,omitempty"`
+ Aggr *string `json:"aggr,omitempty"`
+ Length *int `json:"length,omitempty"`
+ Scope *string `json:"scope,omitempty"`
+ Expression *string `json:"expression,omitempty"`
+ Units *UnitPair `json:"unit,omitempty"`
+}
+
+// reqPostSeries from /api/v1/series
+type reqPostSeries struct {
+ Series []Metric `json:"series,omitempty"`
+}
+
+// reqMetrics is the container for receiving metric results.
+type reqMetrics struct {
+ Series []Series `json:"series,omitempty"`
+}
+
+// PostMetrics takes as input a slice of metrics and then posts them up to the
+// server for posting data.
+func (client *Client) PostMetrics(series []Metric) error {
+ return client.doJsonRequest("POST", "/v1/series",
+ reqPostSeries{Series: series}, nil)
+}
+
+// QueryMetrics takes as input from, to (seconds from Unix Epoch) and query string and then requests
+// timeseries data for that time peried
+func (client *Client) QueryMetrics(from, to int64, query string) ([]Series, error) {
+ v := url.Values{}
+ v.Add("from", strconv.FormatInt(from, 10))
+ v.Add("to", strconv.FormatInt(to, 10))
+ v.Add("query", query)
+
+ var out reqMetrics
+ err := client.doJsonRequest("GET", "/v1/query?"+v.Encode(), nil, &out)
+ if err != nil {
+ return nil, err
+ }
+ return out.Series, nil
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/snapshot.go b/vendor/github.com/zorkian/go-datadog-api/snapshot.go
new file mode 100644
index 00000000..cdc5e62c
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/snapshot.go
@@ -0,0 +1,45 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2016 by authors and contributors.
+ */
+
+package datadog
+
+import (
+ "fmt"
+ "net/url"
+ "time"
+)
+
+func (client *Client) doSnapshotRequest(values url.Values) (string, error) {
+ out := struct {
+ SnapshotURL string `json:"snapshot_url,omitempty"`
+ }{}
+ if err := client.doJsonRequest("GET", "/v1/graph/snapshot?"+values.Encode(), nil, &out); err != nil {
+ return "", err
+ }
+ return out.SnapshotURL, nil
+}
+
+// Snapshot creates an image from a graph and returns the URL of the image.
+func (client *Client) Snapshot(query string, start, end time.Time, eventQuery string) (string, error) {
+ options := map[string]string{"metric_query": query, "event_query": eventQuery}
+
+ return client.SnapshotGeneric(options, start, end)
+}
+
+// Generic function for snapshots, use map[string]string to create url.Values() instead of pre-defined params
+func (client *Client) SnapshotGeneric(options map[string]string, start, end time.Time) (string, error) {
+ v := url.Values{}
+ v.Add("start", fmt.Sprintf("%d", start.Unix()))
+ v.Add("end", fmt.Sprintf("%d", end.Unix()))
+
+ for opt, val := range options {
+ v.Add(opt, val)
+ }
+
+ return client.doSnapshotRequest(v)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/tags.go b/vendor/github.com/zorkian/go-datadog-api/tags.go
new file mode 100644
index 00000000..54daa354
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/tags.go
@@ -0,0 +1,93 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+// TagMap is used to receive the format given to us by the API.
+type TagMap map[string][]string
+
+// reqGetTags is the container for receiving tags.
+type reqGetTags struct {
+ Tags *TagMap `json:"tags,omitempty"`
+}
+
+// regGetHostTags is for receiving a slice of tags.
+type reqGetHostTags struct {
+ Tags []string `json:"tags,omitempty"`
+}
+
+// GetTags returns a map of tags.
+func (client *Client) GetTags(source string) (TagMap, error) {
+ var out reqGetTags
+ uri := "/v1/tags/hosts"
+ if source != "" {
+ uri += "?source=" + source
+ }
+ if err := client.doJsonRequest("GET", uri, nil, &out); err != nil {
+ return nil, err
+ }
+ return *out.Tags, nil
+}
+
+// GetHostTags returns a slice of tags for a given host and source.
+func (client *Client) GetHostTags(host, source string) ([]string, error) {
+ var out reqGetHostTags
+ uri := "/v1/tags/hosts/" + host
+ if source != "" {
+ uri += "?source=" + source
+ }
+ if err := client.doJsonRequest("GET", uri, nil, &out); err != nil {
+ return nil, err
+ }
+ return out.Tags, nil
+}
+
+// GetHostTagsBySource is a different way of viewing the tags. It returns a map
+// of source:[tag,tag].
+func (client *Client) GetHostTagsBySource(host, source string) (TagMap, error) {
+ var out reqGetTags
+ uri := "/v1/tags/hosts/" + host + "?by_source=true"
+ if source != "" {
+ uri += "&source=" + source
+ }
+ if err := client.doJsonRequest("GET", uri, nil, &out); err != nil {
+ return nil, err
+ }
+ return *out.Tags, nil
+}
+
+// AddTagsToHost does exactly what it says on the tin. Given a list of tags,
+// add them to the host. The source is optionally specified, and defaults to
+// "users" as per the API documentation.
+func (client *Client) AddTagsToHost(host, source string, tags []string) error {
+ uri := "/v1/tags/hosts/" + host
+ if source != "" {
+ uri += "?source=" + source
+ }
+ return client.doJsonRequest("POST", uri, reqGetHostTags{Tags: tags}, nil)
+}
+
+// UpdateHostTags overwrites existing tags for a host, allowing you to specify
+// a new set of tags for the given source. This defaults to "users".
+func (client *Client) UpdateHostTags(host, source string, tags []string) error {
+ uri := "/v1/tags/hosts/" + host
+ if source != "" {
+ uri += "?source=" + source
+ }
+ return client.doJsonRequest("PUT", uri, reqGetHostTags{Tags: tags}, nil)
+}
+
+// RemoveHostTags removes all tags from a host for the given source. If none is
+// given, the API defaults to "users".
+func (client *Client) RemoveHostTags(host, source string) error {
+ uri := "/v1/tags/hosts/" + host
+ if source != "" {
+ uri += "?source=" + source
+ }
+ return client.doJsonRequest("DELETE", uri, nil, nil)
+}
diff --git a/vendor/github.com/zorkian/go-datadog-api/users.go b/vendor/github.com/zorkian/go-datadog-api/users.go
new file mode 100644
index 00000000..0a90402c
--- /dev/null
+++ b/vendor/github.com/zorkian/go-datadog-api/users.go
@@ -0,0 +1,95 @@
+/*
+ * Datadog API for Go
+ *
+ * Please see the included LICENSE file for licensing information.
+ *
+ * Copyright 2013 by authors and contributors.
+ */
+
+package datadog
+
+type User struct {
+ Handle *string `json:"handle,omitempty"`
+ Email *string `json:"email,omitempty"`
+ Name *string `json:"name,omitempty"`
+ Role *string `json:"role,omitempty"`
+ AccessRole *string `json:"access_role,omitempty"`
+ Verified *bool `json:"verified,omitempty"`
+ Disabled *bool `json:"disabled,omitempty"`
+
+ // DEPRECATED: IsAdmin is deprecated and will be removed in the next major
+ // revision. For more info on why it is being removed, see discussion on
+ // https://github.com/zorkian/go-datadog-api/issues/126.
+ IsAdmin *bool `json:"is_admin,omitempty"`
+}
+
+// reqInviteUsers contains email addresses to send invitations to.
+type reqInviteUsers struct {
+ Emails []string `json:"emails,omitempty"`
+}
+
+// InviteUsers takes a slice of email addresses and sends invitations to them.
+func (client *Client) InviteUsers(emails []string) error {
+ return client.doJsonRequest("POST", "/v1/invite_users",
+ reqInviteUsers{Emails: emails}, nil)
+}
+
+// CreateUser creates an user account for an email address
+func (self *Client) CreateUser(handle, name *string) (*User, error) {
+ in := struct {
+ Handle *string `json:"handle"`
+ Name *string `json:"name"`
+ }{
+ Handle: handle,
+ Name: name,
+ }
+
+ out := struct {
+ *User `json:"user"`
+ }{}
+ if err := self.doJsonRequest("POST", "/v1/user", in, &out); err != nil {
+ return nil, err
+ }
+ return out.User, nil
+}
+
+// internal type to retrieve users from the api
+type usersData struct {
+ Users []User `json:"users,omitempty"`
+}
+
+// GetUsers returns all user, or an error if not found
+func (client *Client) GetUsers() (users []User, err error) {
+ var udata usersData
+ uri := "/v1/user"
+ err = client.doJsonRequest("GET", uri, nil, &udata)
+ users = udata.Users
+ return
+}
+
+// internal type to retrieve single user from the api
+type userData struct {
+ User User `json:"user"`
+}
+
+// GetUser returns the user that match a handle, or an error if not found
+func (client *Client) GetUser(handle string) (user User, err error) {
+ var udata userData
+ uri := "/v1/user/" + handle
+ err = client.doJsonRequest("GET", uri, nil, &udata)
+ user = udata.User
+ return
+}
+
+// UpdateUser updates a user with the content of `user`,
+// and returns an error if the update failed
+func (client *Client) UpdateUser(user User) error {
+ uri := "/v1/user/" + *user.Handle
+ return client.doJsonRequest("PUT", uri, user, nil)
+}
+
+// DeleteUser deletes a user and returns an error if deletion failed
+func (client *Client) DeleteUser(handle string) error {
+ uri := "/v1/user/" + handle
+ return client.doJsonRequest("DELETE", uri, nil, nil)
+}