datadog

package module
v2.19.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

README

GoDoc License Build status Go Report Card

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: http://docs.datadoghq.com/api/

Installation

To use the default branch, include it in your code like:

    import "github.com/zorkian/go-datadog-api"

Or, if you need to control which version to use, import using gopkg.in. Like so:

    import "gopkg.in/zorkian/go-datadog-api.v2"

Using go get:

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:

    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:

	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:

	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: https://godoc.org/gopkg.in/zorkian/go-datadog-api.v2

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:

https://github.com/zorkian/go-datadog-api/issues

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:

make generate

Please see the LICENSE file for the included license information.

Copyright 2013-2017 by authors and contributors.

Documentation

Index

Constants

View Source
const (
	DashboardListItemCustomTimeboard        = "custom_timeboard"
	DashboardListItemCustomScreenboard      = "custom_screenboard"
	DashboardListItemIntegerationTimeboard  = "integration_timeboard"
	DashboardListItemIntegrationScreenboard = "integration_screenboard"
	DashboardListItemHostTimeboard          = "host_timeboard"
)

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.

func GetBool

func GetBool(v *bool) (bool, bool)

GetBool is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetIntOk

func GetIntOk(v *int) (int, bool)

GetInt is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetJsonNumberOk

func GetJsonNumberOk(v *json.Number) (json.Number, bool)

GetJsonNumber is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetStringOk

func GetStringOk(v *string) (string, bool)

GetString is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func Int

func Int(v int) *int

Int is a helper routine that allocates a new int value to store v and returns a pointer to it.

func JsonNumber

func JsonNumber(v json.Number) *json.Number

JsonNumber is a helper routine that allocates a new string value to store v and returns a pointer to it.

func String

func String(v string) *string

String is a helper routine that allocates a new string value to store v and returns a pointer to it.

Types

type Alert

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"`
}

Alert represents the data of an alert: a query that can fire and send a message to the users.

func (*Alert) GetCreator

func (a *Alert) GetCreator() int

GetCreator returns the Creator field if non-nil, zero value otherwise.

func (*Alert) GetCreatorOk

func (a *Alert) GetCreatorOk() (int, bool)

GetCreatorOk 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 (*Alert) GetId

func (a *Alert) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Alert) GetIdOk

func (a *Alert) GetIdOk() (int, bool)

GetIdOk 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 (*Alert) GetMessage

func (a *Alert) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*Alert) GetMessageOk

func (a *Alert) GetMessageOk() (string, bool)

GetMessageOk 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 (*Alert) GetName

func (a *Alert) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*Alert) GetNameOk

func (a *Alert) GetNameOk() (string, bool)

GetNameOk 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 (*Alert) GetNotifyNoData

func (a *Alert) GetNotifyNoData() bool

GetNotifyNoData returns the NotifyNoData field if non-nil, zero value otherwise.

func (*Alert) GetNotifyNoDataOk

func (a *Alert) GetNotifyNoDataOk() (bool, bool)

GetNotifyNoDataOk 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 (*Alert) GetQuery

func (a *Alert) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*Alert) GetQueryOk

func (a *Alert) GetQueryOk() (string, bool)

GetQueryOk 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 (*Alert) GetSilenced

func (a *Alert) GetSilenced() bool

GetSilenced returns the Silenced field if non-nil, zero value otherwise.

func (*Alert) GetSilencedOk

func (a *Alert) GetSilencedOk() (bool, bool)

GetSilencedOk 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 (*Alert) GetState

func (a *Alert) GetState() string

GetState returns the State field if non-nil, zero value otherwise.

func (*Alert) GetStateOk

func (a *Alert) GetStateOk() (string, bool)

GetStateOk 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 (*Alert) HasCreator

func (a *Alert) HasCreator() bool

HasCreator returns a boolean if a field has been set.

func (*Alert) HasId

func (a *Alert) HasId() bool

HasId returns a boolean if a field has been set.

func (*Alert) HasMessage

func (a *Alert) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Alert) HasName

func (a *Alert) HasName() bool

HasName returns a boolean if a field has been set.

func (*Alert) HasNotifyNoData

func (a *Alert) HasNotifyNoData() bool

HasNotifyNoData returns a boolean if a field has been set.

func (*Alert) HasQuery

func (a *Alert) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*Alert) HasSilenced

func (a *Alert) HasSilenced() bool

HasSilenced returns a boolean if a field has been set.

func (*Alert) HasState

func (a *Alert) HasState() bool

HasState returns a boolean if a field has been set.

func (*Alert) SetCreator

func (a *Alert) SetCreator(v int)

SetCreator allocates a new a.Creator and returns the pointer to it.

func (*Alert) SetId

func (a *Alert) SetId(v int)

SetId allocates a new a.Id and returns the pointer to it.

func (*Alert) SetMessage

func (a *Alert) SetMessage(v string)

SetMessage allocates a new a.Message and returns the pointer to it.

func (*Alert) SetName

func (a *Alert) SetName(v string)

SetName allocates a new a.Name and returns the pointer to it.

func (*Alert) SetNotifyNoData

func (a *Alert) SetNotifyNoData(v bool)

SetNotifyNoData allocates a new a.NotifyNoData and returns the pointer to it.

func (*Alert) SetQuery

func (a *Alert) SetQuery(v string)

SetQuery allocates a new a.Query and returns the pointer to it.

func (*Alert) SetSilenced

func (a *Alert) SetSilenced(v bool)

SetSilenced allocates a new a.Silenced and returns the pointer to it.

func (*Alert) SetState

func (a *Alert) SetState(v string)

SetState allocates a new a.State and returns the pointer to it.

type ChannelSlackRequest

type ChannelSlackRequest struct {
	ChannelName             *string `json:"channel_name"`
	TransferAllUserComments *bool   `json:"transfer_all_user_comments,omitempty,string"`
	Account                 *string `json:"account"`
}

ChannelSlackRequest defines the Channels struct that is part of the IntegrationSlackRequest.

func (*ChannelSlackRequest) GetAccount

func (c *ChannelSlackRequest) GetAccount() string

GetAccount returns the Account field if non-nil, zero value otherwise.

func (*ChannelSlackRequest) GetAccountOk

func (c *ChannelSlackRequest) GetAccountOk() (string, bool)

GetAccountOk 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 (*ChannelSlackRequest) GetChannelName

func (c *ChannelSlackRequest) GetChannelName() string

GetChannelName returns the ChannelName field if non-nil, zero value otherwise.

func (*ChannelSlackRequest) GetChannelNameOk

func (c *ChannelSlackRequest) GetChannelNameOk() (string, bool)

GetChannelNameOk 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 (*ChannelSlackRequest) GetTransferAllUserComments

func (c *ChannelSlackRequest) GetTransferAllUserComments() bool

GetTransferAllUserComments returns the TransferAllUserComments field if non-nil, zero value otherwise.

func (*ChannelSlackRequest) GetTransferAllUserCommentsOk

func (c *ChannelSlackRequest) GetTransferAllUserCommentsOk() (bool, bool)

GetTransferAllUserCommentsOk 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 (*ChannelSlackRequest) HasAccount

func (c *ChannelSlackRequest) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ChannelSlackRequest) HasChannelName

func (c *ChannelSlackRequest) HasChannelName() bool

HasChannelName returns a boolean if a field has been set.

func (*ChannelSlackRequest) HasTransferAllUserComments

func (c *ChannelSlackRequest) HasTransferAllUserComments() bool

HasTransferAllUserComments returns a boolean if a field has been set.

func (*ChannelSlackRequest) SetAccount

func (c *ChannelSlackRequest) SetAccount(v string)

SetAccount allocates a new c.Account and returns the pointer to it.

func (*ChannelSlackRequest) SetChannelName

func (c *ChannelSlackRequest) SetChannelName(v string)

SetChannelName allocates a new c.ChannelName and returns the pointer to it.

func (*ChannelSlackRequest) SetTransferAllUserComments

func (c *ChannelSlackRequest) SetTransferAllUserComments(v bool)

SetTransferAllUserComments allocates a new c.TransferAllUserComments and returns the pointer to it.

type Check

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"`
}

func (*Check) GetCheck

func (c *Check) GetCheck() string

GetCheck returns the Check field if non-nil, zero value otherwise.

func (*Check) GetCheckOk

func (c *Check) GetCheckOk() (string, bool)

GetCheckOk 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 (*Check) GetHostName

func (c *Check) GetHostName() string

GetHostName returns the HostName field if non-nil, zero value otherwise.

func (*Check) GetHostNameOk

func (c *Check) GetHostNameOk() (string, bool)

GetHostNameOk 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 (*Check) GetMessage

func (c *Check) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*Check) GetMessageOk

func (c *Check) GetMessageOk() (string, bool)

GetMessageOk 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 (*Check) GetStatus

func (c *Check) GetStatus() Status

GetStatus returns the Status field if non-nil, zero value otherwise.

func (*Check) GetStatusOk

func (c *Check) GetStatusOk() (Status, bool)

GetStatusOk 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 (*Check) GetTimestamp

func (c *Check) GetTimestamp() string

GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.

func (*Check) GetTimestampOk

func (c *Check) GetTimestampOk() (string, bool)

GetTimestampOk 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 (*Check) HasCheck

func (c *Check) HasCheck() bool

HasCheck returns a boolean if a field has been set.

func (*Check) HasHostName

func (c *Check) HasHostName() bool

HasHostName returns a boolean if a field has been set.

func (*Check) HasMessage

func (c *Check) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Check) HasStatus

func (c *Check) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Check) HasTimestamp

func (c *Check) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*Check) SetCheck

func (c *Check) SetCheck(v string)

SetCheck allocates a new c.Check and returns the pointer to it.

func (*Check) SetHostName

func (c *Check) SetHostName(v string)

SetHostName allocates a new c.HostName and returns the pointer to it.

func (*Check) SetMessage

func (c *Check) SetMessage(v string)

SetMessage allocates a new c.Message and returns the pointer to it.

func (*Check) SetStatus

func (c *Check) SetStatus(v Status)

SetStatus allocates a new c.Status and returns the pointer to it.

func (*Check) SetTimestamp

func (c *Check) SetTimestamp(v string)

SetTimestamp allocates a new c.Timestamp and returns the pointer to it.

type Client

type Client struct {

	//The Http Client that is used to make requests
	HttpClient   *http.Client
	RetryTimeout time.Duration
	// contains filtered or unexported fields
}

Client is the object that handles talking to the Datadog API. This maintains state information for a particular application connection.

func NewClient

func NewClient(apiKey, appKey string) *Client

NewClient returns a new datadog.Client which can be used to access the API methods. The expected argument is the API key.

func (*Client) AddDashboardListItems

func (client *Client) AddDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error)

AddDashboardListItems adds dashboards to an existing dashboard list.

Any items already in the list are ignored (not added twice).

func (*Client) AddTagsToHost

func (client *Client) AddTagsToHost(host, source string, tags []string) error

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) CreateAlert

func (client *Client) CreateAlert(alert *Alert) (*Alert, error)

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) CreateComment

func (client *Client) CreateComment(handle, message string) (*Comment, error)

CreateComment adds a new comment to the system.

func (*Client) CreateDashboard

func (client *Client) CreateDashboard(dash *Dashboard) (*Dashboard, error)

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) CreateDashboardList

func (client *Client) CreateDashboardList(list *DashboardList) (*DashboardList, error)

CreateDashboardList returns a single dashboard list created on this account.

func (*Client) CreateDowntime

func (client *Client) CreateDowntime(downtime *Downtime) (*Downtime, error)

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) CreateIntegrationAWS

func (client *Client) CreateIntegrationAWS(awsAccount *IntegrationAWSAccount) (*IntegrationAWSAccountCreateResponse, error)

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) CreateIntegrationGCP

func (client *Client) CreateIntegrationGCP(cir *IntegrationGCPCreateRequest) error

CreateIntegrationGCP creates a new Google Cloud Platform Integration.

func (*Client) CreateIntegrationPD

func (client *Client) CreateIntegrationPD(pdIntegration *IntegrationPDRequest) error

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) CreateIntegrationSlack

func (client *Client) CreateIntegrationSlack(slackIntegration *IntegrationSlackRequest) error

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) CreateMonitor

func (client *Client) CreateMonitor(monitor *Monitor) (*Monitor, error)

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) CreateRelatedComment

func (client *Client) CreateRelatedComment(handle, message string,
	relid int) (*Comment, error)

CreateRelatedComment adds a new comment, but lets you specify the related identifier for the comment.

func (*Client) CreateScreenboard

func (client *Client) CreateScreenboard(board *Screenboard) (*Screenboard, error)

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) CreateUser

func (self *Client) CreateUser(handle, name *string) (*User, error)

CreateUser creates an user account for an email address

func (*Client) DeleteAlert

func (client *Client) DeleteAlert(id int) error

DeleteAlert removes an alert from the system.

func (*Client) DeleteComment

func (client *Client) DeleteComment(id int) error

DeleteComment does exactly what you expect.

func (*Client) DeleteDashboard

func (client *Client) DeleteDashboard(id int) error

DeleteDashboard deletes a dashboard by the identifier.

func (*Client) DeleteDashboardList

func (client *Client) DeleteDashboardList(id int) error

DeleteDashboardList deletes a dashboard list by the identifier.

func (*Client) DeleteDashboardListItems

func (client *Client) DeleteDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error)

DeleteDashboardListItems deletes dashboards from an existing dashboard list.

Deletes any dashboards in the list of items from the dashboard list.

func (*Client) DeleteDowntime

func (client *Client) DeleteDowntime(id int) error

DeleteDowntime removes an downtime from the system.

func (*Client) DeleteIntegrationAWS

func (client *Client) DeleteIntegrationAWS(awsAccount *IntegrationAWSAccountDeleteRequest) error

DeleteIntegrationAWS removes a specific AWS Account from the AWS Integration.

func (*Client) DeleteIntegrationGCP

func (client *Client) DeleteIntegrationGCP(cir *IntegrationGCPDeleteRequest) error

DeleteIntegrationGCP deletes a Google Cloud Platform Integration.

func (*Client) DeleteIntegrationPD

func (client *Client) DeleteIntegrationPD() error

DeleteIntegrationPD removes the PagerDuty Integration from the system.

func (*Client) DeleteIntegrationSlack

func (client *Client) DeleteIntegrationSlack() error

DeleteIntegrationSlack removes the Slack Integration from the system.

func (*Client) DeleteMonitor

func (client *Client) DeleteMonitor(id int) error

DeleteMonitor removes a monitor from the system

func (*Client) DeleteScreenboard

func (client *Client) DeleteScreenboard(id int) error

DeleteScreenboard deletes a screenboard by the identifier.

func (*Client) DeleteUser

func (client *Client) DeleteUser(handle string) error

DeleteUser deletes a user and returns an error if deletion failed

func (*Client) EditComment

func (client *Client) EditComment(id int, handle, message string) error

EditComment changes the message and possibly handle of a particular comment.

func (*Client) EditMetricMetadata

func (client *Client) EditMetricMetadata(mn string, mm *MetricMetadata) (*MetricMetadata, error)

EditMetricMetadata edits the metadata for the given metric.

func (*Client) GetAlert

func (client *Client) GetAlert(id int) (*Alert, error)

GetAlert retrieves an alert by identifier.

func (*Client) GetAlerts

func (client *Client) GetAlerts() ([]Alert, error)

GetAlerts returns a slice of all alerts.

func (*Client) GetBaseUrl

func (c *Client) GetBaseUrl() string

GetBaseUrl returns the baseUrl.

func (*Client) GetDashboard

func (client *Client) GetDashboard(id int) (*Dashboard, error)

GetDashboard returns a single dashboard created on this account.

func (*Client) GetDashboardList

func (client *Client) GetDashboardList(id int) (*DashboardList, error)

GetDashboardList returns a single dashboard list created on this account.

func (*Client) GetDashboardListItems

func (client *Client) GetDashboardListItems(id int) ([]DashboardListItem, error)

GetDashboardListItems fetches the dashboard list's dashboard definitions.

func (*Client) GetDashboardLists

func (client *Client) GetDashboardLists() ([]DashboardList, error)

GetDashboardLists returns a list of all dashboard lists created on this account.

func (*Client) GetDashboards

func (client *Client) GetDashboards() ([]DashboardLite, error)

GetDashboards returns a list of all dashboards created on this account.

func (*Client) GetDowntime

func (client *Client) GetDowntime(id int) (*Downtime, error)

Getdowntime retrieves an downtime by identifier.

func (*Client) GetDowntimes

func (client *Client) GetDowntimes() ([]Downtime, error)

GetDowntimes returns a slice of all downtimes.

func (*Client) GetEvent

func (client *Client) GetEvent(id int) (*Event, error)

GetEvent gets a single event given an identifier.

func (*Client) GetEvents

func (client *Client) GetEvents(start, end int,
	priority, sources, tags string) ([]Event, error)

QueryEvents returns a slice of events from the query stream.

func (*Client) GetHostTags

func (client *Client) GetHostTags(host, source string) ([]string, error)

GetHostTags returns a slice of tags for a given host and source.

func (*Client) GetHostTagsBySource

func (client *Client) GetHostTagsBySource(host, source string) (TagMap, error)

GetHostTagsBySource is a different way of viewing the tags. It returns a map of source:[tag,tag].

func (*Client) GetIntegrationAWS

func (client *Client) GetIntegrationAWS() (*[]IntegrationAWSAccount, error)

GetIntegrationAWS gets all the AWS Accounts in the AWS Integrations from Datadog.

func (*Client) GetIntegrationPD

func (client *Client) GetIntegrationPD() (*integrationPD, error)

GetIntegrationPD gets all the PagerDuty Integrations from the system.

func (*Client) GetIntegrationSlack

func (client *Client) GetIntegrationSlack() (*IntegrationSlackRequest, error)

GetIntegrationSlack gets all the Slack Integrations from the system.

func (*Client) GetMonitor

func (client *Client) GetMonitor(id int) (*Monitor, error)

GetMonitor retrieves a monitor by identifier

func (*Client) GetMonitors

func (client *Client) GetMonitors() ([]Monitor, error)

GetMonitors returns a slice of all monitors

func (*Client) GetMonitorsByName

func (self *Client) GetMonitorsByName(name string) ([]Monitor, error)

GetMonitor retrieves monitors by name

func (*Client) GetMonitorsByTags

func (self *Client) GetMonitorsByTags(tags []string) ([]Monitor, error)

GetMonitor retrieves monitors by a slice of tags

func (*Client) GetScreenboard

func (client *Client) GetScreenboard(id int) (*Screenboard, error)

GetScreenboard returns a single screenboard created on this account.

func (*Client) GetScreenboards

func (client *Client) GetScreenboards() ([]*ScreenboardLite, error)

GetScreenboards returns a list of all screenboards created on this account.

func (*Client) GetTags

func (client *Client) GetTags(source string) (TagMap, error)

GetTags returns a map of tags.

func (*Client) GetUser

func (client *Client) GetUser(handle string) (user User, err error)

GetUser returns the user that match a handle, or an error if not found

func (*Client) GetUsers

func (client *Client) GetUsers() (users []User, err error)

GetUsers returns all user, or an error if not found

func (*Client) InviteUsers

func (client *Client) InviteUsers(emails []string) error

InviteUsers takes a slice of email addresses and sends invitations to them.

func (*Client) ListIntegrationGCP

func (client *Client) ListIntegrationGCP() ([]*IntegrationGCP, error)

ListIntegrationGCP gets all Google Cloud Platform Integrations.

func (*Client) MuteAlerts

func (client *Client) MuteAlerts() error

MuteAlerts turns off alerting notifications.

func (*Client) MuteHost

func (client *Client) MuteHost(host string, action *HostActionMute) (*HostActionResp, error)

MuteHost mutes all monitors for the given host

func (*Client) MuteMonitor

func (client *Client) MuteMonitor(id int) error

MuteMonitor turns off monitoring notifications for a monitor

func (*Client) MuteMonitors

func (client *Client) MuteMonitors() error

MuteMonitors turns off monitoring notifications

func (*Client) PostCheck

func (client *Client) PostCheck(check Check) error

PostCheck posts the result of a check run to the server

func (*Client) PostEvent

func (client *Client) PostEvent(event *Event) (*Event, error)

PostEvent takes as input an event and then posts it to the server.

func (*Client) PostMetrics

func (client *Client) PostMetrics(series []Metric) error

PostMetrics takes as input a slice of metrics and then posts them up to the server for posting data.

func (*Client) QueryMetrics

func (client *Client) QueryMetrics(from, to int64, query string) ([]Series, error)

QueryMetrics takes as input from, to (seconds from Unix Epoch) and query string and then requests timeseries data for that time peried

func (*Client) RemoveHostTags

func (client *Client) RemoveHostTags(host, source string) error

RemoveHostTags removes all tags from a host for the given source. If none is given, the API defaults to "users".

func (*Client) RevokeScreenboard

func (client *Client) RevokeScreenboard(id int) error

RevokeScreenboard revokes a currently shared screenboard

func (*Client) SearchHosts

func (client *Client) SearchHosts(search string) ([]string, error)

SearchHosts searches through the hosts facet, returning matching hostnames.

func (*Client) SearchMetrics

func (client *Client) SearchMetrics(search string) ([]string, error)

SearchMetrics searches through the metrics facet, returning matching ones.

func (*Client) SetBaseUrl

func (c *Client) SetBaseUrl(baseUrl string)

SetBaseUrl changes the value of baseUrl.

func (*Client) SetKeys

func (c *Client) SetKeys(apiKey, appKey string)

SetKeys changes the value of apiKey and appKey.

func (*Client) ShareScreenboard

func (client *Client) ShareScreenboard(id int, response *ScreenShareResponse) error

ShareScreenboard shares an existing screenboard, it takes and updates ScreenShareResponse

func (*Client) Snapshot

func (client *Client) Snapshot(query string, start, end time.Time, eventQuery string) (string, error)

Snapshot creates an image from a graph and returns the URL of the image.

func (*Client) SnapshotGeneric

func (client *Client) SnapshotGeneric(options map[string]string, start, end time.Time) (string, error)

Generic function for snapshots, use map[string]string to create url.Values() instead of pre-defined params

func (*Client) UnmuteAlerts

func (client *Client) UnmuteAlerts() error

UnmuteAlerts turns on alerting notifications.

func (*Client) UnmuteHost

func (client *Client) UnmuteHost(host string) (*HostActionResp, error)

UnmuteHost unmutes all monitors for the given host

func (*Client) UnmuteMonitor

func (client *Client) UnmuteMonitor(id int) error

UnmuteMonitor turns on monitoring notifications for a monitor

func (*Client) UnmuteMonitors

func (client *Client) UnmuteMonitors() error

UnmuteMonitors turns on monitoring notifications

func (*Client) UpdateAlert

func (client *Client) UpdateAlert(alert *Alert) error

UpdateAlert takes an alert that was previously retrieved through some method and sends it back to the server.

func (*Client) UpdateDashboard

func (client *Client) UpdateDashboard(dash *Dashboard) error

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) UpdateDashboardList

func (client *Client) UpdateDashboardList(list *DashboardList) error

UpdateDashboardList returns a single dashboard list created on this account.

func (*Client) UpdateDashboardListItems

func (client *Client) UpdateDashboardListItems(dashboardListId int, items []DashboardListItem) ([]DashboardListItem, error)

UpdateDashboardListItems updates dashboards of an existing dashboard list.

This will set the list of dashboards to contain only the items in items.

func (*Client) UpdateDowntime

func (client *Client) UpdateDowntime(downtime *Downtime) error

UpdateDowntime takes a downtime that was previously retrieved through some method and sends it back to the server.

func (*Client) UpdateHostTags

func (client *Client) UpdateHostTags(host, source string, tags []string) error

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) UpdateIntegrationGCP

func (client *Client) UpdateIntegrationGCP(cir *IntegrationGCPUpdateRequest) error

UpdateIntegrationGCP updates a Google Cloud Platform Integration.

func (*Client) UpdateIntegrationPD

func (client *Client) UpdateIntegrationPD(pdIntegration *IntegrationPDRequest) error

UpdateIntegrationPD updates the PagerDuty Integration. This will replace the existing values with the new values.

func (*Client) UpdateIntegrationSlack

func (client *Client) UpdateIntegrationSlack(slackIntegration *IntegrationSlackRequest) error

UpdateIntegrationSlack updates the Slack Integration. This will replace the existing values with the new values.

func (*Client) UpdateMonitor

func (client *Client) UpdateMonitor(monitor *Monitor) error

UpdateMonitor takes a monitor that was previously retrieved through some method and sends it back to the server

func (*Client) UpdateScreenboard

func (client *Client) UpdateScreenboard(board *Screenboard) error

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) UpdateUser

func (client *Client) UpdateUser(user User) error

UpdateUser updates a user with the content of `user`, and returns an error if the update failed

func (*Client) Validate

func (client *Client) Validate() (bool, error)

Validate checks if the API and application keys are valid.

func (*Client) ViewMetricMetadata

func (client *Client) ViewMetricMetadata(mn string) (*MetricMetadata, error)

ViewMetricMetadata allows you to get metadata about a specific metric.

type Comment

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"`
}

Comment is a special form of event that appears in a stream.

func (*Comment) GetHandle

func (c *Comment) GetHandle() string

GetHandle returns the Handle field if non-nil, zero value otherwise.

func (*Comment) GetHandleOk

func (c *Comment) GetHandleOk() (string, bool)

GetHandleOk 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 (*Comment) GetId

func (c *Comment) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Comment) GetIdOk

func (c *Comment) GetIdOk() (int, bool)

GetIdOk 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 (*Comment) GetMessage

func (c *Comment) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*Comment) GetMessageOk

func (c *Comment) GetMessageOk() (string, bool)

GetMessageOk 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 (*Comment) GetRelatedId

func (c *Comment) GetRelatedId() int

GetRelatedId returns the RelatedId field if non-nil, zero value otherwise.

func (*Comment) GetRelatedIdOk

func (c *Comment) GetRelatedIdOk() (int, bool)

GetRelatedIdOk 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 (*Comment) GetResource

func (c *Comment) GetResource() string

GetResource returns the Resource field if non-nil, zero value otherwise.

func (*Comment) GetResourceOk

func (c *Comment) GetResourceOk() (string, bool)

GetResourceOk 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 (*Comment) GetUrl

func (c *Comment) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

func (*Comment) GetUrlOk

func (c *Comment) GetUrlOk() (string, bool)

GetUrlOk 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 (*Comment) HasHandle

func (c *Comment) HasHandle() bool

HasHandle returns a boolean if a field has been set.

func (*Comment) HasId

func (c *Comment) HasId() bool

HasId returns a boolean if a field has been set.

func (*Comment) HasMessage

func (c *Comment) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Comment) HasRelatedId

func (c *Comment) HasRelatedId() bool

HasRelatedId returns a boolean if a field has been set.

func (*Comment) HasResource

func (c *Comment) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*Comment) HasUrl

func (c *Comment) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*Comment) SetHandle

func (c *Comment) SetHandle(v string)

SetHandle allocates a new c.Handle and returns the pointer to it.

func (*Comment) SetId

func (c *Comment) SetId(v int)

SetId allocates a new c.Id and returns the pointer to it.

func (*Comment) SetMessage

func (c *Comment) SetMessage(v string)

SetMessage allocates a new c.Message and returns the pointer to it.

func (*Comment) SetRelatedId

func (c *Comment) SetRelatedId(v int)

SetRelatedId allocates a new c.RelatedId and returns the pointer to it.

func (*Comment) SetResource

func (c *Comment) SetResource(v string)

SetResource allocates a new c.Resource and returns the pointer to it.

func (*Comment) SetUrl

func (c *Comment) SetUrl(v string)

SetUrl allocates a new c.Url and returns the pointer to it.

type ConditionalFormat

type ConditionalFormat struct {
	Color      *string `json:"color,omitempty"`
	Palette    *string `json:"palette,omitempty"`
	Comparator *string `json:"comparator,omitempty"`
	Invert     *bool   `json:"invert,omitempty"`
	Value      *string `json:"value,omitempty"`
	ImageURL   *string `json:"image_url,omitempty"`
}

func (*ConditionalFormat) GetColor

func (c *ConditionalFormat) GetColor() string

GetColor returns the Color field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetColorOk

func (c *ConditionalFormat) GetColorOk() (string, bool)

GetColorOk 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 (*ConditionalFormat) GetComparator

func (c *ConditionalFormat) GetComparator() string

GetComparator returns the Comparator field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetComparatorOk

func (c *ConditionalFormat) GetComparatorOk() (string, bool)

GetComparatorOk 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 (*ConditionalFormat) GetImageURL

func (c *ConditionalFormat) GetImageURL() string

GetImageURL returns the ImageURL field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetImageURLOk

func (c *ConditionalFormat) GetImageURLOk() (string, bool)

GetImageURLOk returns a tuple with the ImageURL field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*ConditionalFormat) GetInvert

func (c *ConditionalFormat) GetInvert() bool

GetInvert returns the Invert field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetInvertOk

func (c *ConditionalFormat) GetInvertOk() (bool, bool)

GetInvertOk returns a tuple with the Invert field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*ConditionalFormat) GetPalette

func (c *ConditionalFormat) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetPaletteOk

func (c *ConditionalFormat) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*ConditionalFormat) GetValue

func (c *ConditionalFormat) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

func (*ConditionalFormat) GetValueOk

func (c *ConditionalFormat) GetValueOk() (string, bool)

GetValueOk 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 (*ConditionalFormat) HasColor

func (c *ConditionalFormat) HasColor() bool

HasColor returns a boolean if a field has been set.

func (*ConditionalFormat) HasComparator

func (c *ConditionalFormat) HasComparator() bool

HasComparator returns a boolean if a field has been set.

func (*ConditionalFormat) HasImageURL

func (c *ConditionalFormat) HasImageURL() bool

HasImageURL returns a boolean if a field has been set.

func (*ConditionalFormat) HasInvert

func (c *ConditionalFormat) HasInvert() bool

HasInvert returns a boolean if a field has been set.

func (*ConditionalFormat) HasPalette

func (c *ConditionalFormat) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*ConditionalFormat) HasValue

func (c *ConditionalFormat) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*ConditionalFormat) SetColor

func (c *ConditionalFormat) SetColor(v string)

SetColor allocates a new c.Color and returns the pointer to it.

func (*ConditionalFormat) SetComparator

func (c *ConditionalFormat) SetComparator(v string)

SetComparator allocates a new c.Comparator and returns the pointer to it.

func (*ConditionalFormat) SetImageURL

func (c *ConditionalFormat) SetImageURL(v string)

SetImageURL allocates a new c.ImageURL and returns the pointer to it.

func (*ConditionalFormat) SetInvert

func (c *ConditionalFormat) SetInvert(v bool)

SetInvert allocates a new c.Invert and returns the pointer to it.

func (*ConditionalFormat) SetPalette

func (c *ConditionalFormat) SetPalette(v string)

SetPalette allocates a new c.Palette and returns the pointer to it.

func (*ConditionalFormat) SetValue

func (c *ConditionalFormat) SetValue(v string)

SetValue allocates a new c.Value and returns the pointer to it.

type CreatedBy

type CreatedBy struct {
	Disabled   *bool   `json:"disabled,omitempty"`
	Handle     *string `json:"handle,omitempty"`
	Name       *string `json:"name,omitempty"`
	IsAdmin    *bool   `json:"is_admin,omitempty"`
	Role       *string `json:"role,omitempty"`
	AccessRole *string `json:"access_role,omitempty"`
	Verified   *bool   `json:"verified,omitempty"`
	Email      *string `json:"email,omitempty"`
	Icon       *string `json:"icon,omitempty"`
}

CreatedBy represents a field from DashboardLite.

func (*CreatedBy) GetAccessRole

func (c *CreatedBy) GetAccessRole() string

GetAccessRole returns the AccessRole field if non-nil, zero value otherwise.

func (*CreatedBy) GetAccessRoleOk

func (c *CreatedBy) GetAccessRoleOk() (string, bool)

GetAccessRoleOk 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 (*CreatedBy) GetDisabled

func (c *CreatedBy) GetDisabled() bool

GetDisabled returns the Disabled field if non-nil, zero value otherwise.

func (*CreatedBy) GetDisabledOk

func (c *CreatedBy) GetDisabledOk() (bool, bool)

GetDisabledOk 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 (*CreatedBy) GetEmail

func (c *CreatedBy) GetEmail() string

GetEmail returns the Email field if non-nil, zero value otherwise.

func (*CreatedBy) GetEmailOk

func (c *CreatedBy) GetEmailOk() (string, bool)

GetEmailOk 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 (*CreatedBy) GetHandle

func (c *CreatedBy) GetHandle() string

GetHandle returns the Handle field if non-nil, zero value otherwise.

func (*CreatedBy) GetHandleOk

func (c *CreatedBy) GetHandleOk() (string, bool)

GetHandleOk 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 (*CreatedBy) GetIcon

func (c *CreatedBy) GetIcon() string

GetIcon returns the Icon field if non-nil, zero value otherwise.

func (*CreatedBy) GetIconOk

func (c *CreatedBy) GetIconOk() (string, bool)

GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*CreatedBy) GetIsAdmin

func (c *CreatedBy) GetIsAdmin() bool

GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.

func (*CreatedBy) GetIsAdminOk

func (c *CreatedBy) GetIsAdminOk() (bool, bool)

GetIsAdminOk 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 (*CreatedBy) GetName

func (c *CreatedBy) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*CreatedBy) GetNameOk

func (c *CreatedBy) GetNameOk() (string, bool)

GetNameOk 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 (*CreatedBy) GetRole

func (c *CreatedBy) GetRole() string

GetRole returns the Role field if non-nil, zero value otherwise.

func (*CreatedBy) GetRoleOk

func (c *CreatedBy) GetRoleOk() (string, bool)

GetRoleOk 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 (*CreatedBy) GetVerified

func (c *CreatedBy) GetVerified() bool

GetVerified returns the Verified field if non-nil, zero value otherwise.

func (*CreatedBy) GetVerifiedOk

func (c *CreatedBy) GetVerifiedOk() (bool, bool)

GetVerifiedOk 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 (*CreatedBy) HasAccessRole

func (c *CreatedBy) HasAccessRole() bool

HasAccessRole returns a boolean if a field has been set.

func (*CreatedBy) HasDisabled

func (c *CreatedBy) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*CreatedBy) HasEmail

func (c *CreatedBy) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*CreatedBy) HasHandle

func (c *CreatedBy) HasHandle() bool

HasHandle returns a boolean if a field has been set.

func (*CreatedBy) HasIcon

func (c *CreatedBy) HasIcon() bool

HasIcon returns a boolean if a field has been set.

func (*CreatedBy) HasIsAdmin

func (c *CreatedBy) HasIsAdmin() bool

HasIsAdmin returns a boolean if a field has been set.

func (*CreatedBy) HasName

func (c *CreatedBy) HasName() bool

HasName returns a boolean if a field has been set.

func (*CreatedBy) HasRole

func (c *CreatedBy) HasRole() bool

HasRole returns a boolean if a field has been set.

func (*CreatedBy) HasVerified

func (c *CreatedBy) HasVerified() bool

HasVerified returns a boolean if a field has been set.

func (*CreatedBy) SetAccessRole

func (c *CreatedBy) SetAccessRole(v string)

SetAccessRole allocates a new c.AccessRole and returns the pointer to it.

func (*CreatedBy) SetDisabled

func (c *CreatedBy) SetDisabled(v bool)

SetDisabled allocates a new c.Disabled and returns the pointer to it.

func (*CreatedBy) SetEmail

func (c *CreatedBy) SetEmail(v string)

SetEmail allocates a new c.Email and returns the pointer to it.

func (*CreatedBy) SetHandle

func (c *CreatedBy) SetHandle(v string)

SetHandle allocates a new c.Handle and returns the pointer to it.

func (*CreatedBy) SetIcon

func (c *CreatedBy) SetIcon(v string)

SetIcon allocates a new c.Icon and returns the pointer to it.

func (*CreatedBy) SetIsAdmin

func (c *CreatedBy) SetIsAdmin(v bool)

SetIsAdmin allocates a new c.IsAdmin and returns the pointer to it.

func (*CreatedBy) SetName

func (c *CreatedBy) SetName(v string)

SetName allocates a new c.Name and returns the pointer to it.

func (*CreatedBy) SetRole

func (c *CreatedBy) SetRole(v string)

SetRole allocates a new c.Role and returns the pointer to it.

func (*CreatedBy) SetVerified

func (c *CreatedBy) SetVerified(v bool)

SetVerified allocates a new c.Verified and returns the pointer to it.

type Creator

type Creator struct {
	Email  *string `json:"email,omitempty"`
	Handle *string `json:"handle,omitempty"`
	Id     *int    `json:"id,omitempty"`
	Name   *string `json:"name,omitempty"`
}

Creator contains the creator of the monitor

func (*Creator) GetEmail

func (c *Creator) GetEmail() string

GetEmail returns the Email field if non-nil, zero value otherwise.

func (*Creator) GetEmailOk

func (c *Creator) GetEmailOk() (string, bool)

GetEmailOk 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 (*Creator) GetHandle

func (c *Creator) GetHandle() string

GetHandle returns the Handle field if non-nil, zero value otherwise.

func (*Creator) GetHandleOk

func (c *Creator) GetHandleOk() (string, bool)

GetHandleOk 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 (*Creator) GetId

func (c *Creator) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Creator) GetIdOk

func (c *Creator) GetIdOk() (int, bool)

GetIdOk 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 (*Creator) GetName

func (c *Creator) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*Creator) GetNameOk

func (c *Creator) GetNameOk() (string, bool)

GetNameOk 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 (*Creator) HasEmail

func (c *Creator) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*Creator) HasHandle

func (c *Creator) HasHandle() bool

HasHandle returns a boolean if a field has been set.

func (*Creator) HasId

func (c *Creator) HasId() bool

HasId returns a boolean if a field has been set.

func (*Creator) HasName

func (c *Creator) HasName() bool

HasName returns a boolean if a field has been set.

func (*Creator) SetEmail

func (c *Creator) SetEmail(v string)

SetEmail allocates a new c.Email and returns the pointer to it.

func (*Creator) SetHandle

func (c *Creator) SetHandle(v string)

SetHandle allocates a new c.Handle and returns the pointer to it.

func (*Creator) SetId

func (c *Creator) SetId(v int)

SetId allocates a new c.Id and returns the pointer to it.

func (*Creator) SetName

func (c *Creator) SetName(v string)

SetName allocates a new c.Name and returns the pointer to it.

type Dashboard

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"`
}

Dashboard represents a user created dashboard. This is the full dashboard struct when we load a dashboard in detail.

func (*Dashboard) GetDescription

func (d *Dashboard) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

func (*Dashboard) GetDescriptionOk

func (d *Dashboard) GetDescriptionOk() (string, bool)

GetDescriptionOk 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 (*Dashboard) GetId

func (d *Dashboard) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Dashboard) GetIdOk

func (d *Dashboard) GetIdOk() (int, bool)

GetIdOk 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 (*Dashboard) GetReadOnly

func (d *Dashboard) GetReadOnly() bool

GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise.

func (*Dashboard) GetReadOnlyOk

func (d *Dashboard) GetReadOnlyOk() (bool, bool)

GetReadOnlyOk 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 (*Dashboard) GetTitle

func (d *Dashboard) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*Dashboard) GetTitleOk

func (d *Dashboard) GetTitleOk() (string, bool)

GetTitleOk 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 (*Dashboard) HasDescription

func (d *Dashboard) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Dashboard) HasId

func (d *Dashboard) HasId() bool

HasId returns a boolean if a field has been set.

func (*Dashboard) HasReadOnly

func (d *Dashboard) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*Dashboard) HasTitle

func (d *Dashboard) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Dashboard) SetDescription

func (d *Dashboard) SetDescription(v string)

SetDescription allocates a new d.Description and returns the pointer to it.

func (*Dashboard) SetId

func (d *Dashboard) SetId(v int)

SetId allocates a new d.Id and returns the pointer to it.

func (*Dashboard) SetReadOnly

func (d *Dashboard) SetReadOnly(v bool)

SetReadOnly allocates a new d.ReadOnly and returns the pointer to it.

func (*Dashboard) SetTitle

func (d *Dashboard) SetTitle(v string)

SetTitle allocates a new d.Title and returns the pointer to it.

type DashboardConditionalFormat

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"`
}

func (*DashboardConditionalFormat) GetComparator

func (d *DashboardConditionalFormat) GetComparator() string

GetComparator returns the Comparator field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetComparatorOk

func (d *DashboardConditionalFormat) GetComparatorOk() (string, bool)

GetComparatorOk 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 (*DashboardConditionalFormat) GetCustomBgColor

func (d *DashboardConditionalFormat) GetCustomBgColor() string

GetCustomBgColor returns the CustomBgColor field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetCustomBgColorOk

func (d *DashboardConditionalFormat) GetCustomBgColorOk() (string, bool)

GetCustomBgColorOk 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 (*DashboardConditionalFormat) GetCustomFgColor

func (d *DashboardConditionalFormat) GetCustomFgColor() string

GetCustomFgColor returns the CustomFgColor field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetCustomFgColorOk

func (d *DashboardConditionalFormat) GetCustomFgColorOk() (string, bool)

GetCustomFgColorOk 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 (*DashboardConditionalFormat) GetCustomImageUrl

func (d *DashboardConditionalFormat) GetCustomImageUrl() string

GetCustomImageUrl returns the CustomImageUrl field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetCustomImageUrlOk

func (d *DashboardConditionalFormat) GetCustomImageUrlOk() (string, bool)

GetCustomImageUrlOk 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 (*DashboardConditionalFormat) GetInverted

func (d *DashboardConditionalFormat) GetInverted() bool

GetInverted returns the Inverted field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetInvertedOk

func (d *DashboardConditionalFormat) GetInvertedOk() (bool, bool)

GetInvertedOk 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 (*DashboardConditionalFormat) GetPalette

func (d *DashboardConditionalFormat) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetPaletteOk

func (d *DashboardConditionalFormat) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*DashboardConditionalFormat) GetValue

func (d *DashboardConditionalFormat) GetValue() json.Number

GetValue returns the Value field if non-nil, zero value otherwise.

func (*DashboardConditionalFormat) GetValueOk

func (d *DashboardConditionalFormat) GetValueOk() (json.Number, bool)

GetValueOk 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 (*DashboardConditionalFormat) HasComparator

func (d *DashboardConditionalFormat) HasComparator() bool

HasComparator returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasCustomBgColor

func (d *DashboardConditionalFormat) HasCustomBgColor() bool

HasCustomBgColor returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasCustomFgColor

func (d *DashboardConditionalFormat) HasCustomFgColor() bool

HasCustomFgColor returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasCustomImageUrl

func (d *DashboardConditionalFormat) HasCustomImageUrl() bool

HasCustomImageUrl returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasInverted

func (d *DashboardConditionalFormat) HasInverted() bool

HasInverted returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasPalette

func (d *DashboardConditionalFormat) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*DashboardConditionalFormat) HasValue

func (d *DashboardConditionalFormat) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*DashboardConditionalFormat) SetComparator

func (d *DashboardConditionalFormat) SetComparator(v string)

SetComparator allocates a new d.Comparator and returns the pointer to it.

func (*DashboardConditionalFormat) SetCustomBgColor

func (d *DashboardConditionalFormat) SetCustomBgColor(v string)

SetCustomBgColor allocates a new d.CustomBgColor and returns the pointer to it.

func (*DashboardConditionalFormat) SetCustomFgColor

func (d *DashboardConditionalFormat) SetCustomFgColor(v string)

SetCustomFgColor allocates a new d.CustomFgColor and returns the pointer to it.

func (*DashboardConditionalFormat) SetCustomImageUrl

func (d *DashboardConditionalFormat) SetCustomImageUrl(v string)

SetCustomImageUrl allocates a new d.CustomImageUrl and returns the pointer to it.

func (*DashboardConditionalFormat) SetInverted

func (d *DashboardConditionalFormat) SetInverted(v bool)

SetInverted allocates a new d.Inverted and returns the pointer to it.

func (*DashboardConditionalFormat) SetPalette

func (d *DashboardConditionalFormat) SetPalette(v string)

SetPalette allocates a new d.Palette and returns the pointer to it.

func (*DashboardConditionalFormat) SetValue

func (d *DashboardConditionalFormat) SetValue(v json.Number)

SetValue allocates a new d.Value and returns the pointer to it.

type DashboardList

type DashboardList struct {
	Id             *int    `json:"id,omitempty"`
	Name           *string `json:"name,omitempty"`
	DashboardCount *int    `json:"dashboard_count,omitempty"`
}

DashboardList represents a dashboard list.

func (*DashboardList) GetDashboardCount

func (d *DashboardList) GetDashboardCount() int

GetDashboardCount returns the DashboardCount field if non-nil, zero value otherwise.

func (*DashboardList) GetDashboardCountOk

func (d *DashboardList) GetDashboardCountOk() (int, bool)

GetDashboardCountOk 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 (*DashboardList) GetId

func (d *DashboardList) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*DashboardList) GetIdOk

func (d *DashboardList) GetIdOk() (int, bool)

GetIdOk 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 (*DashboardList) GetName

func (d *DashboardList) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*DashboardList) GetNameOk

func (d *DashboardList) GetNameOk() (string, bool)

GetNameOk 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 (*DashboardList) HasDashboardCount

func (d *DashboardList) HasDashboardCount() bool

HasDashboardCount returns a boolean if a field has been set.

func (*DashboardList) HasId

func (d *DashboardList) HasId() bool

HasId returns a boolean if a field has been set.

func (*DashboardList) HasName

func (d *DashboardList) HasName() bool

HasName returns a boolean if a field has been set.

func (*DashboardList) SetDashboardCount

func (d *DashboardList) SetDashboardCount(v int)

SetDashboardCount allocates a new d.DashboardCount and returns the pointer to it.

func (*DashboardList) SetId

func (d *DashboardList) SetId(v int)

SetId allocates a new d.Id and returns the pointer to it.

func (*DashboardList) SetName

func (d *DashboardList) SetName(v string)

SetName allocates a new d.Name and returns the pointer to it.

type DashboardListItem

type DashboardListItem struct {
	Id   *int    `json:"id,omitempty"`
	Type *string `json:"type,omitempty"`
}

DashboardListItem represents a single dashboard in a dashboard list.

func (*DashboardListItem) GetId

func (d *DashboardListItem) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*DashboardListItem) GetIdOk

func (d *DashboardListItem) GetIdOk() (int, bool)

GetIdOk 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 (*DashboardListItem) GetType

func (d *DashboardListItem) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*DashboardListItem) GetTypeOk

func (d *DashboardListItem) GetTypeOk() (string, bool)

GetTypeOk 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 (*DashboardListItem) HasId

func (d *DashboardListItem) HasId() bool

HasId returns a boolean if a field has been set.

func (*DashboardListItem) HasType

func (d *DashboardListItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*DashboardListItem) SetId

func (d *DashboardListItem) SetId(v int)

SetId allocates a new d.Id and returns the pointer to it.

func (*DashboardListItem) SetType

func (d *DashboardListItem) SetType(v string)

SetType allocates a new d.Type and returns the pointer to it.

type DashboardLite

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"`
	ReadOnly    *bool      `json:"read_only,omitempty"`
	Created     *string    `json:"created,omitempty"`
	Modified    *string    `json:"modified,omitempty"`
	CreatedBy   *CreatedBy `json:"created_by,omitempty"`
}

DashboardLite represents a user created dashboard. This is the mini struct when we load the summaries.

func (*DashboardLite) GetCreated

func (d *DashboardLite) GetCreated() string

GetCreated returns the Created field if non-nil, zero value otherwise.

func (*DashboardLite) GetCreatedBy

func (d *DashboardLite) GetCreatedBy() CreatedBy

GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise.

func (*DashboardLite) GetCreatedByOk

func (d *DashboardLite) GetCreatedByOk() (CreatedBy, bool)

GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*DashboardLite) GetCreatedOk

func (d *DashboardLite) GetCreatedOk() (string, bool)

GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*DashboardLite) GetDescription

func (d *DashboardLite) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

func (*DashboardLite) GetDescriptionOk

func (d *DashboardLite) GetDescriptionOk() (string, bool)

GetDescriptionOk 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 (*DashboardLite) GetId

func (d *DashboardLite) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*DashboardLite) GetIdOk

func (d *DashboardLite) GetIdOk() (int, bool)

GetIdOk 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 (*DashboardLite) GetModified

func (d *DashboardLite) GetModified() string

GetModified returns the Modified field if non-nil, zero value otherwise.

func (*DashboardLite) GetModifiedOk

func (d *DashboardLite) GetModifiedOk() (string, bool)

GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*DashboardLite) GetReadOnly

func (d *DashboardLite) GetReadOnly() bool

GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise.

func (*DashboardLite) GetReadOnlyOk

func (d *DashboardLite) GetReadOnlyOk() (bool, bool)

GetReadOnlyOk 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 (*DashboardLite) GetResource

func (d *DashboardLite) GetResource() string

GetResource returns the Resource field if non-nil, zero value otherwise.

func (*DashboardLite) GetResourceOk

func (d *DashboardLite) GetResourceOk() (string, bool)

GetResourceOk 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 (*DashboardLite) GetTitle

func (d *DashboardLite) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*DashboardLite) GetTitleOk

func (d *DashboardLite) GetTitleOk() (string, bool)

GetTitleOk 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 (*DashboardLite) HasCreated

func (d *DashboardLite) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*DashboardLite) HasCreatedBy

func (d *DashboardLite) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*DashboardLite) HasDescription

func (d *DashboardLite) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*DashboardLite) HasId

func (d *DashboardLite) HasId() bool

HasId returns a boolean if a field has been set.

func (*DashboardLite) HasModified

func (d *DashboardLite) HasModified() bool

HasModified returns a boolean if a field has been set.

func (*DashboardLite) HasReadOnly

func (d *DashboardLite) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*DashboardLite) HasResource

func (d *DashboardLite) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*DashboardLite) HasTitle

func (d *DashboardLite) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*DashboardLite) SetCreated

func (d *DashboardLite) SetCreated(v string)

SetCreated allocates a new d.Created and returns the pointer to it.

func (*DashboardLite) SetCreatedBy

func (d *DashboardLite) SetCreatedBy(v CreatedBy)

SetCreatedBy allocates a new d.CreatedBy and returns the pointer to it.

func (*DashboardLite) SetDescription

func (d *DashboardLite) SetDescription(v string)

SetDescription allocates a new d.Description and returns the pointer to it.

func (*DashboardLite) SetId

func (d *DashboardLite) SetId(v int)

SetId allocates a new d.Id and returns the pointer to it.

func (*DashboardLite) SetModified

func (d *DashboardLite) SetModified(v string)

SetModified allocates a new d.Modified and returns the pointer to it.

func (*DashboardLite) SetReadOnly

func (d *DashboardLite) SetReadOnly(v bool)

SetReadOnly allocates a new d.ReadOnly and returns the pointer to it.

func (*DashboardLite) SetResource

func (d *DashboardLite) SetResource(v string)

SetResource allocates a new d.Resource and returns the pointer to it.

func (*DashboardLite) SetTitle

func (d *DashboardLite) SetTitle(v string)

SetTitle allocates a new d.Title and returns the pointer to it.

type DataPoint

type DataPoint [2]*float64

DataPoint is a tuple of [UNIX timestamp, value]. This has to use floats because the value could be non-integer.

type Downtime

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"`
}

func (*Downtime) GetActive

func (d *Downtime) GetActive() bool

GetActive returns the Active field if non-nil, zero value otherwise.

func (*Downtime) GetActiveOk

func (d *Downtime) GetActiveOk() (bool, bool)

GetActiveOk 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 (*Downtime) GetCanceled

func (d *Downtime) GetCanceled() int

GetCanceled returns the Canceled field if non-nil, zero value otherwise.

func (*Downtime) GetCanceledOk

func (d *Downtime) GetCanceledOk() (int, bool)

GetCanceledOk 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 (*Downtime) GetDisabled

func (d *Downtime) GetDisabled() bool

GetDisabled returns the Disabled field if non-nil, zero value otherwise.

func (*Downtime) GetDisabledOk

func (d *Downtime) GetDisabledOk() (bool, bool)

GetDisabledOk 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 (*Downtime) GetEnd

func (d *Downtime) GetEnd() int

GetEnd returns the End field if non-nil, zero value otherwise.

func (*Downtime) GetEndOk

func (d *Downtime) GetEndOk() (int, bool)

GetEndOk 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 (*Downtime) GetId

func (d *Downtime) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Downtime) GetIdOk

func (d *Downtime) GetIdOk() (int, bool)

GetIdOk 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 (*Downtime) GetMessage

func (d *Downtime) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*Downtime) GetMessageOk

func (d *Downtime) GetMessageOk() (string, bool)

GetMessageOk 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 (*Downtime) GetMonitorId

func (d *Downtime) GetMonitorId() int

GetMonitorId returns the MonitorId field if non-nil, zero value otherwise.

func (*Downtime) GetMonitorIdOk

func (d *Downtime) GetMonitorIdOk() (int, bool)

GetMonitorIdOk 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 (*Downtime) GetRecurrence

func (d *Downtime) GetRecurrence() Recurrence

GetRecurrence returns the Recurrence field if non-nil, zero value otherwise.

func (*Downtime) GetRecurrenceOk

func (d *Downtime) GetRecurrenceOk() (Recurrence, bool)

GetRecurrenceOk 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 (*Downtime) GetStart

func (d *Downtime) GetStart() int

GetStart returns the Start field if non-nil, zero value otherwise.

func (*Downtime) GetStartOk

func (d *Downtime) GetStartOk() (int, bool)

GetStartOk 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 (*Downtime) HasActive

func (d *Downtime) HasActive() bool

HasActive returns a boolean if a field has been set.

func (*Downtime) HasCanceled

func (d *Downtime) HasCanceled() bool

HasCanceled returns a boolean if a field has been set.

func (*Downtime) HasDisabled

func (d *Downtime) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*Downtime) HasEnd

func (d *Downtime) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*Downtime) HasId

func (d *Downtime) HasId() bool

HasId returns a boolean if a field has been set.

func (*Downtime) HasMessage

func (d *Downtime) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Downtime) HasMonitorId

func (d *Downtime) HasMonitorId() bool

HasMonitorId returns a boolean if a field has been set.

func (*Downtime) HasRecurrence

func (d *Downtime) HasRecurrence() bool

HasRecurrence returns a boolean if a field has been set.

func (*Downtime) HasStart

func (d *Downtime) HasStart() bool

HasStart returns a boolean if a field has been set.

func (*Downtime) SetActive

func (d *Downtime) SetActive(v bool)

SetActive allocates a new d.Active and returns the pointer to it.

func (*Downtime) SetCanceled

func (d *Downtime) SetCanceled(v int)

SetCanceled allocates a new d.Canceled and returns the pointer to it.

func (*Downtime) SetDisabled

func (d *Downtime) SetDisabled(v bool)

SetDisabled allocates a new d.Disabled and returns the pointer to it.

func (*Downtime) SetEnd

func (d *Downtime) SetEnd(v int)

SetEnd allocates a new d.End and returns the pointer to it.

func (*Downtime) SetId

func (d *Downtime) SetId(v int)

SetId allocates a new d.Id and returns the pointer to it.

func (*Downtime) SetMessage

func (d *Downtime) SetMessage(v string)

SetMessage allocates a new d.Message and returns the pointer to it.

func (*Downtime) SetMonitorId

func (d *Downtime) SetMonitorId(v int)

SetMonitorId allocates a new d.MonitorId and returns the pointer to it.

func (*Downtime) SetRecurrence

func (d *Downtime) SetRecurrence(v Recurrence)

SetRecurrence allocates a new d.Recurrence and returns the pointer to it.

func (*Downtime) SetStart

func (d *Downtime) SetStart(v int)

SetStart allocates a new d.Start and returns the pointer to it.

type Event

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"`
}

Event is a single event. If this is being used to post an event, then not all fields will be filled out.

func (*Event) GetAggregation

func (e *Event) GetAggregation() string

GetAggregation returns the Aggregation field if non-nil, zero value otherwise.

func (*Event) GetAggregationOk

func (e *Event) GetAggregationOk() (string, bool)

GetAggregationOk 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 (*Event) GetAlertType

func (e *Event) GetAlertType() string

GetAlertType returns the AlertType field if non-nil, zero value otherwise.

func (*Event) GetAlertTypeOk

func (e *Event) GetAlertTypeOk() (string, bool)

GetAlertTypeOk 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 (*Event) GetEventType

func (e *Event) GetEventType() string

GetEventType returns the EventType field if non-nil, zero value otherwise.

func (*Event) GetEventTypeOk

func (e *Event) GetEventTypeOk() (string, bool)

GetEventTypeOk 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 (*Event) GetHost

func (e *Event) GetHost() string

GetHost returns the Host field if non-nil, zero value otherwise.

func (*Event) GetHostOk

func (e *Event) GetHostOk() (string, bool)

GetHostOk 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 (*Event) GetId

func (e *Event) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Event) GetIdOk

func (e *Event) GetIdOk() (int, bool)

GetIdOk 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 (*Event) GetPriority

func (e *Event) GetPriority() string

GetPriority returns the Priority field if non-nil, zero value otherwise.

func (*Event) GetPriorityOk

func (e *Event) GetPriorityOk() (string, bool)

GetPriorityOk 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 (*Event) GetResource

func (e *Event) GetResource() string

GetResource returns the Resource field if non-nil, zero value otherwise.

func (*Event) GetResourceOk

func (e *Event) GetResourceOk() (string, bool)

GetResourceOk 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 (*Event) GetSourceType

func (e *Event) GetSourceType() string

GetSourceType returns the SourceType field if non-nil, zero value otherwise.

func (*Event) GetSourceTypeOk

func (e *Event) GetSourceTypeOk() (string, bool)

GetSourceTypeOk 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 (*Event) GetText

func (e *Event) GetText() string

GetText returns the Text field if non-nil, zero value otherwise.

func (*Event) GetTextOk

func (e *Event) GetTextOk() (string, bool)

GetTextOk 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 (*Event) GetTime

func (e *Event) GetTime() int

GetTime returns the Time field if non-nil, zero value otherwise.

func (*Event) GetTimeOk

func (e *Event) GetTimeOk() (int, bool)

GetTimeOk 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 (*Event) GetTitle

func (e *Event) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*Event) GetTitleOk

func (e *Event) GetTitleOk() (string, bool)

GetTitleOk 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 (*Event) GetUrl

func (e *Event) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

func (*Event) GetUrlOk

func (e *Event) GetUrlOk() (string, bool)

GetUrlOk 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 (*Event) HasAggregation

func (e *Event) HasAggregation() bool

HasAggregation returns a boolean if a field has been set.

func (*Event) HasAlertType

func (e *Event) HasAlertType() bool

HasAlertType returns a boolean if a field has been set.

func (*Event) HasEventType

func (e *Event) HasEventType() bool

HasEventType returns a boolean if a field has been set.

func (*Event) HasHost

func (e *Event) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*Event) HasId

func (e *Event) HasId() bool

HasId returns a boolean if a field has been set.

func (*Event) HasPriority

func (e *Event) HasPriority() bool

HasPriority returns a boolean if a field has been set.

func (*Event) HasResource

func (e *Event) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*Event) HasSourceType

func (e *Event) HasSourceType() bool

HasSourceType returns a boolean if a field has been set.

func (*Event) HasText

func (e *Event) HasText() bool

HasText returns a boolean if a field has been set.

func (*Event) HasTime

func (e *Event) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*Event) HasTitle

func (e *Event) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Event) HasUrl

func (e *Event) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*Event) SetAggregation

func (e *Event) SetAggregation(v string)

SetAggregation allocates a new e.Aggregation and returns the pointer to it.

func (*Event) SetAlertType

func (e *Event) SetAlertType(v string)

SetAlertType allocates a new e.AlertType and returns the pointer to it.

func (*Event) SetEventType

func (e *Event) SetEventType(v string)

SetEventType allocates a new e.EventType and returns the pointer to it.

func (*Event) SetHost

func (e *Event) SetHost(v string)

SetHost allocates a new e.Host and returns the pointer to it.

func (*Event) SetId

func (e *Event) SetId(v int)

SetId allocates a new e.Id and returns the pointer to it.

func (*Event) SetPriority

func (e *Event) SetPriority(v string)

SetPriority allocates a new e.Priority and returns the pointer to it.

func (*Event) SetResource

func (e *Event) SetResource(v string)

SetResource allocates a new e.Resource and returns the pointer to it.

func (*Event) SetSourceType

func (e *Event) SetSourceType(v string)

SetSourceType allocates a new e.SourceType and returns the pointer to it.

func (*Event) SetText

func (e *Event) SetText(v string)

SetText allocates a new e.Text and returns the pointer to it.

func (*Event) SetTime

func (e *Event) SetTime(v int)

SetTime allocates a new e.Time and returns the pointer to it.

func (*Event) SetTitle

func (e *Event) SetTitle(v string)

SetTitle allocates a new e.Title and returns the pointer to it.

func (*Event) SetUrl

func (e *Event) SetUrl(v string)

SetUrl allocates a new e.Url and returns the pointer to it.

type Graph

type Graph struct {
	Title      *string          `json:"title,omitempty"`
	Definition *GraphDefinition `json:"definition"`
}

Graph represents a graph that might exist on a dashboard.

func (*Graph) GetDefinition

func (g *Graph) GetDefinition() GraphDefinition

GetDefinition returns the Definition field if non-nil, zero value otherwise.

func (*Graph) GetDefinitionOk

func (g *Graph) GetDefinitionOk() (GraphDefinition, bool)

GetDefinitionOk 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 (*Graph) GetTitle

func (g *Graph) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*Graph) GetTitleOk

func (g *Graph) GetTitleOk() (string, bool)

GetTitleOk 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 (*Graph) HasDefinition

func (g *Graph) HasDefinition() bool

HasDefinition returns a boolean if a field has been set.

func (*Graph) HasTitle

func (g *Graph) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Graph) SetDefinition

func (g *Graph) SetDefinition(v GraphDefinition)

SetDefinition allocates a new g.Definition and returns the pointer to it.

func (*Graph) SetTitle

func (g *Graph) SetTitle(v string)

SetTitle allocates a new g.Title and returns the pointer to it.

type GraphDefinition

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  *PrecisionT `json:"precision,omitempty"`
	CustomUnit *string     `json:"custom_unit,omitempty"`

	// For hostmaps
	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"`
	NodeType              *string  `json:"nodeType,omitempty"`
}

func (*GraphDefinition) GetAutoscale

func (g *GraphDefinition) GetAutoscale() bool

GetAutoscale returns the Autoscale field if non-nil, zero value otherwise.

func (*GraphDefinition) GetAutoscaleOk

func (g *GraphDefinition) GetAutoscaleOk() (bool, bool)

GetAutoscaleOk 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 (*GraphDefinition) GetCustomUnit

func (g *GraphDefinition) GetCustomUnit() string

GetCustomUnit returns the CustomUnit field if non-nil, zero value otherwise.

func (*GraphDefinition) GetCustomUnitOk

func (g *GraphDefinition) GetCustomUnitOk() (string, bool)

GetCustomUnitOk 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 (*GraphDefinition) GetIncludeNoMetricHosts

func (g *GraphDefinition) GetIncludeNoMetricHosts() bool

GetIncludeNoMetricHosts returns the IncludeNoMetricHosts field if non-nil, zero value otherwise.

func (*GraphDefinition) GetIncludeNoMetricHostsOk

func (g *GraphDefinition) GetIncludeNoMetricHostsOk() (bool, bool)

GetIncludeNoMetricHostsOk 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 (*GraphDefinition) GetIncludeUngroupedHosts

func (g *GraphDefinition) GetIncludeUngroupedHosts() bool

GetIncludeUngroupedHosts returns the IncludeUngroupedHosts field if non-nil, zero value otherwise.

func (*GraphDefinition) GetIncludeUngroupedHostsOk

func (g *GraphDefinition) GetIncludeUngroupedHostsOk() (bool, bool)

GetIncludeUngroupedHostsOk 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 (*GraphDefinition) GetNodeType

func (g *GraphDefinition) GetNodeType() string

GetNodeType returns the NodeType field if non-nil, zero value otherwise.

func (*GraphDefinition) GetNodeTypeOk

func (g *GraphDefinition) GetNodeTypeOk() (string, bool)

GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GraphDefinition) GetPrecision

func (g *GraphDefinition) GetPrecision() PrecisionT

GetPrecision returns the Precision field if non-nil, zero value otherwise.

func (*GraphDefinition) GetPrecisionOk

func (g *GraphDefinition) GetPrecisionOk() (PrecisionT, bool)

GetPrecisionOk 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 (*GraphDefinition) GetStyle

func (g *GraphDefinition) GetStyle() Style

GetStyle returns the Style field if non-nil, zero value otherwise.

func (*GraphDefinition) GetStyleOk

func (g *GraphDefinition) GetStyleOk() (Style, bool)

GetStyleOk 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 (*GraphDefinition) GetTextAlign

func (g *GraphDefinition) GetTextAlign() string

GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.

func (*GraphDefinition) GetTextAlignOk

func (g *GraphDefinition) GetTextAlignOk() (string, bool)

GetTextAlignOk 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 (*GraphDefinition) GetViz

func (g *GraphDefinition) GetViz() string

GetViz returns the Viz field if non-nil, zero value otherwise.

func (*GraphDefinition) GetVizOk

func (g *GraphDefinition) GetVizOk() (string, bool)

GetVizOk 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 (*GraphDefinition) HasAutoscale

func (g *GraphDefinition) HasAutoscale() bool

HasAutoscale returns a boolean if a field has been set.

func (*GraphDefinition) HasCustomUnit

func (g *GraphDefinition) HasCustomUnit() bool

HasCustomUnit returns a boolean if a field has been set.

func (*GraphDefinition) HasIncludeNoMetricHosts

func (g *GraphDefinition) HasIncludeNoMetricHosts() bool

HasIncludeNoMetricHosts returns a boolean if a field has been set.

func (*GraphDefinition) HasIncludeUngroupedHosts

func (g *GraphDefinition) HasIncludeUngroupedHosts() bool

HasIncludeUngroupedHosts returns a boolean if a field has been set.

func (*GraphDefinition) HasNodeType

func (g *GraphDefinition) HasNodeType() bool

HasNodeType returns a boolean if a field has been set.

func (*GraphDefinition) HasPrecision

func (g *GraphDefinition) HasPrecision() bool

HasPrecision returns a boolean if a field has been set.

func (*GraphDefinition) HasStyle

func (g *GraphDefinition) HasStyle() bool

HasStyle returns a boolean if a field has been set.

func (*GraphDefinition) HasTextAlign

func (g *GraphDefinition) HasTextAlign() bool

HasTextAlign returns a boolean if a field has been set.

func (*GraphDefinition) HasViz

func (g *GraphDefinition) HasViz() bool

HasViz returns a boolean if a field has been set.

func (*GraphDefinition) SetAutoscale

func (g *GraphDefinition) SetAutoscale(v bool)

SetAutoscale allocates a new g.Autoscale and returns the pointer to it.

func (*GraphDefinition) SetCustomUnit

func (g *GraphDefinition) SetCustomUnit(v string)

SetCustomUnit allocates a new g.CustomUnit and returns the pointer to it.

func (*GraphDefinition) SetIncludeNoMetricHosts

func (g *GraphDefinition) SetIncludeNoMetricHosts(v bool)

SetIncludeNoMetricHosts allocates a new g.IncludeNoMetricHosts and returns the pointer to it.

func (*GraphDefinition) SetIncludeUngroupedHosts

func (g *GraphDefinition) SetIncludeUngroupedHosts(v bool)

SetIncludeUngroupedHosts allocates a new g.IncludeUngroupedHosts and returns the pointer to it.

func (*GraphDefinition) SetNodeType

func (g *GraphDefinition) SetNodeType(v string)

SetNodeType allocates a new g.NodeType and returns the pointer to it.

func (*GraphDefinition) SetPrecision

func (g *GraphDefinition) SetPrecision(v PrecisionT)

SetPrecision allocates a new g.Precision and returns the pointer to it.

func (*GraphDefinition) SetStyle

func (g *GraphDefinition) SetStyle(v Style)

SetStyle allocates a new g.Style and returns the pointer to it.

func (*GraphDefinition) SetTextAlign

func (g *GraphDefinition) SetTextAlign(v string)

SetTextAlign allocates a new g.TextAlign and returns the pointer to it.

func (*GraphDefinition) SetViz

func (g *GraphDefinition) SetViz(v string)

SetViz allocates a new g.Viz and returns the pointer to it.

type GraphDefinitionMarker

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"`
}

func (*GraphDefinitionMarker) GetLabel

func (g *GraphDefinitionMarker) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetLabelOk

func (g *GraphDefinitionMarker) GetLabelOk() (string, bool)

GetLabelOk 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 (*GraphDefinitionMarker) GetMax

func (g *GraphDefinitionMarker) GetMax() json.Number

GetMax returns the Max field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetMaxOk

func (g *GraphDefinitionMarker) GetMaxOk() (json.Number, bool)

GetMaxOk 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 (*GraphDefinitionMarker) GetMin

func (g *GraphDefinitionMarker) GetMin() json.Number

GetMin returns the Min field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetMinOk

func (g *GraphDefinitionMarker) GetMinOk() (json.Number, bool)

GetMinOk 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 (*GraphDefinitionMarker) GetType

func (g *GraphDefinitionMarker) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetTypeOk

func (g *GraphDefinitionMarker) GetTypeOk() (string, bool)

GetTypeOk 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 (*GraphDefinitionMarker) GetVal

func (g *GraphDefinitionMarker) GetVal() json.Number

GetVal returns the Val field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetValOk

func (g *GraphDefinitionMarker) GetValOk() (json.Number, bool)

GetValOk 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 (*GraphDefinitionMarker) GetValue

func (g *GraphDefinitionMarker) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

func (*GraphDefinitionMarker) GetValueOk

func (g *GraphDefinitionMarker) GetValueOk() (string, bool)

GetValueOk 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 (*GraphDefinitionMarker) HasLabel

func (g *GraphDefinitionMarker) HasLabel() bool

HasLabel returns a boolean if a field has been set.

func (*GraphDefinitionMarker) HasMax

func (g *GraphDefinitionMarker) HasMax() bool

HasMax returns a boolean if a field has been set.

func (*GraphDefinitionMarker) HasMin

func (g *GraphDefinitionMarker) HasMin() bool

HasMin returns a boolean if a field has been set.

func (*GraphDefinitionMarker) HasType

func (g *GraphDefinitionMarker) HasType() bool

HasType returns a boolean if a field has been set.

func (*GraphDefinitionMarker) HasVal

func (g *GraphDefinitionMarker) HasVal() bool

HasVal returns a boolean if a field has been set.

func (*GraphDefinitionMarker) HasValue

func (g *GraphDefinitionMarker) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*GraphDefinitionMarker) SetLabel

func (g *GraphDefinitionMarker) SetLabel(v string)

SetLabel allocates a new g.Label and returns the pointer to it.

func (*GraphDefinitionMarker) SetMax

func (g *GraphDefinitionMarker) SetMax(v json.Number)

SetMax allocates a new g.Max and returns the pointer to it.

func (*GraphDefinitionMarker) SetMin

func (g *GraphDefinitionMarker) SetMin(v json.Number)

SetMin allocates a new g.Min and returns the pointer to it.

func (*GraphDefinitionMarker) SetType

func (g *GraphDefinitionMarker) SetType(v string)

SetType allocates a new g.Type and returns the pointer to it.

func (*GraphDefinitionMarker) SetVal

func (g *GraphDefinitionMarker) SetVal(v json.Number)

SetVal allocates a new g.Val and returns the pointer to it.

func (*GraphDefinitionMarker) SetValue

func (g *GraphDefinitionMarker) SetValue(v string)

SetValue allocates a new g.Value and returns the pointer to it.

type GraphDefinitionRequest

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"`
}

GraphDefinitionRequest represents the requests passed into each graph.

func (*GraphDefinitionRequest) GetAggregator

func (g *GraphDefinitionRequest) GetAggregator() string

GetAggregator returns the Aggregator field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetAggregatorOk

func (g *GraphDefinitionRequest) GetAggregatorOk() (string, bool)

GetAggregatorOk 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 (*GraphDefinitionRequest) GetChangeType

func (g *GraphDefinitionRequest) GetChangeType() string

GetChangeType returns the ChangeType field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetChangeTypeOk

func (g *GraphDefinitionRequest) GetChangeTypeOk() (string, bool)

GetChangeTypeOk 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 (*GraphDefinitionRequest) GetCompareTo

func (g *GraphDefinitionRequest) GetCompareTo() string

GetCompareTo returns the CompareTo field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetCompareToOk

func (g *GraphDefinitionRequest) GetCompareToOk() (string, bool)

GetCompareToOk 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 (*GraphDefinitionRequest) GetExtraCol

func (g *GraphDefinitionRequest) GetExtraCol() string

GetExtraCol returns the ExtraCol field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetExtraColOk

func (g *GraphDefinitionRequest) GetExtraColOk() (string, bool)

GetExtraColOk 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 (*GraphDefinitionRequest) GetIncreaseGood

func (g *GraphDefinitionRequest) GetIncreaseGood() bool

GetIncreaseGood returns the IncreaseGood field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetIncreaseGoodOk

func (g *GraphDefinitionRequest) GetIncreaseGoodOk() (bool, bool)

GetIncreaseGoodOk 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 (*GraphDefinitionRequest) GetOrderBy

func (g *GraphDefinitionRequest) GetOrderBy() string

GetOrderBy returns the OrderBy field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetOrderByOk

func (g *GraphDefinitionRequest) GetOrderByOk() (string, bool)

GetOrderByOk 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 (*GraphDefinitionRequest) GetOrderDirection

func (g *GraphDefinitionRequest) GetOrderDirection() string

GetOrderDirection returns the OrderDirection field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetOrderDirectionOk

func (g *GraphDefinitionRequest) GetOrderDirectionOk() (string, bool)

GetOrderDirectionOk 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 (*GraphDefinitionRequest) GetQuery

func (g *GraphDefinitionRequest) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetQueryOk

func (g *GraphDefinitionRequest) GetQueryOk() (string, bool)

GetQueryOk 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 (*GraphDefinitionRequest) GetStacked

func (g *GraphDefinitionRequest) GetStacked() bool

GetStacked returns the Stacked field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetStackedOk

func (g *GraphDefinitionRequest) GetStackedOk() (bool, bool)

GetStackedOk 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 (*GraphDefinitionRequest) GetStyle

GetStyle returns the Style field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetStyleOk

GetStyleOk 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 (*GraphDefinitionRequest) GetType

func (g *GraphDefinitionRequest) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*GraphDefinitionRequest) GetTypeOk

func (g *GraphDefinitionRequest) GetTypeOk() (string, bool)

GetTypeOk 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 (*GraphDefinitionRequest) HasAggregator

func (g *GraphDefinitionRequest) HasAggregator() bool

HasAggregator returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasChangeType

func (g *GraphDefinitionRequest) HasChangeType() bool

HasChangeType returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasCompareTo

func (g *GraphDefinitionRequest) HasCompareTo() bool

HasCompareTo returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasExtraCol

func (g *GraphDefinitionRequest) HasExtraCol() bool

HasExtraCol returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasIncreaseGood

func (g *GraphDefinitionRequest) HasIncreaseGood() bool

HasIncreaseGood returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasOrderBy

func (g *GraphDefinitionRequest) HasOrderBy() bool

HasOrderBy returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasOrderDirection

func (g *GraphDefinitionRequest) HasOrderDirection() bool

HasOrderDirection returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasQuery

func (g *GraphDefinitionRequest) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasStacked

func (g *GraphDefinitionRequest) HasStacked() bool

HasStacked returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasStyle

func (g *GraphDefinitionRequest) HasStyle() bool

HasStyle returns a boolean if a field has been set.

func (*GraphDefinitionRequest) HasType

func (g *GraphDefinitionRequest) HasType() bool

HasType returns a boolean if a field has been set.

func (*GraphDefinitionRequest) SetAggregator

func (g *GraphDefinitionRequest) SetAggregator(v string)

SetAggregator allocates a new g.Aggregator and returns the pointer to it.

func (*GraphDefinitionRequest) SetChangeType

func (g *GraphDefinitionRequest) SetChangeType(v string)

SetChangeType allocates a new g.ChangeType and returns the pointer to it.

func (*GraphDefinitionRequest) SetCompareTo

func (g *GraphDefinitionRequest) SetCompareTo(v string)

SetCompareTo allocates a new g.CompareTo and returns the pointer to it.

func (*GraphDefinitionRequest) SetExtraCol

func (g *GraphDefinitionRequest) SetExtraCol(v string)

SetExtraCol allocates a new g.ExtraCol and returns the pointer to it.

func (*GraphDefinitionRequest) SetIncreaseGood

func (g *GraphDefinitionRequest) SetIncreaseGood(v bool)

SetIncreaseGood allocates a new g.IncreaseGood and returns the pointer to it.

func (*GraphDefinitionRequest) SetOrderBy

func (g *GraphDefinitionRequest) SetOrderBy(v string)

SetOrderBy allocates a new g.OrderBy and returns the pointer to it.

func (*GraphDefinitionRequest) SetOrderDirection

func (g *GraphDefinitionRequest) SetOrderDirection(v string)

SetOrderDirection allocates a new g.OrderDirection and returns the pointer to it.

func (*GraphDefinitionRequest) SetQuery

func (g *GraphDefinitionRequest) SetQuery(v string)

SetQuery allocates a new g.Query and returns the pointer to it.

func (*GraphDefinitionRequest) SetStacked

func (g *GraphDefinitionRequest) SetStacked(v bool)

SetStacked allocates a new g.Stacked and returns the pointer to it.

func (*GraphDefinitionRequest) SetStyle

SetStyle allocates a new g.Style and returns the pointer to it.

func (*GraphDefinitionRequest) SetType

func (g *GraphDefinitionRequest) SetType(v string)

SetType allocates a new g.Type and returns the pointer to it.

type GraphDefinitionRequestStyle

type GraphDefinitionRequestStyle struct {
	Palette *string `json:"palette,omitempty"`
	Width   *string `json:"width,omitempty"`
	Type    *string `json:"type,omitempty"`
}

GraphDefinitionRequestStyle represents the graph style attributes

func (*GraphDefinitionRequestStyle) GetPalette

func (g *GraphDefinitionRequestStyle) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*GraphDefinitionRequestStyle) GetPaletteOk

func (g *GraphDefinitionRequestStyle) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*GraphDefinitionRequestStyle) GetType

func (g *GraphDefinitionRequestStyle) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*GraphDefinitionRequestStyle) GetTypeOk

func (g *GraphDefinitionRequestStyle) GetTypeOk() (string, bool)

GetTypeOk 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 (*GraphDefinitionRequestStyle) GetWidth

func (g *GraphDefinitionRequestStyle) GetWidth() string

GetWidth returns the Width field if non-nil, zero value otherwise.

func (*GraphDefinitionRequestStyle) GetWidthOk

func (g *GraphDefinitionRequestStyle) GetWidthOk() (string, bool)

GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GraphDefinitionRequestStyle) HasPalette

func (g *GraphDefinitionRequestStyle) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*GraphDefinitionRequestStyle) HasType

func (g *GraphDefinitionRequestStyle) HasType() bool

HasType returns a boolean if a field has been set.

func (*GraphDefinitionRequestStyle) HasWidth

func (g *GraphDefinitionRequestStyle) HasWidth() bool

HasWidth returns a boolean if a field has been set.

func (*GraphDefinitionRequestStyle) SetPalette

func (g *GraphDefinitionRequestStyle) SetPalette(v string)

SetPalette allocates a new g.Palette and returns the pointer to it.

func (*GraphDefinitionRequestStyle) SetType

func (g *GraphDefinitionRequestStyle) SetType(v string)

SetType allocates a new g.Type and returns the pointer to it.

func (*GraphDefinitionRequestStyle) SetWidth

func (g *GraphDefinitionRequestStyle) SetWidth(v string)

SetWidth allocates a new g.Width and returns the pointer to it.

type GraphEvent

type GraphEvent struct {
	Query *string `json:"q,omitempty"`
}

func (*GraphEvent) GetQuery

func (g *GraphEvent) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*GraphEvent) GetQueryOk

func (g *GraphEvent) GetQueryOk() (string, bool)

GetQueryOk 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 (*GraphEvent) HasQuery

func (g *GraphEvent) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*GraphEvent) SetQuery

func (g *GraphEvent) SetQuery(v string)

SetQuery allocates a new g.Query and returns the pointer to it.

type GroupData

type GroupData struct {
	LastNoDataTs    *int             `json:"last_nodata_ts,omitempty"`
	LastNotifiedTs  *int             `json:"last_notified_ts,omitempty"`
	LastResolvedTs  *int             `json:"last_resolved_ts,omitempty"`
	LastTriggeredTs *int             `json:"last_triggered_ts,omitempty"`
	Name            *string          `json:"name,omitempty"`
	Status          *string          `json:"status,omitempty"`
	TriggeringValue *TriggeringValue `json:"triggering_value,omitempty"`
}

func (*GroupData) GetLastNoDataTs

func (g *GroupData) GetLastNoDataTs() int

GetLastNoDataTs returns the LastNoDataTs field if non-nil, zero value otherwise.

func (*GroupData) GetLastNoDataTsOk

func (g *GroupData) GetLastNoDataTsOk() (int, bool)

GetLastNoDataTsOk returns a tuple with the LastNoDataTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GroupData) GetLastNotifiedTs

func (g *GroupData) GetLastNotifiedTs() int

GetLastNotifiedTs returns the LastNotifiedTs field if non-nil, zero value otherwise.

func (*GroupData) GetLastNotifiedTsOk

func (g *GroupData) GetLastNotifiedTsOk() (int, bool)

GetLastNotifiedTsOk returns a tuple with the LastNotifiedTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GroupData) GetLastResolvedTs

func (g *GroupData) GetLastResolvedTs() int

GetLastResolvedTs returns the LastResolvedTs field if non-nil, zero value otherwise.

func (*GroupData) GetLastResolvedTsOk

func (g *GroupData) GetLastResolvedTsOk() (int, bool)

GetLastResolvedTsOk returns a tuple with the LastResolvedTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GroupData) GetLastTriggeredTs

func (g *GroupData) GetLastTriggeredTs() int

GetLastTriggeredTs returns the LastTriggeredTs field if non-nil, zero value otherwise.

func (*GroupData) GetLastTriggeredTsOk

func (g *GroupData) GetLastTriggeredTsOk() (int, bool)

GetLastTriggeredTsOk returns a tuple with the LastTriggeredTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GroupData) GetName

func (g *GroupData) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*GroupData) GetNameOk

func (g *GroupData) GetNameOk() (string, bool)

GetNameOk 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 (*GroupData) GetStatus

func (g *GroupData) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

func (*GroupData) GetStatusOk

func (g *GroupData) GetStatusOk() (string, bool)

GetStatusOk 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 (*GroupData) GetTriggeringValue

func (g *GroupData) GetTriggeringValue() TriggeringValue

GetTriggeringValue returns the TriggeringValue field if non-nil, zero value otherwise.

func (*GroupData) GetTriggeringValueOk

func (g *GroupData) GetTriggeringValueOk() (TriggeringValue, bool)

GetTriggeringValueOk returns a tuple with the TriggeringValue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*GroupData) HasLastNoDataTs

func (g *GroupData) HasLastNoDataTs() bool

HasLastNoDataTs returns a boolean if a field has been set.

func (*GroupData) HasLastNotifiedTs

func (g *GroupData) HasLastNotifiedTs() bool

HasLastNotifiedTs returns a boolean if a field has been set.

func (*GroupData) HasLastResolvedTs

func (g *GroupData) HasLastResolvedTs() bool

HasLastResolvedTs returns a boolean if a field has been set.

func (*GroupData) HasLastTriggeredTs

func (g *GroupData) HasLastTriggeredTs() bool

HasLastTriggeredTs returns a boolean if a field has been set.

func (*GroupData) HasName

func (g *GroupData) HasName() bool

HasName returns a boolean if a field has been set.

func (*GroupData) HasStatus

func (g *GroupData) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*GroupData) HasTriggeringValue

func (g *GroupData) HasTriggeringValue() bool

HasTriggeringValue returns a boolean if a field has been set.

func (*GroupData) SetLastNoDataTs

func (g *GroupData) SetLastNoDataTs(v int)

SetLastNoDataTs allocates a new g.LastNoDataTs and returns the pointer to it.

func (*GroupData) SetLastNotifiedTs

func (g *GroupData) SetLastNotifiedTs(v int)

SetLastNotifiedTs allocates a new g.LastNotifiedTs and returns the pointer to it.

func (*GroupData) SetLastResolvedTs

func (g *GroupData) SetLastResolvedTs(v int)

SetLastResolvedTs allocates a new g.LastResolvedTs and returns the pointer to it.

func (*GroupData) SetLastTriggeredTs

func (g *GroupData) SetLastTriggeredTs(v int)

SetLastTriggeredTs allocates a new g.LastTriggeredTs and returns the pointer to it.

func (*GroupData) SetName

func (g *GroupData) SetName(v string)

SetName allocates a new g.Name and returns the pointer to it.

func (*GroupData) SetStatus

func (g *GroupData) SetStatus(v string)

SetStatus allocates a new g.Status and returns the pointer to it.

func (*GroupData) SetTriggeringValue

func (g *GroupData) SetTriggeringValue(v TriggeringValue)

SetTriggeringValue allocates a new g.TriggeringValue and returns the pointer to it.

type HostActionMute

type HostActionMute struct {
	Message  *string `json:"message,omitempty"`
	EndTime  *string `json:"end,omitempty"`
	Override *bool   `json:"override,omitempty"`
}

func (*HostActionMute) GetEndTime

func (h *HostActionMute) GetEndTime() string

GetEndTime returns the EndTime field if non-nil, zero value otherwise.

func (*HostActionMute) GetEndTimeOk

func (h *HostActionMute) GetEndTimeOk() (string, bool)

GetEndTimeOk 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 (*HostActionMute) GetMessage

func (h *HostActionMute) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*HostActionMute) GetMessageOk

func (h *HostActionMute) GetMessageOk() (string, bool)

GetMessageOk 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 (*HostActionMute) GetOverride

func (h *HostActionMute) GetOverride() bool

GetOverride returns the Override field if non-nil, zero value otherwise.

func (*HostActionMute) GetOverrideOk

func (h *HostActionMute) GetOverrideOk() (bool, bool)

GetOverrideOk 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 (*HostActionMute) HasEndTime

func (h *HostActionMute) HasEndTime() bool

HasEndTime returns a boolean if a field has been set.

func (*HostActionMute) HasMessage

func (h *HostActionMute) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*HostActionMute) HasOverride

func (h *HostActionMute) HasOverride() bool

HasOverride returns a boolean if a field has been set.

func (*HostActionMute) SetEndTime

func (h *HostActionMute) SetEndTime(v string)

SetEndTime allocates a new h.EndTime and returns the pointer to it.

func (*HostActionMute) SetMessage

func (h *HostActionMute) SetMessage(v string)

SetMessage allocates a new h.Message and returns the pointer to it.

func (*HostActionMute) SetOverride

func (h *HostActionMute) SetOverride(v bool)

SetOverride allocates a new h.Override and returns the pointer to it.

type HostActionResp

type HostActionResp struct {
	Action   string `json:"action"`
	Hostname string `json:"hostname"`
	Message  string `json:"message,omitempty"`
}

type IntegrationAWSAccount

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"`
}

IntegrationAWSAccount defines the request payload for creating & updating Datadog-AWS integration.

func (*IntegrationAWSAccount) GetAccountID

func (i *IntegrationAWSAccount) GetAccountID() string

GetAccountID returns the AccountID field if non-nil, zero value otherwise.

func (*IntegrationAWSAccount) GetAccountIDOk

func (i *IntegrationAWSAccount) GetAccountIDOk() (string, bool)

GetAccountIDOk 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 (*IntegrationAWSAccount) GetRoleName

func (i *IntegrationAWSAccount) GetRoleName() string

GetRoleName returns the RoleName field if non-nil, zero value otherwise.

func (*IntegrationAWSAccount) GetRoleNameOk

func (i *IntegrationAWSAccount) GetRoleNameOk() (string, bool)

GetRoleNameOk 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 (*IntegrationAWSAccount) HasAccountID

func (i *IntegrationAWSAccount) HasAccountID() bool

HasAccountID returns a boolean if a field has been set.

func (*IntegrationAWSAccount) HasRoleName

func (i *IntegrationAWSAccount) HasRoleName() bool

HasRoleName returns a boolean if a field has been set.

func (*IntegrationAWSAccount) SetAccountID

func (i *IntegrationAWSAccount) SetAccountID(v string)

SetAccountID allocates a new i.AccountID and returns the pointer to it.

func (*IntegrationAWSAccount) SetRoleName

func (i *IntegrationAWSAccount) SetRoleName(v string)

SetRoleName allocates a new i.RoleName and returns the pointer to it.

type IntegrationAWSAccountCreateResponse

type IntegrationAWSAccountCreateResponse struct {
	ExternalID string `json:"external_id"`
}

IntegrationAWSAccountCreateResponse defines the response payload for creating & updating Datadog-AWS integration.

type IntegrationAWSAccountDeleteRequest

type IntegrationAWSAccountDeleteRequest struct {
	AccountID *string `json:"account_id"`
	RoleName  *string `json:"role_name"`
}

func (*IntegrationAWSAccountDeleteRequest) GetAccountID

func (i *IntegrationAWSAccountDeleteRequest) GetAccountID() string

GetAccountID returns the AccountID field if non-nil, zero value otherwise.

func (*IntegrationAWSAccountDeleteRequest) GetAccountIDOk

func (i *IntegrationAWSAccountDeleteRequest) GetAccountIDOk() (string, bool)

GetAccountIDOk 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 (*IntegrationAWSAccountDeleteRequest) GetRoleName

func (i *IntegrationAWSAccountDeleteRequest) GetRoleName() string

GetRoleName returns the RoleName field if non-nil, zero value otherwise.

func (*IntegrationAWSAccountDeleteRequest) GetRoleNameOk

func (i *IntegrationAWSAccountDeleteRequest) GetRoleNameOk() (string, bool)

GetRoleNameOk 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 (*IntegrationAWSAccountDeleteRequest) HasAccountID

func (i *IntegrationAWSAccountDeleteRequest) HasAccountID() bool

HasAccountID returns a boolean if a field has been set.

func (*IntegrationAWSAccountDeleteRequest) HasRoleName

func (i *IntegrationAWSAccountDeleteRequest) HasRoleName() bool

HasRoleName returns a boolean if a field has been set.

func (*IntegrationAWSAccountDeleteRequest) SetAccountID

func (i *IntegrationAWSAccountDeleteRequest) SetAccountID(v string)

SetAccountID allocates a new i.AccountID and returns the pointer to it.

func (*IntegrationAWSAccountDeleteRequest) SetRoleName

func (i *IntegrationAWSAccountDeleteRequest) SetRoleName(v string)

SetRoleName allocates a new i.RoleName and returns the pointer to it.

type IntegrationAWSAccountGetResponse

type IntegrationAWSAccountGetResponse struct {
	Accounts []IntegrationAWSAccount `json:"accounts"`
}

type IntegrationGCP

type IntegrationGCP struct {
	ProjectID   *string `json:"project_id"`
	ClientEmail *string `json:"client_email"`
	HostFilters *string `json:"host_filters"`
}

IntegrationGCP defines the response for listing Datadog-Google CloudPlatform integration.

func (*IntegrationGCP) GetClientEmail

func (i *IntegrationGCP) GetClientEmail() string

GetClientEmail returns the ClientEmail field if non-nil, zero value otherwise.

func (*IntegrationGCP) GetClientEmailOk

func (i *IntegrationGCP) GetClientEmailOk() (string, bool)

GetClientEmailOk returns a tuple with the ClientEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCP) GetHostFilters

func (i *IntegrationGCP) GetHostFilters() string

GetHostFilters returns the HostFilters field if non-nil, zero value otherwise.

func (*IntegrationGCP) GetHostFiltersOk

func (i *IntegrationGCP) GetHostFiltersOk() (string, bool)

GetHostFiltersOk returns a tuple with the HostFilters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCP) GetProjectID

func (i *IntegrationGCP) GetProjectID() string

GetProjectID returns the ProjectID field if non-nil, zero value otherwise.

func (*IntegrationGCP) GetProjectIDOk

func (i *IntegrationGCP) GetProjectIDOk() (string, bool)

GetProjectIDOk returns a tuple with the ProjectID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCP) HasClientEmail

func (i *IntegrationGCP) HasClientEmail() bool

HasClientEmail returns a boolean if a field has been set.

func (*IntegrationGCP) HasHostFilters

func (i *IntegrationGCP) HasHostFilters() bool

HasHostFilters returns a boolean if a field has been set.

func (*IntegrationGCP) HasProjectID

func (i *IntegrationGCP) HasProjectID() bool

HasProjectID returns a boolean if a field has been set.

func (*IntegrationGCP) SetClientEmail

func (i *IntegrationGCP) SetClientEmail(v string)

SetClientEmail allocates a new i.ClientEmail and returns the pointer to it.

func (*IntegrationGCP) SetHostFilters

func (i *IntegrationGCP) SetHostFilters(v string)

SetHostFilters allocates a new i.HostFilters and returns the pointer to it.

func (*IntegrationGCP) SetProjectID

func (i *IntegrationGCP) SetProjectID(v string)

SetProjectID allocates a new i.ProjectID and returns the pointer to it.

type IntegrationGCPCreateRequest

type IntegrationGCPCreateRequest struct {
	Type                    *string `json:"type"` // Should be service_account
	ProjectID               *string `json:"project_id"`
	PrivateKeyID            *string `json:"private_key_id"`
	PrivateKey              *string `json:"private_key"`
	ClientEmail             *string `json:"client_email"`
	ClientID                *string `json:"client_id"`
	AuthURI                 *string `json:"auth_uri"`                    // Should be https://accounts.google.com/o/oauth2/auth
	TokenURI                *string `json:"token_uri"`                   // Should be https://accounts.google.com/o/oauth2/token
	AuthProviderX509CertURL *string `json:"auth_provider_x509_cert_url"` // Should be https://www.googleapis.com/oauth2/v1/certs
	ClientX509CertURL       *string `json:"client_x509_cert_url"`        // https://www.googleapis.com/robot/v1/metadata/x509/<CLIENT_EMAIL>
	HostFilters             *string `json:"host_filters,omitempty"`
}

IntegrationGCPCreateRequest defines the request payload for creating Datadog-Google CloudPlatform integration.

func (*IntegrationGCPCreateRequest) GetAuthProviderX509CertURL

func (i *IntegrationGCPCreateRequest) GetAuthProviderX509CertURL() string

GetAuthProviderX509CertURL returns the AuthProviderX509CertURL field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetAuthProviderX509CertURLOk

func (i *IntegrationGCPCreateRequest) GetAuthProviderX509CertURLOk() (string, bool)

GetAuthProviderX509CertURLOk returns a tuple with the AuthProviderX509CertURL field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetAuthURI

func (i *IntegrationGCPCreateRequest) GetAuthURI() string

GetAuthURI returns the AuthURI field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetAuthURIOk

func (i *IntegrationGCPCreateRequest) GetAuthURIOk() (string, bool)

GetAuthURIOk returns a tuple with the AuthURI field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetClientEmail

func (i *IntegrationGCPCreateRequest) GetClientEmail() string

GetClientEmail returns the ClientEmail field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetClientEmailOk

func (i *IntegrationGCPCreateRequest) GetClientEmailOk() (string, bool)

GetClientEmailOk returns a tuple with the ClientEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetClientID

func (i *IntegrationGCPCreateRequest) GetClientID() string

GetClientID returns the ClientID field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetClientIDOk

func (i *IntegrationGCPCreateRequest) GetClientIDOk() (string, bool)

GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetClientX509CertURL

func (i *IntegrationGCPCreateRequest) GetClientX509CertURL() string

GetClientX509CertURL returns the ClientX509CertURL field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetClientX509CertURLOk

func (i *IntegrationGCPCreateRequest) GetClientX509CertURLOk() (string, bool)

GetClientX509CertURLOk returns a tuple with the ClientX509CertURL field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetHostFilters

func (i *IntegrationGCPCreateRequest) GetHostFilters() string

GetHostFilters returns the HostFilters field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetHostFiltersOk

func (i *IntegrationGCPCreateRequest) GetHostFiltersOk() (string, bool)

GetHostFiltersOk returns a tuple with the HostFilters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetPrivateKey

func (i *IntegrationGCPCreateRequest) GetPrivateKey() string

GetPrivateKey returns the PrivateKey field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetPrivateKeyID

func (i *IntegrationGCPCreateRequest) GetPrivateKeyID() string

GetPrivateKeyID returns the PrivateKeyID field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetPrivateKeyIDOk

func (i *IntegrationGCPCreateRequest) GetPrivateKeyIDOk() (string, bool)

GetPrivateKeyIDOk returns a tuple with the PrivateKeyID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetPrivateKeyOk

func (i *IntegrationGCPCreateRequest) GetPrivateKeyOk() (string, bool)

GetPrivateKeyOk returns a tuple with the PrivateKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetProjectID

func (i *IntegrationGCPCreateRequest) GetProjectID() string

GetProjectID returns the ProjectID field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetProjectIDOk

func (i *IntegrationGCPCreateRequest) GetProjectIDOk() (string, bool)

GetProjectIDOk returns a tuple with the ProjectID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetTokenURI

func (i *IntegrationGCPCreateRequest) GetTokenURI() string

GetTokenURI returns the TokenURI field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetTokenURIOk

func (i *IntegrationGCPCreateRequest) GetTokenURIOk() (string, bool)

GetTokenURIOk returns a tuple with the TokenURI field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPCreateRequest) GetType

func (i *IntegrationGCPCreateRequest) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*IntegrationGCPCreateRequest) GetTypeOk

func (i *IntegrationGCPCreateRequest) GetTypeOk() (string, bool)

GetTypeOk 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 (*IntegrationGCPCreateRequest) HasAuthProviderX509CertURL

func (i *IntegrationGCPCreateRequest) HasAuthProviderX509CertURL() bool

HasAuthProviderX509CertURL returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasAuthURI

func (i *IntegrationGCPCreateRequest) HasAuthURI() bool

HasAuthURI returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasClientEmail

func (i *IntegrationGCPCreateRequest) HasClientEmail() bool

HasClientEmail returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasClientID

func (i *IntegrationGCPCreateRequest) HasClientID() bool

HasClientID returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasClientX509CertURL

func (i *IntegrationGCPCreateRequest) HasClientX509CertURL() bool

HasClientX509CertURL returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasHostFilters

func (i *IntegrationGCPCreateRequest) HasHostFilters() bool

HasHostFilters returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasPrivateKey

func (i *IntegrationGCPCreateRequest) HasPrivateKey() bool

HasPrivateKey returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasPrivateKeyID

func (i *IntegrationGCPCreateRequest) HasPrivateKeyID() bool

HasPrivateKeyID returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasProjectID

func (i *IntegrationGCPCreateRequest) HasProjectID() bool

HasProjectID returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasTokenURI

func (i *IntegrationGCPCreateRequest) HasTokenURI() bool

HasTokenURI returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) HasType

func (i *IntegrationGCPCreateRequest) HasType() bool

HasType returns a boolean if a field has been set.

func (*IntegrationGCPCreateRequest) SetAuthProviderX509CertURL

func (i *IntegrationGCPCreateRequest) SetAuthProviderX509CertURL(v string)

SetAuthProviderX509CertURL allocates a new i.AuthProviderX509CertURL and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetAuthURI

func (i *IntegrationGCPCreateRequest) SetAuthURI(v string)

SetAuthURI allocates a new i.AuthURI and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetClientEmail

func (i *IntegrationGCPCreateRequest) SetClientEmail(v string)

SetClientEmail allocates a new i.ClientEmail and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetClientID

func (i *IntegrationGCPCreateRequest) SetClientID(v string)

SetClientID allocates a new i.ClientID and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetClientX509CertURL

func (i *IntegrationGCPCreateRequest) SetClientX509CertURL(v string)

SetClientX509CertURL allocates a new i.ClientX509CertURL and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetHostFilters

func (i *IntegrationGCPCreateRequest) SetHostFilters(v string)

SetHostFilters allocates a new i.HostFilters and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetPrivateKey

func (i *IntegrationGCPCreateRequest) SetPrivateKey(v string)

SetPrivateKey allocates a new i.PrivateKey and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetPrivateKeyID

func (i *IntegrationGCPCreateRequest) SetPrivateKeyID(v string)

SetPrivateKeyID allocates a new i.PrivateKeyID and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetProjectID

func (i *IntegrationGCPCreateRequest) SetProjectID(v string)

SetProjectID allocates a new i.ProjectID and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetTokenURI

func (i *IntegrationGCPCreateRequest) SetTokenURI(v string)

SetTokenURI allocates a new i.TokenURI and returns the pointer to it.

func (*IntegrationGCPCreateRequest) SetType

func (i *IntegrationGCPCreateRequest) SetType(v string)

SetType allocates a new i.Type and returns the pointer to it.

type IntegrationGCPDeleteRequest

type IntegrationGCPDeleteRequest struct {
	ProjectID   *string `json:"project_id"`
	ClientEmail *string `json:"client_email"`
}

IntegrationGCPDeleteRequest defines the request payload for deleting Datadog-Google CloudPlatform integration.

func (*IntegrationGCPDeleteRequest) GetClientEmail

func (i *IntegrationGCPDeleteRequest) GetClientEmail() string

GetClientEmail returns the ClientEmail field if non-nil, zero value otherwise.

func (*IntegrationGCPDeleteRequest) GetClientEmailOk

func (i *IntegrationGCPDeleteRequest) GetClientEmailOk() (string, bool)

GetClientEmailOk returns a tuple with the ClientEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPDeleteRequest) GetProjectID

func (i *IntegrationGCPDeleteRequest) GetProjectID() string

GetProjectID returns the ProjectID field if non-nil, zero value otherwise.

func (*IntegrationGCPDeleteRequest) GetProjectIDOk

func (i *IntegrationGCPDeleteRequest) GetProjectIDOk() (string, bool)

GetProjectIDOk returns a tuple with the ProjectID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPDeleteRequest) HasClientEmail

func (i *IntegrationGCPDeleteRequest) HasClientEmail() bool

HasClientEmail returns a boolean if a field has been set.

func (*IntegrationGCPDeleteRequest) HasProjectID

func (i *IntegrationGCPDeleteRequest) HasProjectID() bool

HasProjectID returns a boolean if a field has been set.

func (*IntegrationGCPDeleteRequest) SetClientEmail

func (i *IntegrationGCPDeleteRequest) SetClientEmail(v string)

SetClientEmail allocates a new i.ClientEmail and returns the pointer to it.

func (*IntegrationGCPDeleteRequest) SetProjectID

func (i *IntegrationGCPDeleteRequest) SetProjectID(v string)

SetProjectID allocates a new i.ProjectID and returns the pointer to it.

type IntegrationGCPUpdateRequest

type IntegrationGCPUpdateRequest struct {
	ProjectID   *string `json:"project_id"`
	ClientEmail *string `json:"client_email"`
	HostFilters *string `json:"host_filters,omitempty"`
}

IntegrationGCPUpdateRequest defines the request payload for updating Datadog-Google CloudPlatform integration.

func (*IntegrationGCPUpdateRequest) GetClientEmail

func (i *IntegrationGCPUpdateRequest) GetClientEmail() string

GetClientEmail returns the ClientEmail field if non-nil, zero value otherwise.

func (*IntegrationGCPUpdateRequest) GetClientEmailOk

func (i *IntegrationGCPUpdateRequest) GetClientEmailOk() (string, bool)

GetClientEmailOk returns a tuple with the ClientEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPUpdateRequest) GetHostFilters

func (i *IntegrationGCPUpdateRequest) GetHostFilters() string

GetHostFilters returns the HostFilters field if non-nil, zero value otherwise.

func (*IntegrationGCPUpdateRequest) GetHostFiltersOk

func (i *IntegrationGCPUpdateRequest) GetHostFiltersOk() (string, bool)

GetHostFiltersOk returns a tuple with the HostFilters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPUpdateRequest) GetProjectID

func (i *IntegrationGCPUpdateRequest) GetProjectID() string

GetProjectID returns the ProjectID field if non-nil, zero value otherwise.

func (*IntegrationGCPUpdateRequest) GetProjectIDOk

func (i *IntegrationGCPUpdateRequest) GetProjectIDOk() (string, bool)

GetProjectIDOk returns a tuple with the ProjectID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*IntegrationGCPUpdateRequest) HasClientEmail

func (i *IntegrationGCPUpdateRequest) HasClientEmail() bool

HasClientEmail returns a boolean if a field has been set.

func (*IntegrationGCPUpdateRequest) HasHostFilters

func (i *IntegrationGCPUpdateRequest) HasHostFilters() bool

HasHostFilters returns a boolean if a field has been set.

func (*IntegrationGCPUpdateRequest) HasProjectID

func (i *IntegrationGCPUpdateRequest) HasProjectID() bool

HasProjectID returns a boolean if a field has been set.

func (*IntegrationGCPUpdateRequest) SetClientEmail

func (i *IntegrationGCPUpdateRequest) SetClientEmail(v string)

SetClientEmail allocates a new i.ClientEmail and returns the pointer to it.

func (*IntegrationGCPUpdateRequest) SetHostFilters

func (i *IntegrationGCPUpdateRequest) SetHostFilters(v string)

SetHostFilters allocates a new i.HostFilters and returns the pointer to it.

func (*IntegrationGCPUpdateRequest) SetProjectID

func (i *IntegrationGCPUpdateRequest) SetProjectID(v string)

SetProjectID allocates a new i.ProjectID and returns the pointer to it.

type IntegrationPDRequest

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"`
}

IntegrationPDRequest defines the request payload for creating & updating Datadog-PagerDuty integration.

func (*IntegrationPDRequest) GetAPIToken

func (i *IntegrationPDRequest) GetAPIToken() string

GetAPIToken returns the APIToken field if non-nil, zero value otherwise.

func (*IntegrationPDRequest) GetAPITokenOk

func (i *IntegrationPDRequest) GetAPITokenOk() (string, bool)

GetAPITokenOk 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 (*IntegrationPDRequest) GetRunCheck

func (i *IntegrationPDRequest) GetRunCheck() bool

GetRunCheck returns the RunCheck field if non-nil, zero value otherwise.

func (*IntegrationPDRequest) GetRunCheckOk

func (i *IntegrationPDRequest) GetRunCheckOk() (bool, bool)

GetRunCheckOk 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 (*IntegrationPDRequest) GetSubdomain

func (i *IntegrationPDRequest) GetSubdomain() string

GetSubdomain returns the Subdomain field if non-nil, zero value otherwise.

func (*IntegrationPDRequest) GetSubdomainOk

func (i *IntegrationPDRequest) GetSubdomainOk() (string, bool)

GetSubdomainOk 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 (*IntegrationPDRequest) HasAPIToken

func (i *IntegrationPDRequest) HasAPIToken() bool

HasAPIToken returns a boolean if a field has been set.

func (*IntegrationPDRequest) HasRunCheck

func (i *IntegrationPDRequest) HasRunCheck() bool

HasRunCheck returns a boolean if a field has been set.

func (*IntegrationPDRequest) HasSubdomain

func (i *IntegrationPDRequest) HasSubdomain() bool

HasSubdomain returns a boolean if a field has been set.

func (*IntegrationPDRequest) SetAPIToken

func (i *IntegrationPDRequest) SetAPIToken(v string)

SetAPIToken allocates a new i.APIToken and returns the pointer to it.

func (*IntegrationPDRequest) SetRunCheck

func (i *IntegrationPDRequest) SetRunCheck(v bool)

SetRunCheck allocates a new i.RunCheck and returns the pointer to it.

func (*IntegrationPDRequest) SetSubdomain

func (i *IntegrationPDRequest) SetSubdomain(v string)

SetSubdomain allocates a new i.Subdomain and returns the pointer to it.

type IntegrationSlackRequest

type IntegrationSlackRequest struct {
	ServiceHooks []ServiceHookSlackRequest `json:"service_hooks,omitempty"`
	Channels     []ChannelSlackRequest     `json:"channels,omitempty"`
	RunCheck     *bool                     `json:"run_check,omitempty,string"`
}

IntegrationSlackRequest defines the request payload for creating & updating Datadog-Slack integration.

func (*IntegrationSlackRequest) GetRunCheck

func (i *IntegrationSlackRequest) GetRunCheck() bool

GetRunCheck returns the RunCheck field if non-nil, zero value otherwise.

func (*IntegrationSlackRequest) GetRunCheckOk

func (i *IntegrationSlackRequest) GetRunCheckOk() (bool, bool)

GetRunCheckOk 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 (*IntegrationSlackRequest) HasRunCheck

func (i *IntegrationSlackRequest) HasRunCheck() bool

HasRunCheck returns a boolean if a field has been set.

func (*IntegrationSlackRequest) SetRunCheck

func (i *IntegrationSlackRequest) SetRunCheck(v bool)

SetRunCheck allocates a new i.RunCheck and returns the pointer to it.

type Metric

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"`
}

Metric represents a collection of data points that we might send or receive on one single metric line.

func (*Metric) GetHost

func (m *Metric) GetHost() string

GetHost returns the Host field if non-nil, zero value otherwise.

func (*Metric) GetHostOk

func (m *Metric) GetHostOk() (string, bool)

GetHostOk 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 (*Metric) GetMetric

func (m *Metric) GetMetric() string

GetMetric returns the Metric field if non-nil, zero value otherwise.

func (*Metric) GetMetricOk

func (m *Metric) GetMetricOk() (string, bool)

GetMetricOk 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 (*Metric) GetType

func (m *Metric) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*Metric) GetTypeOk

func (m *Metric) GetTypeOk() (string, bool)

GetTypeOk 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 (*Metric) GetUnit

func (m *Metric) GetUnit() string

GetUnit returns the Unit field if non-nil, zero value otherwise.

func (*Metric) GetUnitOk

func (m *Metric) GetUnitOk() (string, bool)

GetUnitOk 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 (*Metric) HasHost

func (m *Metric) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*Metric) HasMetric

func (m *Metric) HasMetric() bool

HasMetric returns a boolean if a field has been set.

func (*Metric) HasType

func (m *Metric) HasType() bool

HasType returns a boolean if a field has been set.

func (*Metric) HasUnit

func (m *Metric) HasUnit() bool

HasUnit returns a boolean if a field has been set.

func (*Metric) SetHost

func (m *Metric) SetHost(v string)

SetHost allocates a new m.Host and returns the pointer to it.

func (*Metric) SetMetric

func (m *Metric) SetMetric(v string)

SetMetric allocates a new m.Metric and returns the pointer to it.

func (*Metric) SetType

func (m *Metric) SetType(v string)

SetType allocates a new m.Type and returns the pointer to it.

func (*Metric) SetUnit

func (m *Metric) SetUnit(v string)

SetUnit allocates a new m.Unit and returns the pointer to it.

type MetricMetadata

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"`
}

MetricMetadata allows you to edit fields of a metric's metadata.

func (*MetricMetadata) GetDescription

func (m *MetricMetadata) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

func (*MetricMetadata) GetDescriptionOk

func (m *MetricMetadata) GetDescriptionOk() (string, bool)

GetDescriptionOk 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 (*MetricMetadata) GetPerUnit

func (m *MetricMetadata) GetPerUnit() string

GetPerUnit returns the PerUnit field if non-nil, zero value otherwise.

func (*MetricMetadata) GetPerUnitOk

func (m *MetricMetadata) GetPerUnitOk() (string, bool)

GetPerUnitOk 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 (*MetricMetadata) GetShortName

func (m *MetricMetadata) GetShortName() string

GetShortName returns the ShortName field if non-nil, zero value otherwise.

func (*MetricMetadata) GetShortNameOk

func (m *MetricMetadata) GetShortNameOk() (string, bool)

GetShortNameOk 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 (*MetricMetadata) GetStatsdInterval

func (m *MetricMetadata) GetStatsdInterval() int

GetStatsdInterval returns the StatsdInterval field if non-nil, zero value otherwise.

func (*MetricMetadata) GetStatsdIntervalOk

func (m *MetricMetadata) GetStatsdIntervalOk() (int, bool)

GetStatsdIntervalOk 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 (*MetricMetadata) GetType

func (m *MetricMetadata) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*MetricMetadata) GetTypeOk

func (m *MetricMetadata) GetTypeOk() (string, bool)

GetTypeOk 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 (*MetricMetadata) GetUnit

func (m *MetricMetadata) GetUnit() string

GetUnit returns the Unit field if non-nil, zero value otherwise.

func (*MetricMetadata) GetUnitOk

func (m *MetricMetadata) GetUnitOk() (string, bool)

GetUnitOk 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 (*MetricMetadata) HasDescription

func (m *MetricMetadata) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*MetricMetadata) HasPerUnit

func (m *MetricMetadata) HasPerUnit() bool

HasPerUnit returns a boolean if a field has been set.

func (*MetricMetadata) HasShortName

func (m *MetricMetadata) HasShortName() bool

HasShortName returns a boolean if a field has been set.

func (*MetricMetadata) HasStatsdInterval

func (m *MetricMetadata) HasStatsdInterval() bool

HasStatsdInterval returns a boolean if a field has been set.

func (*MetricMetadata) HasType

func (m *MetricMetadata) HasType() bool

HasType returns a boolean if a field has been set.

func (*MetricMetadata) HasUnit

func (m *MetricMetadata) HasUnit() bool

HasUnit returns a boolean if a field has been set.

func (*MetricMetadata) SetDescription

func (m *MetricMetadata) SetDescription(v string)

SetDescription allocates a new m.Description and returns the pointer to it.

func (*MetricMetadata) SetPerUnit

func (m *MetricMetadata) SetPerUnit(v string)

SetPerUnit allocates a new m.PerUnit and returns the pointer to it.

func (*MetricMetadata) SetShortName

func (m *MetricMetadata) SetShortName(v string)

SetShortName allocates a new m.ShortName and returns the pointer to it.

func (*MetricMetadata) SetStatsdInterval

func (m *MetricMetadata) SetStatsdInterval(v int)

SetStatsdInterval allocates a new m.StatsdInterval and returns the pointer to it.

func (*MetricMetadata) SetType

func (m *MetricMetadata) SetType(v string)

SetType allocates a new m.Type and returns the pointer to it.

func (*MetricMetadata) SetUnit

func (m *MetricMetadata) SetUnit(v string)

SetUnit allocates a new m.Unit and returns the pointer to it.

type Monitor

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"`
	OverallStateModified *string  `json:"overall_state_modified,omitempty"`
	Tags                 []string `json:"tags"`
	Options              *Options `json:"options,omitempty"`
	State                State    `json:"state,omitempty"`
}

Monitor allows watching a metric or check that you care about, notifying your team when some defined threshold is exceeded

func (*Monitor) GetCreator

func (m *Monitor) GetCreator() Creator

GetCreator returns the Creator field if non-nil, zero value otherwise.

func (*Monitor) GetCreatorOk

func (m *Monitor) GetCreatorOk() (Creator, bool)

GetCreatorOk 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 (*Monitor) GetId

func (m *Monitor) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Monitor) GetIdOk

func (m *Monitor) GetIdOk() (int, bool)

GetIdOk 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 (*Monitor) GetMessage

func (m *Monitor) GetMessage() string

GetMessage returns the Message field if non-nil, zero value otherwise.

func (*Monitor) GetMessageOk

func (m *Monitor) GetMessageOk() (string, bool)

GetMessageOk 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 (*Monitor) GetName

func (m *Monitor) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*Monitor) GetNameOk

func (m *Monitor) GetNameOk() (string, bool)

GetNameOk 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 (*Monitor) GetOptions

func (m *Monitor) GetOptions() Options

GetOptions returns the Options field if non-nil, zero value otherwise.

func (*Monitor) GetOptionsOk

func (m *Monitor) GetOptionsOk() (Options, bool)

GetOptionsOk 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 (*Monitor) GetOverallState

func (m *Monitor) GetOverallState() string

GetOverallState returns the OverallState field if non-nil, zero value otherwise.

func (*Monitor) GetOverallStateModified

func (m *Monitor) GetOverallStateModified() string

GetOverallStateModified returns the OverallStateModified field if non-nil, zero value otherwise.

func (*Monitor) GetOverallStateModifiedOk

func (m *Monitor) GetOverallStateModifiedOk() (string, bool)

GetOverallStateModifiedOk returns a tuple with the OverallStateModified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Monitor) GetOverallStateOk

func (m *Monitor) GetOverallStateOk() (string, bool)

GetOverallStateOk 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 (*Monitor) GetQuery

func (m *Monitor) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*Monitor) GetQueryOk

func (m *Monitor) GetQueryOk() (string, bool)

GetQueryOk 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 (*Monitor) GetType

func (m *Monitor) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*Monitor) GetTypeOk

func (m *Monitor) GetTypeOk() (string, bool)

GetTypeOk 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 (*Monitor) HasCreator

func (m *Monitor) HasCreator() bool

HasCreator returns a boolean if a field has been set.

func (*Monitor) HasId

func (m *Monitor) HasId() bool

HasId returns a boolean if a field has been set.

func (*Monitor) HasMessage

func (m *Monitor) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Monitor) HasName

func (m *Monitor) HasName() bool

HasName returns a boolean if a field has been set.

func (*Monitor) HasOptions

func (m *Monitor) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (*Monitor) HasOverallState

func (m *Monitor) HasOverallState() bool

HasOverallState returns a boolean if a field has been set.

func (*Monitor) HasOverallStateModified

func (m *Monitor) HasOverallStateModified() bool

HasOverallStateModified returns a boolean if a field has been set.

func (*Monitor) HasQuery

func (m *Monitor) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*Monitor) HasType

func (m *Monitor) HasType() bool

HasType returns a boolean if a field has been set.

func (*Monitor) SetCreator

func (m *Monitor) SetCreator(v Creator)

SetCreator allocates a new m.Creator and returns the pointer to it.

func (*Monitor) SetId

func (m *Monitor) SetId(v int)

SetId allocates a new m.Id and returns the pointer to it.

func (*Monitor) SetMessage

func (m *Monitor) SetMessage(v string)

SetMessage allocates a new m.Message and returns the pointer to it.

func (*Monitor) SetName

func (m *Monitor) SetName(v string)

SetName allocates a new m.Name and returns the pointer to it.

func (*Monitor) SetOptions

func (m *Monitor) SetOptions(v Options)

SetOptions allocates a new m.Options and returns the pointer to it.

func (*Monitor) SetOverallState

func (m *Monitor) SetOverallState(v string)

SetOverallState allocates a new m.OverallState and returns the pointer to it.

func (*Monitor) SetOverallStateModified

func (m *Monitor) SetOverallStateModified(v string)

SetOverallStateModified allocates a new m.OverallStateModified and returns the pointer to it.

func (*Monitor) SetQuery

func (m *Monitor) SetQuery(v string)

SetQuery allocates a new m.Query and returns the pointer to it.

func (*Monitor) SetType

func (m *Monitor) SetType(v string)

SetType allocates a new m.Type and returns the pointer to it.

type NoDataTimeframe

type NoDataTimeframe int

func (*NoDataTimeframe) UnmarshalJSON

func (tf *NoDataTimeframe) UnmarshalJSON(data []byte) error

type Options

type Options struct {
	NoDataTimeframe   NoDataTimeframe   `json:"no_data_timeframe,omitempty"`
	NotifyAudit       *bool             `json:"notify_audit,omitempty"`
	NotifyNoData      *bool             `json:"notify_no_data,omitempty"`
	RenotifyInterval  *int              `json:"renotify_interval,omitempty"`
	NewHostDelay      *int              `json:"new_host_delay,omitempty"`
	EvaluationDelay   *int              `json:"evaluation_delay,omitempty"`
	Silenced          map[string]int    `json:"silenced,omitempty"`
	TimeoutH          *int              `json:"timeout_h,omitempty"`
	EscalationMessage *string           `json:"escalation_message,omitempty"`
	Thresholds        *ThresholdCount   `json:"thresholds,omitempty"`
	ThresholdWindows  *ThresholdWindows `json:"threshold_windows,omitempty"`
	IncludeTags       *bool             `json:"include_tags,omitempty"`
	RequireFullWindow *bool             `json:"require_full_window,omitempty"`
	Locked            *bool             `json:"locked,omitempty"`
	EnableLogsSample  *bool             `json:"enable_logs_sample,omitempty"`
}

func (*Options) GetEnableLogsSample

func (o *Options) GetEnableLogsSample() bool

GetEnableLogsSample returns the EnableLogsSample field if non-nil, zero value otherwise.

func (*Options) GetEnableLogsSampleOk

func (o *Options) GetEnableLogsSampleOk() (bool, bool)

GetEnableLogsSampleOk returns a tuple with the EnableLogsSample field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Options) GetEscalationMessage

func (o *Options) GetEscalationMessage() string

GetEscalationMessage returns the EscalationMessage field if non-nil, zero value otherwise.

func (*Options) GetEscalationMessageOk

func (o *Options) GetEscalationMessageOk() (string, bool)

GetEscalationMessageOk 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 (*Options) GetEvaluationDelay

func (o *Options) GetEvaluationDelay() int

GetEvaluationDelay returns the EvaluationDelay field if non-nil, zero value otherwise.

func (*Options) GetEvaluationDelayOk

func (o *Options) GetEvaluationDelayOk() (int, bool)

GetEvaluationDelayOk 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 (*Options) GetIncludeTags

func (o *Options) GetIncludeTags() bool

GetIncludeTags returns the IncludeTags field if non-nil, zero value otherwise.

func (*Options) GetIncludeTagsOk

func (o *Options) GetIncludeTagsOk() (bool, bool)

GetIncludeTagsOk 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 (*Options) GetLocked

func (o *Options) GetLocked() bool

GetLocked returns the Locked field if non-nil, zero value otherwise.

func (*Options) GetLockedOk

func (o *Options) GetLockedOk() (bool, bool)

GetLockedOk 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 (*Options) GetNewHostDelay

func (o *Options) GetNewHostDelay() int

GetNewHostDelay returns the NewHostDelay field if non-nil, zero value otherwise.

func (*Options) GetNewHostDelayOk

func (o *Options) GetNewHostDelayOk() (int, bool)

GetNewHostDelayOk 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 (*Options) GetNotifyAudit

func (o *Options) GetNotifyAudit() bool

GetNotifyAudit returns the NotifyAudit field if non-nil, zero value otherwise.

func (*Options) GetNotifyAuditOk

func (o *Options) GetNotifyAuditOk() (bool, bool)

GetNotifyAuditOk 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 (*Options) GetNotifyNoData

func (o *Options) GetNotifyNoData() bool

GetNotifyNoData returns the NotifyNoData field if non-nil, zero value otherwise.

func (*Options) GetNotifyNoDataOk

func (o *Options) GetNotifyNoDataOk() (bool, bool)

GetNotifyNoDataOk 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 (*Options) GetRenotifyInterval

func (o *Options) GetRenotifyInterval() int

GetRenotifyInterval returns the RenotifyInterval field if non-nil, zero value otherwise.

func (*Options) GetRenotifyIntervalOk

func (o *Options) GetRenotifyIntervalOk() (int, bool)

GetRenotifyIntervalOk 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 (*Options) GetRequireFullWindow

func (o *Options) GetRequireFullWindow() bool

GetRequireFullWindow returns the RequireFullWindow field if non-nil, zero value otherwise.

func (*Options) GetRequireFullWindowOk

func (o *Options) GetRequireFullWindowOk() (bool, bool)

GetRequireFullWindowOk 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 (*Options) GetThresholdWindows

func (o *Options) GetThresholdWindows() ThresholdWindows

GetThresholdWindows returns the ThresholdWindows field if non-nil, zero value otherwise.

func (*Options) GetThresholdWindowsOk

func (o *Options) GetThresholdWindowsOk() (ThresholdWindows, bool)

GetThresholdWindowsOk returns a tuple with the ThresholdWindows field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Options) GetThresholds

func (o *Options) GetThresholds() ThresholdCount

GetThresholds returns the Thresholds field if non-nil, zero value otherwise.

func (*Options) GetThresholdsOk

func (o *Options) GetThresholdsOk() (ThresholdCount, bool)

GetThresholdsOk 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 (*Options) GetTimeoutH

func (o *Options) GetTimeoutH() int

GetTimeoutH returns the TimeoutH field if non-nil, zero value otherwise.

func (*Options) GetTimeoutHOk

func (o *Options) GetTimeoutHOk() (int, bool)

GetTimeoutHOk 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 (*Options) HasEnableLogsSample

func (o *Options) HasEnableLogsSample() bool

HasEnableLogsSample returns a boolean if a field has been set.

func (*Options) HasEscalationMessage

func (o *Options) HasEscalationMessage() bool

HasEscalationMessage returns a boolean if a field has been set.

func (*Options) HasEvaluationDelay

func (o *Options) HasEvaluationDelay() bool

HasEvaluationDelay returns a boolean if a field has been set.

func (*Options) HasIncludeTags

func (o *Options) HasIncludeTags() bool

HasIncludeTags returns a boolean if a field has been set.

func (*Options) HasLocked

func (o *Options) HasLocked() bool

HasLocked returns a boolean if a field has been set.

func (*Options) HasNewHostDelay

func (o *Options) HasNewHostDelay() bool

HasNewHostDelay returns a boolean if a field has been set.

func (*Options) HasNotifyAudit

func (o *Options) HasNotifyAudit() bool

HasNotifyAudit returns a boolean if a field has been set.

func (*Options) HasNotifyNoData

func (o *Options) HasNotifyNoData() bool

HasNotifyNoData returns a boolean if a field has been set.

func (*Options) HasRenotifyInterval

func (o *Options) HasRenotifyInterval() bool

HasRenotifyInterval returns a boolean if a field has been set.

func (*Options) HasRequireFullWindow

func (o *Options) HasRequireFullWindow() bool

HasRequireFullWindow returns a boolean if a field has been set.

func (*Options) HasThresholdWindows

func (o *Options) HasThresholdWindows() bool

HasThresholdWindows returns a boolean if a field has been set.

func (*Options) HasThresholds

func (o *Options) HasThresholds() bool

HasThresholds returns a boolean if a field has been set.

func (*Options) HasTimeoutH

func (o *Options) HasTimeoutH() bool

HasTimeoutH returns a boolean if a field has been set.

func (*Options) SetEnableLogsSample

func (o *Options) SetEnableLogsSample(v bool)

SetEnableLogsSample allocates a new o.EnableLogsSample and returns the pointer to it.

func (*Options) SetEscalationMessage

func (o *Options) SetEscalationMessage(v string)

SetEscalationMessage allocates a new o.EscalationMessage and returns the pointer to it.

func (*Options) SetEvaluationDelay

func (o *Options) SetEvaluationDelay(v int)

SetEvaluationDelay allocates a new o.EvaluationDelay and returns the pointer to it.

func (*Options) SetIncludeTags

func (o *Options) SetIncludeTags(v bool)

SetIncludeTags allocates a new o.IncludeTags and returns the pointer to it.

func (*Options) SetLocked

func (o *Options) SetLocked(v bool)

SetLocked allocates a new o.Locked and returns the pointer to it.

func (*Options) SetNewHostDelay

func (o *Options) SetNewHostDelay(v int)

SetNewHostDelay allocates a new o.NewHostDelay and returns the pointer to it.

func (*Options) SetNotifyAudit

func (o *Options) SetNotifyAudit(v bool)

SetNotifyAudit allocates a new o.NotifyAudit and returns the pointer to it.

func (*Options) SetNotifyNoData

func (o *Options) SetNotifyNoData(v bool)

SetNotifyNoData allocates a new o.NotifyNoData and returns the pointer to it.

func (*Options) SetRenotifyInterval

func (o *Options) SetRenotifyInterval(v int)

SetRenotifyInterval allocates a new o.RenotifyInterval and returns the pointer to it.

func (*Options) SetRequireFullWindow

func (o *Options) SetRequireFullWindow(v bool)

SetRequireFullWindow allocates a new o.RequireFullWindow and returns the pointer to it.

func (*Options) SetThresholdWindows

func (o *Options) SetThresholdWindows(v ThresholdWindows)

SetThresholdWindows allocates a new o.ThresholdWindows and returns the pointer to it.

func (*Options) SetThresholds

func (o *Options) SetThresholds(v ThresholdCount)

SetThresholds allocates a new o.Thresholds and returns the pointer to it.

func (*Options) SetTimeoutH

func (o *Options) SetTimeoutH(v int)

SetTimeoutH allocates a new o.TimeoutH and returns the pointer to it.

type Params

type Params struct {
	Sort  *string `json:"sort,omitempty"`
	Text  *string `json:"text,omitempty"`
	Count *string `json:"count,omitempty"`
	Start *string `json:"start,omitempty"`
}

func (*Params) GetCount

func (p *Params) GetCount() string

GetCount returns the Count field if non-nil, zero value otherwise.

func (*Params) GetCountOk

func (p *Params) GetCountOk() (string, bool)

GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Params) GetSort

func (p *Params) GetSort() string

GetSort returns the Sort field if non-nil, zero value otherwise.

func (*Params) GetSortOk

func (p *Params) GetSortOk() (string, bool)

GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Params) GetStart

func (p *Params) GetStart() string

GetStart returns the Start field if non-nil, zero value otherwise.

func (*Params) GetStartOk

func (p *Params) GetStartOk() (string, bool)

GetStartOk 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 (*Params) GetText

func (p *Params) GetText() string

GetText returns the Text field if non-nil, zero value otherwise.

func (*Params) GetTextOk

func (p *Params) GetTextOk() (string, bool)

GetTextOk 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 (*Params) HasCount

func (p *Params) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*Params) HasSort

func (p *Params) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*Params) HasStart

func (p *Params) HasStart() bool

HasStart returns a boolean if a field has been set.

func (*Params) HasText

func (p *Params) HasText() bool

HasText returns a boolean if a field has been set.

func (*Params) SetCount

func (p *Params) SetCount(v string)

SetCount allocates a new p.Count and returns the pointer to it.

func (*Params) SetSort

func (p *Params) SetSort(v string)

SetSort allocates a new p.Sort and returns the pointer to it.

func (*Params) SetStart

func (p *Params) SetStart(v string)

SetStart allocates a new p.Start and returns the pointer to it.

func (*Params) SetText

func (p *Params) SetText(v string)

SetText allocates a new p.Text and returns the pointer to it.

type PrecisionT

type PrecisionT string

func GetPrecision

func GetPrecision(v *PrecisionT) (PrecisionT, bool)

GetPrecision is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func Precision

func Precision(v PrecisionT) *PrecisionT

Precision is a helper routine that allocates a new precision value to store v and returns a pointer to it.

func (*PrecisionT) UnmarshalJSON

func (p *PrecisionT) UnmarshalJSON(data []byte) error

UnmarshalJSON is a Custom Unmarshal for PrecisionT. The Datadog API can return 1 (int), "1" (number, but a string type) or something like "100%" or "*" (string).

type Recurrence

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"`
}

func (*Recurrence) GetPeriod

func (r *Recurrence) GetPeriod() int

GetPeriod returns the Period field if non-nil, zero value otherwise.

func (*Recurrence) GetPeriodOk

func (r *Recurrence) GetPeriodOk() (int, bool)

GetPeriodOk 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 (*Recurrence) GetType

func (r *Recurrence) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*Recurrence) GetTypeOk

func (r *Recurrence) GetTypeOk() (string, bool)

GetTypeOk 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 (*Recurrence) GetUntilDate

func (r *Recurrence) GetUntilDate() int

GetUntilDate returns the UntilDate field if non-nil, zero value otherwise.

func (*Recurrence) GetUntilDateOk

func (r *Recurrence) GetUntilDateOk() (int, bool)

GetUntilDateOk 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 (*Recurrence) GetUntilOccurrences

func (r *Recurrence) GetUntilOccurrences() int

GetUntilOccurrences returns the UntilOccurrences field if non-nil, zero value otherwise.

func (*Recurrence) GetUntilOccurrencesOk

func (r *Recurrence) GetUntilOccurrencesOk() (int, bool)

GetUntilOccurrencesOk 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 (*Recurrence) HasPeriod

func (r *Recurrence) HasPeriod() bool

HasPeriod returns a boolean if a field has been set.

func (*Recurrence) HasType

func (r *Recurrence) HasType() bool

HasType returns a boolean if a field has been set.

func (*Recurrence) HasUntilDate

func (r *Recurrence) HasUntilDate() bool

HasUntilDate returns a boolean if a field has been set.

func (*Recurrence) HasUntilOccurrences

func (r *Recurrence) HasUntilOccurrences() bool

HasUntilOccurrences returns a boolean if a field has been set.

func (*Recurrence) SetPeriod

func (r *Recurrence) SetPeriod(v int)

SetPeriod allocates a new r.Period and returns the pointer to it.

func (*Recurrence) SetType

func (r *Recurrence) SetType(v string)

SetType allocates a new r.Type and returns the pointer to it.

func (*Recurrence) SetUntilDate

func (r *Recurrence) SetUntilDate(v int)

SetUntilDate allocates a new r.UntilDate and returns the pointer to it.

func (*Recurrence) SetUntilOccurrences

func (r *Recurrence) SetUntilOccurrences(v int)

SetUntilOccurrences allocates a new r.UntilOccurrences and returns the pointer to it.

type Response

type Response struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

Response contains common fields that might be present in any API response.

type Rule

type Rule struct {
	Threshold *json.Number `json:"threshold,omitempty"`
	Timeframe *string      `json:"timeframe,omitempty"`
	Color     *string      `json:"color,omitempty"`
}

func (*Rule) GetColor

func (r *Rule) GetColor() string

GetColor returns the Color field if non-nil, zero value otherwise.

func (*Rule) GetColorOk

func (r *Rule) GetColorOk() (string, bool)

GetColorOk 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 (*Rule) GetThreshold

func (r *Rule) GetThreshold() json.Number

GetThreshold returns the Threshold field if non-nil, zero value otherwise.

func (*Rule) GetThresholdOk

func (r *Rule) GetThresholdOk() (json.Number, bool)

GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Rule) GetTimeframe

func (r *Rule) GetTimeframe() string

GetTimeframe returns the Timeframe field if non-nil, zero value otherwise.

func (*Rule) GetTimeframeOk

func (r *Rule) GetTimeframeOk() (string, bool)

GetTimeframeOk 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 (*Rule) HasColor

func (r *Rule) HasColor() bool

HasColor returns a boolean if a field has been set.

func (*Rule) HasThreshold

func (r *Rule) HasThreshold() bool

HasThreshold returns a boolean if a field has been set.

func (*Rule) HasTimeframe

func (r *Rule) HasTimeframe() bool

HasTimeframe returns a boolean if a field has been set.

func (*Rule) SetColor

func (r *Rule) SetColor(v string)

SetColor allocates a new r.Color and returns the pointer to it.

func (*Rule) SetThreshold

func (r *Rule) SetThreshold(v json.Number)

SetThreshold allocates a new r.Threshold and returns the pointer to it.

func (*Rule) SetTimeframe

func (r *Rule) SetTimeframe(v string)

SetTimeframe allocates a new r.Timeframe and returns the pointer to it.

type ScreenShareResponse

type ScreenShareResponse struct {
	BoardId   int    `json:"board_id"`
	PublicUrl string `json:"public_url"`
}

type Screenboard

type Screenboard struct {
	Id                *int               `json:"id,omitempty"`
	Title             *string            `json:"board_title,omitempty"`
	Height            *int               `json:"height,omitempty"`
	Width             *int               `json:"width,omitempty"`
	Shared            *bool              `json:"shared,omitempty"`
	TemplateVariables []TemplateVariable `json:"template_variables,omitempty"`
	Widgets           []Widget           `json:"widgets"`
	ReadOnly          *bool              `json:"read_only,omitempty"`
}

Screenboard represents a user created screenboard. This is the full screenboard struct when we load a screenboard in detail.

func (*Screenboard) GetHeight

func (s *Screenboard) GetHeight() int

GetHeight returns the Height field if non-nil, zero value otherwise.

func (*Screenboard) GetHeightOk

func (s *Screenboard) GetHeightOk() (int, bool)

GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Screenboard) GetId

func (s *Screenboard) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*Screenboard) GetIdOk

func (s *Screenboard) GetIdOk() (int, bool)

GetIdOk 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 (*Screenboard) GetReadOnly

func (s *Screenboard) GetReadOnly() bool

GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise.

func (*Screenboard) GetReadOnlyOk

func (s *Screenboard) GetReadOnlyOk() (bool, bool)

GetReadOnlyOk 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 (*Screenboard) GetShared

func (s *Screenboard) GetShared() bool

GetShared returns the Shared field if non-nil, zero value otherwise.

func (*Screenboard) GetSharedOk

func (s *Screenboard) GetSharedOk() (bool, bool)

GetSharedOk 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 (*Screenboard) GetTitle

func (s *Screenboard) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*Screenboard) GetTitleOk

func (s *Screenboard) GetTitleOk() (string, bool)

GetTitleOk 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 (*Screenboard) GetWidth

func (s *Screenboard) GetWidth() int

GetWidth returns the Width field if non-nil, zero value otherwise.

func (*Screenboard) GetWidthOk

func (s *Screenboard) GetWidthOk() (int, bool)

GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Screenboard) HasHeight

func (s *Screenboard) HasHeight() bool

HasHeight returns a boolean if a field has been set.

func (*Screenboard) HasId

func (s *Screenboard) HasId() bool

HasId returns a boolean if a field has been set.

func (*Screenboard) HasReadOnly

func (s *Screenboard) HasReadOnly() bool

HasReadOnly returns a boolean if a field has been set.

func (*Screenboard) HasShared

func (s *Screenboard) HasShared() bool

HasShared returns a boolean if a field has been set.

func (*Screenboard) HasTitle

func (s *Screenboard) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Screenboard) HasWidth

func (s *Screenboard) HasWidth() bool

HasWidth returns a boolean if a field has been set.

func (*Screenboard) SetHeight

func (s *Screenboard) SetHeight(v int)

SetHeight allocates a new s.Height and returns the pointer to it.

func (*Screenboard) SetId

func (s *Screenboard) SetId(v int)

SetId allocates a new s.Id and returns the pointer to it.

func (*Screenboard) SetReadOnly

func (s *Screenboard) SetReadOnly(v bool)

SetReadOnly allocates a new s.ReadOnly and returns the pointer to it.

func (*Screenboard) SetShared

func (s *Screenboard) SetShared(v bool)

SetShared allocates a new s.Shared and returns the pointer to it.

func (*Screenboard) SetTitle

func (s *Screenboard) SetTitle(v string)

SetTitle allocates a new s.Title and returns the pointer to it.

func (*Screenboard) SetWidth

func (s *Screenboard) SetWidth(v int)

SetWidth allocates a new s.Width and returns the pointer to it.

type ScreenboardLite

type ScreenboardLite struct {
	Id       *int    `json:"id,omitempty"`
	Resource *string `json:"resource,omitempty"`
	Title    *string `json:"title,omitempty"`
}

ScreenboardLite represents a user created screenboard. This is the mini struct when we load the summaries.

func (*ScreenboardLite) GetId

func (s *ScreenboardLite) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*ScreenboardLite) GetIdOk

func (s *ScreenboardLite) GetIdOk() (int, bool)

GetIdOk 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 (*ScreenboardLite) GetResource

func (s *ScreenboardLite) GetResource() string

GetResource returns the Resource field if non-nil, zero value otherwise.

func (*ScreenboardLite) GetResourceOk

func (s *ScreenboardLite) GetResourceOk() (string, bool)

GetResourceOk 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 (*ScreenboardLite) GetTitle

func (s *ScreenboardLite) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*ScreenboardLite) GetTitleOk

func (s *ScreenboardLite) GetTitleOk() (string, bool)

GetTitleOk 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 (*ScreenboardLite) HasId

func (s *ScreenboardLite) HasId() bool

HasId returns a boolean if a field has been set.

func (*ScreenboardLite) HasResource

func (s *ScreenboardLite) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*ScreenboardLite) HasTitle

func (s *ScreenboardLite) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ScreenboardLite) SetId

func (s *ScreenboardLite) SetId(v int)

SetId allocates a new s.Id and returns the pointer to it.

func (*ScreenboardLite) SetResource

func (s *ScreenboardLite) SetResource(v string)

SetResource allocates a new s.Resource and returns the pointer to it.

func (*ScreenboardLite) SetTitle

func (s *ScreenboardLite) SetTitle(v string)

SetTitle allocates a new s.Title and returns the pointer to it.

type ScreenboardMonitor

type ScreenboardMonitor struct {
	Id *int `json:"id,omitempty"`
}

func (*ScreenboardMonitor) GetId

func (s *ScreenboardMonitor) GetId() int

GetId returns the Id field if non-nil, zero value otherwise.

func (*ScreenboardMonitor) GetIdOk

func (s *ScreenboardMonitor) GetIdOk() (int, bool)

GetIdOk 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 (*ScreenboardMonitor) HasId

func (s *ScreenboardMonitor) HasId() bool

HasId returns a boolean if a field has been set.

func (*ScreenboardMonitor) SetId

func (s *ScreenboardMonitor) SetId(v int)

SetId allocates a new s.Id and returns the pointer to it.

type Series

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"`
}

Series represents a collection of data points we get when we query for timeseries data

func (*Series) GetAggr

func (s *Series) GetAggr() string

GetAggr returns the Aggr field if non-nil, zero value otherwise.

func (*Series) GetAggrOk

func (s *Series) GetAggrOk() (string, bool)

GetAggrOk 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 (*Series) GetDisplayName

func (s *Series) GetDisplayName() string

GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.

func (*Series) GetDisplayNameOk

func (s *Series) GetDisplayNameOk() (string, bool)

GetDisplayNameOk 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 (*Series) GetEnd

func (s *Series) GetEnd() float64

GetEnd returns the End field if non-nil, zero value otherwise.

func (*Series) GetEndOk

func (s *Series) GetEndOk() (float64, bool)

GetEndOk 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 (*Series) GetExpression

func (s *Series) GetExpression() string

GetExpression returns the Expression field if non-nil, zero value otherwise.

func (*Series) GetExpressionOk

func (s *Series) GetExpressionOk() (string, bool)

GetExpressionOk 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 (*Series) GetInterval

func (s *Series) GetInterval() int

GetInterval returns the Interval field if non-nil, zero value otherwise.

func (*Series) GetIntervalOk

func (s *Series) GetIntervalOk() (int, bool)

GetIntervalOk 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 (*Series) GetLength

func (s *Series) GetLength() int

GetLength returns the Length field if non-nil, zero value otherwise.

func (*Series) GetLengthOk

func (s *Series) GetLengthOk() (int, bool)

GetLengthOk 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 (*Series) GetMetric

func (s *Series) GetMetric() string

GetMetric returns the Metric field if non-nil, zero value otherwise.

func (*Series) GetMetricOk

func (s *Series) GetMetricOk() (string, bool)

GetMetricOk 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 (*Series) GetScope

func (s *Series) GetScope() string

GetScope returns the Scope field if non-nil, zero value otherwise.

func (*Series) GetScopeOk

func (s *Series) GetScopeOk() (string, bool)

GetScopeOk 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 (*Series) GetStart

func (s *Series) GetStart() float64

GetStart returns the Start field if non-nil, zero value otherwise.

func (*Series) GetStartOk

func (s *Series) GetStartOk() (float64, bool)

GetStartOk 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 (*Series) GetUnits

func (s *Series) GetUnits() UnitPair

GetUnits returns the Units field if non-nil, zero value otherwise.

func (*Series) GetUnitsOk

func (s *Series) GetUnitsOk() (UnitPair, bool)

GetUnitsOk 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 (*Series) HasAggr

func (s *Series) HasAggr() bool

HasAggr returns a boolean if a field has been set.

func (*Series) HasDisplayName

func (s *Series) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*Series) HasEnd

func (s *Series) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*Series) HasExpression

func (s *Series) HasExpression() bool

HasExpression returns a boolean if a field has been set.

func (*Series) HasInterval

func (s *Series) HasInterval() bool

HasInterval returns a boolean if a field has been set.

func (*Series) HasLength

func (s *Series) HasLength() bool

HasLength returns a boolean if a field has been set.

func (*Series) HasMetric

func (s *Series) HasMetric() bool

HasMetric returns a boolean if a field has been set.

func (*Series) HasScope

func (s *Series) HasScope() bool

HasScope returns a boolean if a field has been set.

func (*Series) HasStart

func (s *Series) HasStart() bool

HasStart returns a boolean if a field has been set.

func (*Series) HasUnits

func (s *Series) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (*Series) SetAggr

func (s *Series) SetAggr(v string)

SetAggr allocates a new s.Aggr and returns the pointer to it.

func (*Series) SetDisplayName

func (s *Series) SetDisplayName(v string)

SetDisplayName allocates a new s.DisplayName and returns the pointer to it.

func (*Series) SetEnd

func (s *Series) SetEnd(v float64)

SetEnd allocates a new s.End and returns the pointer to it.

func (*Series) SetExpression

func (s *Series) SetExpression(v string)

SetExpression allocates a new s.Expression and returns the pointer to it.

func (*Series) SetInterval

func (s *Series) SetInterval(v int)

SetInterval allocates a new s.Interval and returns the pointer to it.

func (*Series) SetLength

func (s *Series) SetLength(v int)

SetLength allocates a new s.Length and returns the pointer to it.

func (*Series) SetMetric

func (s *Series) SetMetric(v string)

SetMetric allocates a new s.Metric and returns the pointer to it.

func (*Series) SetScope

func (s *Series) SetScope(v string)

SetScope allocates a new s.Scope and returns the pointer to it.

func (*Series) SetStart

func (s *Series) SetStart(v float64)

SetStart allocates a new s.Start and returns the pointer to it.

func (*Series) SetUnits

func (s *Series) SetUnits(v UnitPair)

SetUnits allocates a new s.Units and returns the pointer to it.

type ServiceHookSlackRequest

type ServiceHookSlackRequest struct {
	Account *string `json:"account"`
	Url     *string `json:"url"`
}

ServiceHookSlackRequest defines the ServiceHooks struct that is part of the IntegrationSlackRequest.

func (*ServiceHookSlackRequest) GetAccount

func (s *ServiceHookSlackRequest) GetAccount() string

GetAccount returns the Account field if non-nil, zero value otherwise.

func (*ServiceHookSlackRequest) GetAccountOk

func (s *ServiceHookSlackRequest) GetAccountOk() (string, bool)

GetAccountOk 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 (*ServiceHookSlackRequest) GetUrl

func (s *ServiceHookSlackRequest) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

func (*ServiceHookSlackRequest) GetUrlOk

func (s *ServiceHookSlackRequest) GetUrlOk() (string, bool)

GetUrlOk 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 (*ServiceHookSlackRequest) HasAccount

func (s *ServiceHookSlackRequest) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ServiceHookSlackRequest) HasUrl

func (s *ServiceHookSlackRequest) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*ServiceHookSlackRequest) SetAccount

func (s *ServiceHookSlackRequest) SetAccount(v string)

SetAccount allocates a new s.Account and returns the pointer to it.

func (*ServiceHookSlackRequest) SetUrl

func (s *ServiceHookSlackRequest) SetUrl(v string)

SetUrl allocates a new s.Url and returns the pointer to it.

type ServicePDRequest

type ServicePDRequest struct {
	ServiceName *string `json:"service_name"`
	ServiceKey  *string `json:"service_key"`
}

ServicePDRequest defines the Services struct that is part of the IntegrationPDRequest.

func (*ServicePDRequest) GetServiceKey

func (s *ServicePDRequest) GetServiceKey() string

GetServiceKey returns the ServiceKey field if non-nil, zero value otherwise.

func (*ServicePDRequest) GetServiceKeyOk

func (s *ServicePDRequest) GetServiceKeyOk() (string, bool)

GetServiceKeyOk 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 (*ServicePDRequest) GetServiceName

func (s *ServicePDRequest) GetServiceName() string

GetServiceName returns the ServiceName field if non-nil, zero value otherwise.

func (*ServicePDRequest) GetServiceNameOk

func (s *ServicePDRequest) GetServiceNameOk() (string, bool)

GetServiceNameOk 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 (*ServicePDRequest) HasServiceKey

func (s *ServicePDRequest) HasServiceKey() bool

HasServiceKey returns a boolean if a field has been set.

func (*ServicePDRequest) HasServiceName

func (s *ServicePDRequest) HasServiceName() bool

HasServiceName returns a boolean if a field has been set.

func (*ServicePDRequest) SetServiceKey

func (s *ServicePDRequest) SetServiceKey(v string)

SetServiceKey allocates a new s.ServiceKey and returns the pointer to it.

func (*ServicePDRequest) SetServiceName

func (s *ServicePDRequest) SetServiceName(v string)

SetServiceName allocates a new s.ServiceName and returns the pointer to it.

type State

type State struct {
	Groups map[string]GroupData `json:"groups,omitempty"`
}

type Status

type Status int
const (
	OK Status = iota
	WARNING
	CRITICAL
	UNKNOWN
)

type Style

type Style struct {
	Palette     *string      `json:"palette,omitempty"`
	PaletteFlip *bool        `json:"paletteFlip,omitempty"`
	FillMin     *json.Number `json:"fillMin,omitempty"`
	FillMax     *json.Number `json:"fillMax,omitempty"`
}

func (*Style) GetFillMax

func (s *Style) GetFillMax() json.Number

GetFillMax returns the FillMax field if non-nil, zero value otherwise.

func (*Style) GetFillMaxOk

func (s *Style) GetFillMaxOk() (json.Number, bool)

GetFillMaxOk returns a tuple with the FillMax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Style) GetFillMin

func (s *Style) GetFillMin() json.Number

GetFillMin returns the FillMin field if non-nil, zero value otherwise.

func (*Style) GetFillMinOk

func (s *Style) GetFillMinOk() (json.Number, bool)

GetFillMinOk returns a tuple with the FillMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Style) GetPalette

func (s *Style) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*Style) GetPaletteFlip

func (s *Style) GetPaletteFlip() bool

GetPaletteFlip returns the PaletteFlip field if non-nil, zero value otherwise.

func (*Style) GetPaletteFlipOk

func (s *Style) GetPaletteFlipOk() (bool, bool)

GetPaletteFlipOk 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 (*Style) GetPaletteOk

func (s *Style) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*Style) HasFillMax

func (s *Style) HasFillMax() bool

HasFillMax returns a boolean if a field has been set.

func (*Style) HasFillMin

func (s *Style) HasFillMin() bool

HasFillMin returns a boolean if a field has been set.

func (*Style) HasPalette

func (s *Style) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*Style) HasPaletteFlip

func (s *Style) HasPaletteFlip() bool

HasPaletteFlip returns a boolean if a field has been set.

func (*Style) SetFillMax

func (s *Style) SetFillMax(v json.Number)

SetFillMax allocates a new s.FillMax and returns the pointer to it.

func (*Style) SetFillMin

func (s *Style) SetFillMin(v json.Number)

SetFillMin allocates a new s.FillMin and returns the pointer to it.

func (*Style) SetPalette

func (s *Style) SetPalette(v string)

SetPalette allocates a new s.Palette and returns the pointer to it.

func (*Style) SetPaletteFlip

func (s *Style) SetPaletteFlip(v bool)

SetPaletteFlip allocates a new s.PaletteFlip and returns the pointer to it.

type TagMap

type TagMap map[string][]string

TagMap is used to receive the format given to us by the API.

type TemplateVariable

type TemplateVariable struct {
	Name    *string `json:"name,omitempty"`
	Prefix  *string `json:"prefix,omitempty"`
	Default *string `json:"default,omitempty"`
}

Template variable represents a template variable that might exist on a dashboard

func (*TemplateVariable) GetDefault

func (t *TemplateVariable) GetDefault() string

GetDefault returns the Default field if non-nil, zero value otherwise.

func (*TemplateVariable) GetDefaultOk

func (t *TemplateVariable) GetDefaultOk() (string, bool)

GetDefaultOk 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 (*TemplateVariable) GetName

func (t *TemplateVariable) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*TemplateVariable) GetNameOk

func (t *TemplateVariable) GetNameOk() (string, bool)

GetNameOk 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 (*TemplateVariable) GetPrefix

func (t *TemplateVariable) GetPrefix() string

GetPrefix returns the Prefix field if non-nil, zero value otherwise.

func (*TemplateVariable) GetPrefixOk

func (t *TemplateVariable) GetPrefixOk() (string, bool)

GetPrefixOk 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 (*TemplateVariable) HasDefault

func (t *TemplateVariable) HasDefault() bool

HasDefault returns a boolean if a field has been set.

func (*TemplateVariable) HasName

func (t *TemplateVariable) HasName() bool

HasName returns a boolean if a field has been set.

func (*TemplateVariable) HasPrefix

func (t *TemplateVariable) HasPrefix() bool

HasPrefix returns a boolean if a field has been set.

func (*TemplateVariable) SetDefault

func (t *TemplateVariable) SetDefault(v string)

SetDefault allocates a new t.Default and returns the pointer to it.

func (*TemplateVariable) SetName

func (t *TemplateVariable) SetName(v string)

SetName allocates a new t.Name and returns the pointer to it.

func (*TemplateVariable) SetPrefix

func (t *TemplateVariable) SetPrefix(v string)

SetPrefix allocates a new t.Prefix and returns the pointer to it.

type ThresholdCount

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"`
}

func (*ThresholdCount) GetCritical

func (t *ThresholdCount) GetCritical() json.Number

GetCritical returns the Critical field if non-nil, zero value otherwise.

func (*ThresholdCount) GetCriticalOk

func (t *ThresholdCount) GetCriticalOk() (json.Number, bool)

GetCriticalOk 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 (*ThresholdCount) GetCriticalRecovery

func (t *ThresholdCount) GetCriticalRecovery() json.Number

GetCriticalRecovery returns the CriticalRecovery field if non-nil, zero value otherwise.

func (*ThresholdCount) GetCriticalRecoveryOk

func (t *ThresholdCount) GetCriticalRecoveryOk() (json.Number, bool)

GetCriticalRecoveryOk 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 (*ThresholdCount) GetOk

func (t *ThresholdCount) GetOk() json.Number

GetOk returns the Ok field if non-nil, zero value otherwise.

func (*ThresholdCount) GetOkOk

func (t *ThresholdCount) GetOkOk() (json.Number, bool)

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 (*ThresholdCount) GetUnknown

func (t *ThresholdCount) GetUnknown() json.Number

GetUnknown returns the Unknown field if non-nil, zero value otherwise.

func (*ThresholdCount) GetUnknownOk

func (t *ThresholdCount) GetUnknownOk() (json.Number, bool)

GetUnknownOk 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 (*ThresholdCount) GetWarning

func (t *ThresholdCount) GetWarning() json.Number

GetWarning returns the Warning field if non-nil, zero value otherwise.

func (*ThresholdCount) GetWarningOk

func (t *ThresholdCount) GetWarningOk() (json.Number, bool)

GetWarningOk 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 (*ThresholdCount) GetWarningRecovery

func (t *ThresholdCount) GetWarningRecovery() json.Number

GetWarningRecovery returns the WarningRecovery field if non-nil, zero value otherwise.

func (*ThresholdCount) GetWarningRecoveryOk

func (t *ThresholdCount) GetWarningRecoveryOk() (json.Number, bool)

GetWarningRecoveryOk 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 (*ThresholdCount) HasCritical

func (t *ThresholdCount) HasCritical() bool

HasCritical returns a boolean if a field has been set.

func (*ThresholdCount) HasCriticalRecovery

func (t *ThresholdCount) HasCriticalRecovery() bool

HasCriticalRecovery returns a boolean if a field has been set.

func (*ThresholdCount) HasOk

func (t *ThresholdCount) HasOk() bool

HasOk returns a boolean if a field has been set.

func (*ThresholdCount) HasUnknown

func (t *ThresholdCount) HasUnknown() bool

HasUnknown returns a boolean if a field has been set.

func (*ThresholdCount) HasWarning

func (t *ThresholdCount) HasWarning() bool

HasWarning returns a boolean if a field has been set.

func (*ThresholdCount) HasWarningRecovery

func (t *ThresholdCount) HasWarningRecovery() bool

HasWarningRecovery returns a boolean if a field has been set.

func (*ThresholdCount) SetCritical

func (t *ThresholdCount) SetCritical(v json.Number)

SetCritical allocates a new t.Critical and returns the pointer to it.

func (*ThresholdCount) SetCriticalRecovery

func (t *ThresholdCount) SetCriticalRecovery(v json.Number)

SetCriticalRecovery allocates a new t.CriticalRecovery and returns the pointer to it.

func (*ThresholdCount) SetOk

func (t *ThresholdCount) SetOk(v json.Number)

SetOk allocates a new t.Ok and returns the pointer to it.

func (*ThresholdCount) SetUnknown

func (t *ThresholdCount) SetUnknown(v json.Number)

SetUnknown allocates a new t.Unknown and returns the pointer to it.

func (*ThresholdCount) SetWarning

func (t *ThresholdCount) SetWarning(v json.Number)

SetWarning allocates a new t.Warning and returns the pointer to it.

func (*ThresholdCount) SetWarningRecovery

func (t *ThresholdCount) SetWarningRecovery(v json.Number)

SetWarningRecovery allocates a new t.WarningRecovery and returns the pointer to it.

type ThresholdWindows

type ThresholdWindows struct {
	RecoveryWindow *string `json:"recovery_window,omitempty"`
	TriggerWindow  *string `json:"trigger_window,omitempty"`
}

func (*ThresholdWindows) GetRecoveryWindow

func (t *ThresholdWindows) GetRecoveryWindow() string

GetRecoveryWindow returns the RecoveryWindow field if non-nil, zero value otherwise.

func (*ThresholdWindows) GetRecoveryWindowOk

func (t *ThresholdWindows) GetRecoveryWindowOk() (string, bool)

GetRecoveryWindowOk returns a tuple with the RecoveryWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*ThresholdWindows) GetTriggerWindow

func (t *ThresholdWindows) GetTriggerWindow() string

GetTriggerWindow returns the TriggerWindow field if non-nil, zero value otherwise.

func (*ThresholdWindows) GetTriggerWindowOk

func (t *ThresholdWindows) GetTriggerWindowOk() (string, bool)

GetTriggerWindowOk returns a tuple with the TriggerWindow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*ThresholdWindows) HasRecoveryWindow

func (t *ThresholdWindows) HasRecoveryWindow() bool

HasRecoveryWindow returns a boolean if a field has been set.

func (*ThresholdWindows) HasTriggerWindow

func (t *ThresholdWindows) HasTriggerWindow() bool

HasTriggerWindow returns a boolean if a field has been set.

func (*ThresholdWindows) SetRecoveryWindow

func (t *ThresholdWindows) SetRecoveryWindow(v string)

SetRecoveryWindow allocates a new t.RecoveryWindow and returns the pointer to it.

func (*ThresholdWindows) SetTriggerWindow

func (t *ThresholdWindows) SetTriggerWindow(v string)

SetTriggerWindow allocates a new t.TriggerWindow and returns the pointer to it.

type TileDef

type TileDef struct {
	Events     []TileDefEvent   `json:"events,omitempty"`
	Markers    []TileDefMarker  `json:"markers,omitempty"`
	Requests   []TileDefRequest `json:"requests,omitempty"`
	Viz        *string          `json:"viz,omitempty"`
	CustomUnit *string          `json:"custom_unit,omitempty"`
	Autoscale  *bool            `json:"autoscale,omitempty"`
	Precision  *PrecisionT      `json:"precision,omitempty"`
	TextAlign  *string          `json:"text_align,omitempty"`

	// For hostmap
	NodeType      *string       `json:"nodeType,omitempty"`
	Scope         []*string     `json:"scope,omitempty"`
	Group         []*string     `json:"group,omitempty"`
	NoGroupHosts  *bool         `json:"noGroupHosts,omitempty"`
	NoMetricHosts *bool         `json:"noMetricHosts,omitempty"`
	Style         *TileDefStyle `json:"style,omitempty"`
}

func (*TileDef) GetAutoscale

func (t *TileDef) GetAutoscale() bool

GetAutoscale returns the Autoscale field if non-nil, zero value otherwise.

func (*TileDef) GetAutoscaleOk

func (t *TileDef) GetAutoscaleOk() (bool, bool)

GetAutoscaleOk 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 (*TileDef) GetCustomUnit

func (t *TileDef) GetCustomUnit() string

GetCustomUnit returns the CustomUnit field if non-nil, zero value otherwise.

func (*TileDef) GetCustomUnitOk

func (t *TileDef) GetCustomUnitOk() (string, bool)

GetCustomUnitOk 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 (*TileDef) GetNoGroupHosts

func (t *TileDef) GetNoGroupHosts() bool

GetNoGroupHosts returns the NoGroupHosts field if non-nil, zero value otherwise.

func (*TileDef) GetNoGroupHostsOk

func (t *TileDef) GetNoGroupHostsOk() (bool, bool)

GetNoGroupHostsOk returns a tuple with the NoGroupHosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDef) GetNoMetricHosts

func (t *TileDef) GetNoMetricHosts() bool

GetNoMetricHosts returns the NoMetricHosts field if non-nil, zero value otherwise.

func (*TileDef) GetNoMetricHostsOk

func (t *TileDef) GetNoMetricHostsOk() (bool, bool)

GetNoMetricHostsOk returns a tuple with the NoMetricHosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDef) GetNodeType

func (t *TileDef) GetNodeType() string

GetNodeType returns the NodeType field if non-nil, zero value otherwise.

func (*TileDef) GetNodeTypeOk

func (t *TileDef) GetNodeTypeOk() (string, bool)

GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDef) GetPrecision

func (t *TileDef) GetPrecision() PrecisionT

GetPrecision returns the Precision field if non-nil, zero value otherwise.

func (*TileDef) GetPrecisionOk

func (t *TileDef) GetPrecisionOk() (PrecisionT, bool)

GetPrecisionOk 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 (*TileDef) GetStyle

func (t *TileDef) GetStyle() TileDefStyle

GetStyle returns the Style field if non-nil, zero value otherwise.

func (*TileDef) GetStyleOk

func (t *TileDef) GetStyleOk() (TileDefStyle, bool)

GetStyleOk 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 (*TileDef) GetTextAlign

func (t *TileDef) GetTextAlign() string

GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.

func (*TileDef) GetTextAlignOk

func (t *TileDef) GetTextAlignOk() (string, bool)

GetTextAlignOk 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 (*TileDef) GetViz

func (t *TileDef) GetViz() string

GetViz returns the Viz field if non-nil, zero value otherwise.

func (*TileDef) GetVizOk

func (t *TileDef) GetVizOk() (string, bool)

GetVizOk 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 (*TileDef) HasAutoscale

func (t *TileDef) HasAutoscale() bool

HasAutoscale returns a boolean if a field has been set.

func (*TileDef) HasCustomUnit

func (t *TileDef) HasCustomUnit() bool

HasCustomUnit returns a boolean if a field has been set.

func (*TileDef) HasNoGroupHosts

func (t *TileDef) HasNoGroupHosts() bool

HasNoGroupHosts returns a boolean if a field has been set.

func (*TileDef) HasNoMetricHosts

func (t *TileDef) HasNoMetricHosts() bool

HasNoMetricHosts returns a boolean if a field has been set.

func (*TileDef) HasNodeType

func (t *TileDef) HasNodeType() bool

HasNodeType returns a boolean if a field has been set.

func (*TileDef) HasPrecision

func (t *TileDef) HasPrecision() bool

HasPrecision returns a boolean if a field has been set.

func (*TileDef) HasStyle

func (t *TileDef) HasStyle() bool

HasStyle returns a boolean if a field has been set.

func (*TileDef) HasTextAlign

func (t *TileDef) HasTextAlign() bool

HasTextAlign returns a boolean if a field has been set.

func (*TileDef) HasViz

func (t *TileDef) HasViz() bool

HasViz returns a boolean if a field has been set.

func (*TileDef) SetAutoscale

func (t *TileDef) SetAutoscale(v bool)

SetAutoscale allocates a new t.Autoscale and returns the pointer to it.

func (*TileDef) SetCustomUnit

func (t *TileDef) SetCustomUnit(v string)

SetCustomUnit allocates a new t.CustomUnit and returns the pointer to it.

func (*TileDef) SetNoGroupHosts

func (t *TileDef) SetNoGroupHosts(v bool)

SetNoGroupHosts allocates a new t.NoGroupHosts and returns the pointer to it.

func (*TileDef) SetNoMetricHosts

func (t *TileDef) SetNoMetricHosts(v bool)

SetNoMetricHosts allocates a new t.NoMetricHosts and returns the pointer to it.

func (*TileDef) SetNodeType

func (t *TileDef) SetNodeType(v string)

SetNodeType allocates a new t.NodeType and returns the pointer to it.

func (*TileDef) SetPrecision

func (t *TileDef) SetPrecision(v PrecisionT)

SetPrecision allocates a new t.Precision and returns the pointer to it.

func (*TileDef) SetStyle

func (t *TileDef) SetStyle(v TileDefStyle)

SetStyle allocates a new t.Style and returns the pointer to it.

func (*TileDef) SetTextAlign

func (t *TileDef) SetTextAlign(v string)

SetTextAlign allocates a new t.TextAlign and returns the pointer to it.

func (*TileDef) SetViz

func (t *TileDef) SetViz(v string)

SetViz allocates a new t.Viz and returns the pointer to it.

type TileDefEvent

type TileDefEvent struct {
	Query *string `json:"q"`
}

func (*TileDefEvent) GetQuery

func (t *TileDefEvent) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*TileDefEvent) GetQueryOk

func (t *TileDefEvent) GetQueryOk() (string, bool)

GetQueryOk 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 (*TileDefEvent) HasQuery

func (t *TileDefEvent) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*TileDefEvent) SetQuery

func (t *TileDefEvent) SetQuery(v string)

SetQuery allocates a new t.Query and returns the pointer to it.

type TileDefMarker

type TileDefMarker struct {
	Label *string `json:"label,omitempty"`
	Type  *string `json:"type,omitempty"`
	Value *string `json:"value,omitempty"`
}

func (*TileDefMarker) GetLabel

func (t *TileDefMarker) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

func (*TileDefMarker) GetLabelOk

func (t *TileDefMarker) GetLabelOk() (string, bool)

GetLabelOk 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 (*TileDefMarker) GetType

func (t *TileDefMarker) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*TileDefMarker) GetTypeOk

func (t *TileDefMarker) GetTypeOk() (string, bool)

GetTypeOk 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 (*TileDefMarker) GetValue

func (t *TileDefMarker) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

func (*TileDefMarker) GetValueOk

func (t *TileDefMarker) GetValueOk() (string, bool)

GetValueOk 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 (*TileDefMarker) HasLabel

func (t *TileDefMarker) HasLabel() bool

HasLabel returns a boolean if a field has been set.

func (*TileDefMarker) HasType

func (t *TileDefMarker) HasType() bool

HasType returns a boolean if a field has been set.

func (*TileDefMarker) HasValue

func (t *TileDefMarker) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*TileDefMarker) SetLabel

func (t *TileDefMarker) SetLabel(v string)

SetLabel allocates a new t.Label and returns the pointer to it.

func (*TileDefMarker) SetType

func (t *TileDefMarker) SetType(v string)

SetType allocates a new t.Type and returns the pointer to it.

func (*TileDefMarker) SetValue

func (t *TileDefMarker) SetValue(v string)

SetValue allocates a new t.Value and returns the pointer to it.

type TileDefRequest

type TileDefRequest struct {
	Query *string `json:"q,omitempty"`

	// For Hostmap
	Type *string `json:"type,omitempty"`

	// For Process
	QueryType  *string   `json:"query_type,omitempty"`
	Metric     *string   `json:"metric,omitempty"`
	TextFilter *string   `json:"text_filter,omitempty"`
	TagFilters []*string `json:"tag_filters"`
	Limit      *int      `json:"limit,omitempty"`

	ConditionalFormats []ConditionalFormat  `json:"conditional_formats,omitempty"`
	Style              *TileDefRequestStyle `json:"style,omitempty"`
	Aggregator         *string              `json:"aggregator,omitempty"`
	CompareTo          *string              `json:"compare_to,omitempty"`
	ChangeType         *string              `json:"change_type,omitempty"`
	OrderBy            *string              `json:"order_by,omitempty"`
	OrderDir           *string              `json:"order_dir,omitempty"`
	ExtraCol           *string              `json:"extra_col,omitempty"`
	IncreaseGood       *bool                `json:"increase_good,omitempty"`
}

func (*TileDefRequest) GetAggregator

func (t *TileDefRequest) GetAggregator() string

GetAggregator returns the Aggregator field if non-nil, zero value otherwise.

func (*TileDefRequest) GetAggregatorOk

func (t *TileDefRequest) GetAggregatorOk() (string, bool)

GetAggregatorOk 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 (*TileDefRequest) GetChangeType

func (t *TileDefRequest) GetChangeType() string

GetChangeType returns the ChangeType field if non-nil, zero value otherwise.

func (*TileDefRequest) GetChangeTypeOk

func (t *TileDefRequest) GetChangeTypeOk() (string, bool)

GetChangeTypeOk 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 (*TileDefRequest) GetCompareTo

func (t *TileDefRequest) GetCompareTo() string

GetCompareTo returns the CompareTo field if non-nil, zero value otherwise.

func (*TileDefRequest) GetCompareToOk

func (t *TileDefRequest) GetCompareToOk() (string, bool)

GetCompareToOk 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 (*TileDefRequest) GetExtraCol

func (t *TileDefRequest) GetExtraCol() string

GetExtraCol returns the ExtraCol field if non-nil, zero value otherwise.

func (*TileDefRequest) GetExtraColOk

func (t *TileDefRequest) GetExtraColOk() (string, bool)

GetExtraColOk 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 (*TileDefRequest) GetIncreaseGood

func (t *TileDefRequest) GetIncreaseGood() bool

GetIncreaseGood returns the IncreaseGood field if non-nil, zero value otherwise.

func (*TileDefRequest) GetIncreaseGoodOk

func (t *TileDefRequest) GetIncreaseGoodOk() (bool, bool)

GetIncreaseGoodOk 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 (*TileDefRequest) GetLimit

func (t *TileDefRequest) GetLimit() int

GetLimit returns the Limit field if non-nil, zero value otherwise.

func (*TileDefRequest) GetLimitOk

func (t *TileDefRequest) GetLimitOk() (int, bool)

GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefRequest) GetMetric

func (t *TileDefRequest) GetMetric() string

GetMetric returns the Metric field if non-nil, zero value otherwise.

func (*TileDefRequest) GetMetricOk

func (t *TileDefRequest) GetMetricOk() (string, bool)

GetMetricOk 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 (*TileDefRequest) GetOrderBy

func (t *TileDefRequest) GetOrderBy() string

GetOrderBy returns the OrderBy field if non-nil, zero value otherwise.

func (*TileDefRequest) GetOrderByOk

func (t *TileDefRequest) GetOrderByOk() (string, bool)

GetOrderByOk 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 (*TileDefRequest) GetOrderDir

func (t *TileDefRequest) GetOrderDir() string

GetOrderDir returns the OrderDir field if non-nil, zero value otherwise.

func (*TileDefRequest) GetOrderDirOk

func (t *TileDefRequest) GetOrderDirOk() (string, bool)

GetOrderDirOk returns a tuple with the OrderDir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefRequest) GetQuery

func (t *TileDefRequest) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*TileDefRequest) GetQueryOk

func (t *TileDefRequest) GetQueryOk() (string, bool)

GetQueryOk 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 (*TileDefRequest) GetQueryType

func (t *TileDefRequest) GetQueryType() string

GetQueryType returns the QueryType field if non-nil, zero value otherwise.

func (*TileDefRequest) GetQueryTypeOk

func (t *TileDefRequest) GetQueryTypeOk() (string, bool)

GetQueryTypeOk returns a tuple with the QueryType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefRequest) GetStyle

func (t *TileDefRequest) GetStyle() TileDefRequestStyle

GetStyle returns the Style field if non-nil, zero value otherwise.

func (*TileDefRequest) GetStyleOk

func (t *TileDefRequest) GetStyleOk() (TileDefRequestStyle, bool)

GetStyleOk 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 (*TileDefRequest) GetTextFilter

func (t *TileDefRequest) GetTextFilter() string

GetTextFilter returns the TextFilter field if non-nil, zero value otherwise.

func (*TileDefRequest) GetTextFilterOk

func (t *TileDefRequest) GetTextFilterOk() (string, bool)

GetTextFilterOk returns a tuple with the TextFilter field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefRequest) GetType

func (t *TileDefRequest) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*TileDefRequest) GetTypeOk

func (t *TileDefRequest) GetTypeOk() (string, bool)

GetTypeOk 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 (*TileDefRequest) HasAggregator

func (t *TileDefRequest) HasAggregator() bool

HasAggregator returns a boolean if a field has been set.

func (*TileDefRequest) HasChangeType

func (t *TileDefRequest) HasChangeType() bool

HasChangeType returns a boolean if a field has been set.

func (*TileDefRequest) HasCompareTo

func (t *TileDefRequest) HasCompareTo() bool

HasCompareTo returns a boolean if a field has been set.

func (*TileDefRequest) HasExtraCol

func (t *TileDefRequest) HasExtraCol() bool

HasExtraCol returns a boolean if a field has been set.

func (*TileDefRequest) HasIncreaseGood

func (t *TileDefRequest) HasIncreaseGood() bool

HasIncreaseGood returns a boolean if a field has been set.

func (*TileDefRequest) HasLimit

func (t *TileDefRequest) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*TileDefRequest) HasMetric

func (t *TileDefRequest) HasMetric() bool

HasMetric returns a boolean if a field has been set.

func (*TileDefRequest) HasOrderBy

func (t *TileDefRequest) HasOrderBy() bool

HasOrderBy returns a boolean if a field has been set.

func (*TileDefRequest) HasOrderDir

func (t *TileDefRequest) HasOrderDir() bool

HasOrderDir returns a boolean if a field has been set.

func (*TileDefRequest) HasQuery

func (t *TileDefRequest) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*TileDefRequest) HasQueryType

func (t *TileDefRequest) HasQueryType() bool

HasQueryType returns a boolean if a field has been set.

func (*TileDefRequest) HasStyle

func (t *TileDefRequest) HasStyle() bool

HasStyle returns a boolean if a field has been set.

func (*TileDefRequest) HasTextFilter

func (t *TileDefRequest) HasTextFilter() bool

HasTextFilter returns a boolean if a field has been set.

func (*TileDefRequest) HasType

func (t *TileDefRequest) HasType() bool

HasType returns a boolean if a field has been set.

func (*TileDefRequest) SetAggregator

func (t *TileDefRequest) SetAggregator(v string)

SetAggregator allocates a new t.Aggregator and returns the pointer to it.

func (*TileDefRequest) SetChangeType

func (t *TileDefRequest) SetChangeType(v string)

SetChangeType allocates a new t.ChangeType and returns the pointer to it.

func (*TileDefRequest) SetCompareTo

func (t *TileDefRequest) SetCompareTo(v string)

SetCompareTo allocates a new t.CompareTo and returns the pointer to it.

func (*TileDefRequest) SetExtraCol

func (t *TileDefRequest) SetExtraCol(v string)

SetExtraCol allocates a new t.ExtraCol and returns the pointer to it.

func (*TileDefRequest) SetIncreaseGood

func (t *TileDefRequest) SetIncreaseGood(v bool)

SetIncreaseGood allocates a new t.IncreaseGood and returns the pointer to it.

func (*TileDefRequest) SetLimit

func (t *TileDefRequest) SetLimit(v int)

SetLimit allocates a new t.Limit and returns the pointer to it.

func (*TileDefRequest) SetMetric

func (t *TileDefRequest) SetMetric(v string)

SetMetric allocates a new t.Metric and returns the pointer to it.

func (*TileDefRequest) SetOrderBy

func (t *TileDefRequest) SetOrderBy(v string)

SetOrderBy allocates a new t.OrderBy and returns the pointer to it.

func (*TileDefRequest) SetOrderDir

func (t *TileDefRequest) SetOrderDir(v string)

SetOrderDir allocates a new t.OrderDir and returns the pointer to it.

func (*TileDefRequest) SetQuery

func (t *TileDefRequest) SetQuery(v string)

SetQuery allocates a new t.Query and returns the pointer to it.

func (*TileDefRequest) SetQueryType

func (t *TileDefRequest) SetQueryType(v string)

SetQueryType allocates a new t.QueryType and returns the pointer to it.

func (*TileDefRequest) SetStyle

func (t *TileDefRequest) SetStyle(v TileDefRequestStyle)

SetStyle allocates a new t.Style and returns the pointer to it.

func (*TileDefRequest) SetTextFilter

func (t *TileDefRequest) SetTextFilter(v string)

SetTextFilter allocates a new t.TextFilter and returns the pointer to it.

func (*TileDefRequest) SetType

func (t *TileDefRequest) SetType(v string)

SetType allocates a new t.Type and returns the pointer to it.

type TileDefRequestStyle

type TileDefRequestStyle struct {
	Palette *string `json:"palette,omitempty"`
	Type    *string `json:"type,omitempty"`
	Width   *string `json:"width,omitempty"`
}

func (*TileDefRequestStyle) GetPalette

func (t *TileDefRequestStyle) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*TileDefRequestStyle) GetPaletteOk

func (t *TileDefRequestStyle) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*TileDefRequestStyle) GetType

func (t *TileDefRequestStyle) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*TileDefRequestStyle) GetTypeOk

func (t *TileDefRequestStyle) GetTypeOk() (string, bool)

GetTypeOk 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 (*TileDefRequestStyle) GetWidth

func (t *TileDefRequestStyle) GetWidth() string

GetWidth returns the Width field if non-nil, zero value otherwise.

func (*TileDefRequestStyle) GetWidthOk

func (t *TileDefRequestStyle) GetWidthOk() (string, bool)

GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefRequestStyle) HasPalette

func (t *TileDefRequestStyle) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*TileDefRequestStyle) HasType

func (t *TileDefRequestStyle) HasType() bool

HasType returns a boolean if a field has been set.

func (*TileDefRequestStyle) HasWidth

func (t *TileDefRequestStyle) HasWidth() bool

HasWidth returns a boolean if a field has been set.

func (*TileDefRequestStyle) SetPalette

func (t *TileDefRequestStyle) SetPalette(v string)

SetPalette allocates a new t.Palette and returns the pointer to it.

func (*TileDefRequestStyle) SetType

func (t *TileDefRequestStyle) SetType(v string)

SetType allocates a new t.Type and returns the pointer to it.

func (*TileDefRequestStyle) SetWidth

func (t *TileDefRequestStyle) SetWidth(v string)

SetWidth allocates a new t.Width and returns the pointer to it.

type TileDefStyle

type TileDefStyle struct {
	Palette     *string      `json:"palette,omitempty"`
	PaletteFlip *string      `json:"paletteFlip,omitempty"`
	FillMin     *json.Number `json:"fillMin,omitempty"`
	FillMax     *json.Number `json:"fillMax,omitempty"`
}

func (*TileDefStyle) GetFillMax

func (t *TileDefStyle) GetFillMax() json.Number

GetFillMax returns the FillMax field if non-nil, zero value otherwise.

func (*TileDefStyle) GetFillMaxOk

func (t *TileDefStyle) GetFillMaxOk() (json.Number, bool)

GetFillMaxOk returns a tuple with the FillMax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefStyle) GetFillMin

func (t *TileDefStyle) GetFillMin() json.Number

GetFillMin returns the FillMin field if non-nil, zero value otherwise.

func (*TileDefStyle) GetFillMinOk

func (t *TileDefStyle) GetFillMinOk() (json.Number, bool)

GetFillMinOk returns a tuple with the FillMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TileDefStyle) GetPalette

func (t *TileDefStyle) GetPalette() string

GetPalette returns the Palette field if non-nil, zero value otherwise.

func (*TileDefStyle) GetPaletteFlip

func (t *TileDefStyle) GetPaletteFlip() string

GetPaletteFlip returns the PaletteFlip field if non-nil, zero value otherwise.

func (*TileDefStyle) GetPaletteFlipOk

func (t *TileDefStyle) GetPaletteFlipOk() (string, bool)

GetPaletteFlipOk 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 (*TileDefStyle) GetPaletteOk

func (t *TileDefStyle) GetPaletteOk() (string, bool)

GetPaletteOk 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 (*TileDefStyle) HasFillMax

func (t *TileDefStyle) HasFillMax() bool

HasFillMax returns a boolean if a field has been set.

func (*TileDefStyle) HasFillMin

func (t *TileDefStyle) HasFillMin() bool

HasFillMin returns a boolean if a field has been set.

func (*TileDefStyle) HasPalette

func (t *TileDefStyle) HasPalette() bool

HasPalette returns a boolean if a field has been set.

func (*TileDefStyle) HasPaletteFlip

func (t *TileDefStyle) HasPaletteFlip() bool

HasPaletteFlip returns a boolean if a field has been set.

func (*TileDefStyle) SetFillMax

func (t *TileDefStyle) SetFillMax(v json.Number)

SetFillMax allocates a new t.FillMax and returns the pointer to it.

func (*TileDefStyle) SetFillMin

func (t *TileDefStyle) SetFillMin(v json.Number)

SetFillMin allocates a new t.FillMin and returns the pointer to it.

func (*TileDefStyle) SetPalette

func (t *TileDefStyle) SetPalette(v string)

SetPalette allocates a new t.Palette and returns the pointer to it.

func (*TileDefStyle) SetPaletteFlip

func (t *TileDefStyle) SetPaletteFlip(v string)

SetPaletteFlip allocates a new t.PaletteFlip and returns the pointer to it.

type Time

type Time struct {
	LiveSpan *string `json:"live_span,omitempty"`
}

func (*Time) GetLiveSpan

func (t *Time) GetLiveSpan() string

GetLiveSpan returns the LiveSpan field if non-nil, zero value otherwise.

func (*Time) GetLiveSpanOk

func (t *Time) GetLiveSpanOk() (string, bool)

GetLiveSpanOk returns a tuple with the LiveSpan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Time) HasLiveSpan

func (t *Time) HasLiveSpan() bool

HasLiveSpan returns a boolean if a field has been set.

func (*Time) SetLiveSpan

func (t *Time) SetLiveSpan(v string)

SetLiveSpan allocates a new t.LiveSpan and returns the pointer to it.

type TriggeringValue

type TriggeringValue struct {
	FromTs *int `json:"from_ts,omitempty"`
	ToTs   *int `json:"to_ts,omitempty"`
	Value  *int `json:"value,omitempty"`
}

func (*TriggeringValue) GetFromTs

func (t *TriggeringValue) GetFromTs() int

GetFromTs returns the FromTs field if non-nil, zero value otherwise.

func (*TriggeringValue) GetFromTsOk

func (t *TriggeringValue) GetFromTsOk() (int, bool)

GetFromTsOk returns a tuple with the FromTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TriggeringValue) GetToTs

func (t *TriggeringValue) GetToTs() int

GetToTs returns the ToTs field if non-nil, zero value otherwise.

func (*TriggeringValue) GetToTsOk

func (t *TriggeringValue) GetToTsOk() (int, bool)

GetToTsOk returns a tuple with the ToTs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*TriggeringValue) GetValue

func (t *TriggeringValue) GetValue() int

GetValue returns the Value field if non-nil, zero value otherwise.

func (*TriggeringValue) GetValueOk

func (t *TriggeringValue) GetValueOk() (int, bool)

GetValueOk 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 (*TriggeringValue) HasFromTs

func (t *TriggeringValue) HasFromTs() bool

HasFromTs returns a boolean if a field has been set.

func (*TriggeringValue) HasToTs

func (t *TriggeringValue) HasToTs() bool

HasToTs returns a boolean if a field has been set.

func (*TriggeringValue) HasValue

func (t *TriggeringValue) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*TriggeringValue) SetFromTs

func (t *TriggeringValue) SetFromTs(v int)

SetFromTs allocates a new t.FromTs and returns the pointer to it.

func (*TriggeringValue) SetToTs

func (t *TriggeringValue) SetToTs(v int)

SetToTs allocates a new t.ToTs and returns the pointer to it.

func (*TriggeringValue) SetValue

func (t *TriggeringValue) SetValue(v int)

SetValue allocates a new t.Value and returns the pointer to it.

type Unit

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"`
}

Unit represents a unit definition that we might receive when query for timeseries data.

type UnitPair

type UnitPair []*Unit

A Series is characterized by 2 units as: x per y One or both could be missing

type User

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"`
}

func (*User) GetAccessRole

func (u *User) GetAccessRole() string

GetAccessRole returns the AccessRole field if non-nil, zero value otherwise.

func (*User) GetAccessRoleOk

func (u *User) GetAccessRoleOk() (string, bool)

GetAccessRoleOk 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 (*User) GetDisabled

func (u *User) GetDisabled() bool

GetDisabled returns the Disabled field if non-nil, zero value otherwise.

func (*User) GetDisabledOk

func (u *User) GetDisabledOk() (bool, bool)

GetDisabledOk 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 (*User) GetEmail

func (u *User) GetEmail() string

GetEmail returns the Email field if non-nil, zero value otherwise.

func (*User) GetEmailOk

func (u *User) GetEmailOk() (string, bool)

GetEmailOk 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 (*User) GetHandle

func (u *User) GetHandle() string

GetHandle returns the Handle field if non-nil, zero value otherwise.

func (*User) GetHandleOk

func (u *User) GetHandleOk() (string, bool)

GetHandleOk 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 (*User) GetIsAdmin

func (u *User) GetIsAdmin() bool

GetIsAdmin returns the IsAdmin field if non-nil, zero value otherwise.

func (*User) GetIsAdminOk

func (u *User) GetIsAdminOk() (bool, bool)

GetIsAdminOk 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 (*User) GetName

func (u *User) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

func (*User) GetNameOk

func (u *User) GetNameOk() (string, bool)

GetNameOk 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 (*User) GetRole

func (u *User) GetRole() string

GetRole returns the Role field if non-nil, zero value otherwise.

func (*User) GetRoleOk

func (u *User) GetRoleOk() (string, bool)

GetRoleOk 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 (*User) GetVerified

func (u *User) GetVerified() bool

GetVerified returns the Verified field if non-nil, zero value otherwise.

func (*User) GetVerifiedOk

func (u *User) GetVerifiedOk() (bool, bool)

GetVerifiedOk 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 (*User) HasAccessRole

func (u *User) HasAccessRole() bool

HasAccessRole returns a boolean if a field has been set.

func (*User) HasDisabled

func (u *User) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*User) HasEmail

func (u *User) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*User) HasHandle

func (u *User) HasHandle() bool

HasHandle returns a boolean if a field has been set.

func (*User) HasIsAdmin

func (u *User) HasIsAdmin() bool

HasIsAdmin returns a boolean if a field has been set.

func (*User) HasName

func (u *User) HasName() bool

HasName returns a boolean if a field has been set.

func (*User) HasRole

func (u *User) HasRole() bool

HasRole returns a boolean if a field has been set.

func (*User) HasVerified

func (u *User) HasVerified() bool

HasVerified returns a boolean if a field has been set.

func (*User) SetAccessRole

func (u *User) SetAccessRole(v string)

SetAccessRole allocates a new u.AccessRole and returns the pointer to it.

func (*User) SetDisabled

func (u *User) SetDisabled(v bool)

SetDisabled allocates a new u.Disabled and returns the pointer to it.

func (*User) SetEmail

func (u *User) SetEmail(v string)

SetEmail allocates a new u.Email and returns the pointer to it.

func (*User) SetHandle

func (u *User) SetHandle(v string)

SetHandle allocates a new u.Handle and returns the pointer to it.

func (*User) SetIsAdmin

func (u *User) SetIsAdmin(v bool)

SetIsAdmin allocates a new u.IsAdmin and returns the pointer to it.

func (*User) SetName

func (u *User) SetName(v string)

SetName allocates a new u.Name and returns the pointer to it.

func (*User) SetRole

func (u *User) SetRole(v string)

SetRole allocates a new u.Role and returns the pointer to it.

func (*User) SetVerified

func (u *User) SetVerified(v bool)

SetVerified allocates a new u.Verified and returns the pointer to it.

type Widget

type Widget struct {
	// Common attributes
	Type       *string `json:"type,omitempty"`
	Title      *bool   `json:"title,omitempty"`
	TitleText  *string `json:"title_text,omitempty"`
	TitleAlign *string `json:"title_align,omitempty"`
	TitleSize  *int    `json:"title_size,omitempty"`
	Height     *int    `json:"height,omitempty"`
	Width      *int    `json:"width,omitempty"`
	X          *int    `json:"x,omitempty"`
	Y          *int    `json:"y,omitempty"`

	// For Timeseries, TopList, EventTimeline, EvenStream, AlertGraph, CheckStatus, ServiceSummary, LogStream widgets
	Time *Time `json:"time,omitempty"`

	// For Timeseries, QueryValue, HostMap, Change, Toplist, Process widgets
	TileDef *TileDef `json:"tile_def,omitempty"`

	// For FreeText widget
	Text  *string `json:"text,omitempty"`
	Color *string `json:"color,omitempty"`

	// For AlertValue widget
	TextSize  *string     `json:"text_size,omitempty"`
	Unit      *string     `json:"unit,omitempty"`
	Precision *PrecisionT `json:"precision,omitempty"`

	// AlertGraph widget
	VizType *string `json:"viz_type,omitempty"`

	// For AlertValue, QueryValue, FreeText, Note widgets
	TextAlign *string `json:"text_align,omitempty"`

	// For FreeText, Note widgets
	FontSize *string `json:"font_size,omitempty"`

	// For AlertValue, AlertGraph widgets
	AlertID     *int  `json:"alert_id,omitempty"`
	AutoRefresh *bool `json:"auto_refresh,omitempty"`

	// For Timeseries, QueryValue, Toplist widgets
	Legend     *bool   `json:"legend,omitempty"`
	LegendSize *string `json:"legend_size,omitempty"`

	// For EventTimeline, EventStream, Hostmap, LogStream widgets
	Query *string `json:"query,omitempty"`

	// For Image, IFrame widgets
	URL *string `json:"url,omitempty"`

	// For CheckStatus widget
	Tags     []*string `json:"tags,omitempty"`
	Check    *string   `json:"check,omitempty"`
	Grouping *string   `json:"grouping,omitempty"`
	GroupBy  []*string `json:"group_by,omitempty"`
	Group    *string   `json:"group,omitempty"`

	// Note widget
	TickPos  *string `json:"tick_pos,omitempty"`
	TickEdge *string `json:"tick_edge,omitempty"`
	HTML     *string `json:"html,omitempty"`
	Tick     *bool   `json:"tick,omitempty"`
	Bgcolor  *string `json:"bgcolor,omitempty"`

	// EventStream widget
	EventSize *string `json:"event_size,omitempty"`

	// Image widget
	Sizing *string `json:"sizing,omitempty"`
	Margin *string `json:"margin,omitempty"`

	// For ServiceSummary (trace_service) widget
	Env                  *string `json:"env,omitempty"`
	ServiceService       *string `json:"serviceService,omitempty"`
	ServiceName          *string `json:"serviceName,omitempty"`
	SizeVersion          *string `json:"sizeVersion,omitempty"`
	LayoutVersion        *string `json:"layoutVersion,omitempty"`
	MustShowHits         *bool   `json:"mustShowHits,omitempty"`
	MustShowErrors       *bool   `json:"mustShowErrors,omitempty"`
	MustShowLatency      *bool   `json:"mustShowLatency,omitempty"`
	MustShowBreakdown    *bool   `json:"mustShowBreakdown,omitempty"`
	MustShowDistribution *bool   `json:"mustShowDistribution,omitempty"`
	MustShowResourceList *bool   `json:"mustShowResourceList,omitempty"`

	// For MonitorSummary (manage_status) widget
	DisplayFormat          *string `json:"displayFormat,omitempty"`
	ColorPreference        *string `json:"colorPreference,omitempty"`
	HideZeroCounts         *bool   `json:"hideZeroCounts,omitempty"`
	ManageStatusShowTitle  *bool   `json:"showTitle,omitempty"`
	ManageStatusTitleText  *string `json:"titleText,omitempty"`
	ManageStatusTitleSize  *string `json:"titleSize,omitempty"`
	ManageStatusTitleAlign *string `json:"titleAlign,omitempty"`
	Params                 *Params `json:"params,omitempty"`

	// For LogStream widget
	Columns *string `json:"columns,omitempty"`
	Logset  *string `json:"logset,omitempty"`

	// For Uptime
	// Widget is undocumented, subject to breaking API changes, and without customer support
	Timeframes []*string           `json:"timeframes,omitempty"`
	Rules      map[string]*Rule    `json:"rules,omitempty"`
	Monitor    *ScreenboardMonitor `json:"monitor,omitempty"`
}

func (*Widget) GetAlertID

func (w *Widget) GetAlertID() int

GetAlertID returns the AlertID field if non-nil, zero value otherwise.

func (*Widget) GetAlertIDOk

func (w *Widget) GetAlertIDOk() (int, bool)

GetAlertIDOk 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 (*Widget) GetAutoRefresh

func (w *Widget) GetAutoRefresh() bool

GetAutoRefresh returns the AutoRefresh field if non-nil, zero value otherwise.

func (*Widget) GetAutoRefreshOk

func (w *Widget) GetAutoRefreshOk() (bool, bool)

GetAutoRefreshOk 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 (*Widget) GetBgcolor

func (w *Widget) GetBgcolor() string

GetBgcolor returns the Bgcolor field if non-nil, zero value otherwise.

func (*Widget) GetBgcolorOk

func (w *Widget) GetBgcolorOk() (string, bool)

GetBgcolorOk returns a tuple with the Bgcolor field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetCheck

func (w *Widget) GetCheck() string

GetCheck returns the Check field if non-nil, zero value otherwise.

func (*Widget) GetCheckOk

func (w *Widget) GetCheckOk() (string, bool)

GetCheckOk 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 (*Widget) GetColor

func (w *Widget) GetColor() string

GetColor returns the Color field if non-nil, zero value otherwise.

func (*Widget) GetColorOk

func (w *Widget) GetColorOk() (string, bool)

GetColorOk 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 (*Widget) GetColorPreference

func (w *Widget) GetColorPreference() string

GetColorPreference returns the ColorPreference field if non-nil, zero value otherwise.

func (*Widget) GetColorPreferenceOk

func (w *Widget) GetColorPreferenceOk() (string, bool)

GetColorPreferenceOk returns a tuple with the ColorPreference field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetColumns

func (w *Widget) GetColumns() string

GetColumns returns the Columns field if non-nil, zero value otherwise.

func (*Widget) GetColumnsOk

func (w *Widget) GetColumnsOk() (string, bool)

GetColumnsOk returns a tuple with the Columns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetDisplayFormat

func (w *Widget) GetDisplayFormat() string

GetDisplayFormat returns the DisplayFormat field if non-nil, zero value otherwise.

func (*Widget) GetDisplayFormatOk

func (w *Widget) GetDisplayFormatOk() (string, bool)

GetDisplayFormatOk returns a tuple with the DisplayFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetEnv

func (w *Widget) GetEnv() string

GetEnv returns the Env field if non-nil, zero value otherwise.

func (*Widget) GetEnvOk

func (w *Widget) GetEnvOk() (string, bool)

GetEnvOk returns a tuple with the Env field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetEventSize

func (w *Widget) GetEventSize() string

GetEventSize returns the EventSize field if non-nil, zero value otherwise.

func (*Widget) GetEventSizeOk

func (w *Widget) GetEventSizeOk() (string, bool)

GetEventSizeOk 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 (*Widget) GetFontSize

func (w *Widget) GetFontSize() string

GetFontSize returns the FontSize field if non-nil, zero value otherwise.

func (*Widget) GetFontSizeOk

func (w *Widget) GetFontSizeOk() (string, bool)

GetFontSizeOk 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 (*Widget) GetGroup

func (w *Widget) GetGroup() string

GetGroup returns the Group field if non-nil, zero value otherwise.

func (*Widget) GetGroupOk

func (w *Widget) GetGroupOk() (string, bool)

GetGroupOk 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 (*Widget) GetGrouping

func (w *Widget) GetGrouping() string

GetGrouping returns the Grouping field if non-nil, zero value otherwise.

func (*Widget) GetGroupingOk

func (w *Widget) GetGroupingOk() (string, bool)

GetGroupingOk 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 (*Widget) GetHTML

func (w *Widget) GetHTML() string

GetHTML returns the HTML field if non-nil, zero value otherwise.

func (*Widget) GetHTMLOk

func (w *Widget) GetHTMLOk() (string, bool)

GetHTMLOk 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 (*Widget) GetHeight

func (w *Widget) GetHeight() int

GetHeight returns the Height field if non-nil, zero value otherwise.

func (*Widget) GetHeightOk

func (w *Widget) GetHeightOk() (int, bool)

GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetHideZeroCounts

func (w *Widget) GetHideZeroCounts() bool

GetHideZeroCounts returns the HideZeroCounts field if non-nil, zero value otherwise.

func (*Widget) GetHideZeroCountsOk

func (w *Widget) GetHideZeroCountsOk() (bool, bool)

GetHideZeroCountsOk returns a tuple with the HideZeroCounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetLayoutVersion

func (w *Widget) GetLayoutVersion() string

GetLayoutVersion returns the LayoutVersion field if non-nil, zero value otherwise.

func (*Widget) GetLayoutVersionOk

func (w *Widget) GetLayoutVersionOk() (string, bool)

GetLayoutVersionOk returns a tuple with the LayoutVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetLegend

func (w *Widget) GetLegend() bool

GetLegend returns the Legend field if non-nil, zero value otherwise.

func (*Widget) GetLegendOk

func (w *Widget) GetLegendOk() (bool, bool)

GetLegendOk 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 (*Widget) GetLegendSize

func (w *Widget) GetLegendSize() string

GetLegendSize returns the LegendSize field if non-nil, zero value otherwise.

func (*Widget) GetLegendSizeOk

func (w *Widget) GetLegendSizeOk() (string, bool)

GetLegendSizeOk 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 (*Widget) GetLogset

func (w *Widget) GetLogset() string

GetLogset returns the Logset field if non-nil, zero value otherwise.

func (*Widget) GetLogsetOk

func (w *Widget) GetLogsetOk() (string, bool)

GetLogsetOk returns a tuple with the Logset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetManageStatusShowTitle

func (w *Widget) GetManageStatusShowTitle() bool

GetManageStatusShowTitle returns the ManageStatusShowTitle field if non-nil, zero value otherwise.

func (*Widget) GetManageStatusShowTitleOk

func (w *Widget) GetManageStatusShowTitleOk() (bool, bool)

GetManageStatusShowTitleOk returns a tuple with the ManageStatusShowTitle field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetManageStatusTitleAlign

func (w *Widget) GetManageStatusTitleAlign() string

GetManageStatusTitleAlign returns the ManageStatusTitleAlign field if non-nil, zero value otherwise.

func (*Widget) GetManageStatusTitleAlignOk

func (w *Widget) GetManageStatusTitleAlignOk() (string, bool)

GetManageStatusTitleAlignOk returns a tuple with the ManageStatusTitleAlign field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetManageStatusTitleSize

func (w *Widget) GetManageStatusTitleSize() string

GetManageStatusTitleSize returns the ManageStatusTitleSize field if non-nil, zero value otherwise.

func (*Widget) GetManageStatusTitleSizeOk

func (w *Widget) GetManageStatusTitleSizeOk() (string, bool)

GetManageStatusTitleSizeOk returns a tuple with the ManageStatusTitleSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetManageStatusTitleText

func (w *Widget) GetManageStatusTitleText() string

GetManageStatusTitleText returns the ManageStatusTitleText field if non-nil, zero value otherwise.

func (*Widget) GetManageStatusTitleTextOk

func (w *Widget) GetManageStatusTitleTextOk() (string, bool)

GetManageStatusTitleTextOk returns a tuple with the ManageStatusTitleText field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMargin

func (w *Widget) GetMargin() string

GetMargin returns the Margin field if non-nil, zero value otherwise.

func (*Widget) GetMarginOk

func (w *Widget) GetMarginOk() (string, bool)

GetMarginOk returns a tuple with the Margin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMonitor

func (w *Widget) GetMonitor() ScreenboardMonitor

GetMonitor returns the Monitor field if non-nil, zero value otherwise.

func (*Widget) GetMonitorOk

func (w *Widget) GetMonitorOk() (ScreenboardMonitor, bool)

GetMonitorOk returns a tuple with the Monitor field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowBreakdown

func (w *Widget) GetMustShowBreakdown() bool

GetMustShowBreakdown returns the MustShowBreakdown field if non-nil, zero value otherwise.

func (*Widget) GetMustShowBreakdownOk

func (w *Widget) GetMustShowBreakdownOk() (bool, bool)

GetMustShowBreakdownOk returns a tuple with the MustShowBreakdown field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowDistribution

func (w *Widget) GetMustShowDistribution() bool

GetMustShowDistribution returns the MustShowDistribution field if non-nil, zero value otherwise.

func (*Widget) GetMustShowDistributionOk

func (w *Widget) GetMustShowDistributionOk() (bool, bool)

GetMustShowDistributionOk returns a tuple with the MustShowDistribution field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowErrors

func (w *Widget) GetMustShowErrors() bool

GetMustShowErrors returns the MustShowErrors field if non-nil, zero value otherwise.

func (*Widget) GetMustShowErrorsOk

func (w *Widget) GetMustShowErrorsOk() (bool, bool)

GetMustShowErrorsOk returns a tuple with the MustShowErrors field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowHits

func (w *Widget) GetMustShowHits() bool

GetMustShowHits returns the MustShowHits field if non-nil, zero value otherwise.

func (*Widget) GetMustShowHitsOk

func (w *Widget) GetMustShowHitsOk() (bool, bool)

GetMustShowHitsOk returns a tuple with the MustShowHits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowLatency

func (w *Widget) GetMustShowLatency() bool

GetMustShowLatency returns the MustShowLatency field if non-nil, zero value otherwise.

func (*Widget) GetMustShowLatencyOk

func (w *Widget) GetMustShowLatencyOk() (bool, bool)

GetMustShowLatencyOk returns a tuple with the MustShowLatency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetMustShowResourceList

func (w *Widget) GetMustShowResourceList() bool

GetMustShowResourceList returns the MustShowResourceList field if non-nil, zero value otherwise.

func (*Widget) GetMustShowResourceListOk

func (w *Widget) GetMustShowResourceListOk() (bool, bool)

GetMustShowResourceListOk returns a tuple with the MustShowResourceList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetParams

func (w *Widget) GetParams() Params

GetParams returns the Params field if non-nil, zero value otherwise.

func (*Widget) GetParamsOk

func (w *Widget) GetParamsOk() (Params, bool)

GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetPrecision

func (w *Widget) GetPrecision() PrecisionT

GetPrecision returns the Precision field if non-nil, zero value otherwise.

func (*Widget) GetPrecisionOk

func (w *Widget) GetPrecisionOk() (PrecisionT, bool)

GetPrecisionOk 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 (*Widget) GetQuery

func (w *Widget) GetQuery() string

GetQuery returns the Query field if non-nil, zero value otherwise.

func (*Widget) GetQueryOk

func (w *Widget) GetQueryOk() (string, bool)

GetQueryOk 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 (*Widget) GetServiceName

func (w *Widget) GetServiceName() string

GetServiceName returns the ServiceName field if non-nil, zero value otherwise.

func (*Widget) GetServiceNameOk

func (w *Widget) GetServiceNameOk() (string, bool)

GetServiceNameOk 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 (*Widget) GetServiceService

func (w *Widget) GetServiceService() string

GetServiceService returns the ServiceService field if non-nil, zero value otherwise.

func (*Widget) GetServiceServiceOk

func (w *Widget) GetServiceServiceOk() (string, bool)

GetServiceServiceOk returns a tuple with the ServiceService field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetSizeVersion

func (w *Widget) GetSizeVersion() string

GetSizeVersion returns the SizeVersion field if non-nil, zero value otherwise.

func (*Widget) GetSizeVersionOk

func (w *Widget) GetSizeVersionOk() (string, bool)

GetSizeVersionOk returns a tuple with the SizeVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetSizing

func (w *Widget) GetSizing() string

GetSizing returns the Sizing field if non-nil, zero value otherwise.

func (*Widget) GetSizingOk

func (w *Widget) GetSizingOk() (string, bool)

GetSizingOk 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 (*Widget) GetText

func (w *Widget) GetText() string

GetText returns the Text field if non-nil, zero value otherwise.

func (*Widget) GetTextAlign

func (w *Widget) GetTextAlign() string

GetTextAlign returns the TextAlign field if non-nil, zero value otherwise.

func (*Widget) GetTextAlignOk

func (w *Widget) GetTextAlignOk() (string, bool)

GetTextAlignOk 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 (*Widget) GetTextOk

func (w *Widget) GetTextOk() (string, bool)

GetTextOk 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 (*Widget) GetTextSize

func (w *Widget) GetTextSize() string

GetTextSize returns the TextSize field if non-nil, zero value otherwise.

func (*Widget) GetTextSizeOk

func (w *Widget) GetTextSizeOk() (string, bool)

GetTextSizeOk 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 (*Widget) GetTick

func (w *Widget) GetTick() bool

GetTick returns the Tick field if non-nil, zero value otherwise.

func (*Widget) GetTickEdge

func (w *Widget) GetTickEdge() string

GetTickEdge returns the TickEdge field if non-nil, zero value otherwise.

func (*Widget) GetTickEdgeOk

func (w *Widget) GetTickEdgeOk() (string, bool)

GetTickEdgeOk 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 (*Widget) GetTickOk

func (w *Widget) GetTickOk() (bool, bool)

GetTickOk 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 (*Widget) GetTickPos

func (w *Widget) GetTickPos() string

GetTickPos returns the TickPos field if non-nil, zero value otherwise.

func (*Widget) GetTickPosOk

func (w *Widget) GetTickPosOk() (string, bool)

GetTickPosOk 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 (*Widget) GetTileDef

func (w *Widget) GetTileDef() TileDef

GetTileDef returns the TileDef field if non-nil, zero value otherwise.

func (*Widget) GetTileDefOk

func (w *Widget) GetTileDefOk() (TileDef, bool)

GetTileDefOk 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 (*Widget) GetTime

func (w *Widget) GetTime() Time

GetTime returns the Time field if non-nil, zero value otherwise.

func (*Widget) GetTimeOk

func (w *Widget) GetTimeOk() (Time, bool)

GetTimeOk 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 (*Widget) GetTitle

func (w *Widget) GetTitle() bool

GetTitle returns the Title field if non-nil, zero value otherwise.

func (*Widget) GetTitleAlign

func (w *Widget) GetTitleAlign() string

GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.

func (*Widget) GetTitleAlignOk

func (w *Widget) GetTitleAlignOk() (string, bool)

GetTitleAlignOk 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 (*Widget) GetTitleOk

func (w *Widget) GetTitleOk() (bool, bool)

GetTitleOk 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 (*Widget) GetTitleSize

func (w *Widget) GetTitleSize() int

GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.

func (*Widget) GetTitleSizeOk

func (w *Widget) GetTitleSizeOk() (int, bool)

GetTitleSizeOk 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 (*Widget) GetTitleText

func (w *Widget) GetTitleText() string

GetTitleText returns the TitleText field if non-nil, zero value otherwise.

func (*Widget) GetTitleTextOk

func (w *Widget) GetTitleTextOk() (string, bool)

GetTitleTextOk 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 (*Widget) GetType

func (w *Widget) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

func (*Widget) GetTypeOk

func (w *Widget) GetTypeOk() (string, bool)

GetTypeOk 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 (*Widget) GetURL

func (w *Widget) GetURL() string

GetURL returns the URL field if non-nil, zero value otherwise.

func (*Widget) GetURLOk

func (w *Widget) GetURLOk() (string, bool)

GetURLOk 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 (*Widget) GetUnit

func (w *Widget) GetUnit() string

GetUnit returns the Unit field if non-nil, zero value otherwise.

func (*Widget) GetUnitOk

func (w *Widget) GetUnitOk() (string, bool)

GetUnitOk 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 (*Widget) GetVizType

func (w *Widget) GetVizType() string

GetVizType returns the VizType field if non-nil, zero value otherwise.

func (*Widget) GetVizTypeOk

func (w *Widget) GetVizTypeOk() (string, bool)

GetVizTypeOk 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 (*Widget) GetWidth

func (w *Widget) GetWidth() int

GetWidth returns the Width field if non-nil, zero value otherwise.

func (*Widget) GetWidthOk

func (w *Widget) GetWidthOk() (int, bool)

GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Widget) GetX

func (w *Widget) GetX() int

GetX returns the X field if non-nil, zero value otherwise.

func (*Widget) GetXOk

func (w *Widget) GetXOk() (int, bool)

GetXOk 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 (*Widget) GetY

func (w *Widget) GetY() int

GetY returns the Y field if non-nil, zero value otherwise.

func (*Widget) GetYOk

func (w *Widget) GetYOk() (int, bool)

GetYOk 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 (*Widget) HasAlertID

func (w *Widget) HasAlertID() bool

HasAlertID returns a boolean if a field has been set.

func (*Widget) HasAutoRefresh

func (w *Widget) HasAutoRefresh() bool

HasAutoRefresh returns a boolean if a field has been set.

func (*Widget) HasBgcolor

func (w *Widget) HasBgcolor() bool

HasBgcolor returns a boolean if a field has been set.

func (*Widget) HasCheck

func (w *Widget) HasCheck() bool

HasCheck returns a boolean if a field has been set.

func (*Widget) HasColor

func (w *Widget) HasColor() bool

HasColor returns a boolean if a field has been set.

func (*Widget) HasColorPreference

func (w *Widget) HasColorPreference() bool

HasColorPreference returns a boolean if a field has been set.

func (*Widget) HasColumns

func (w *Widget) HasColumns() bool

HasColumns returns a boolean if a field has been set.

func (*Widget) HasDisplayFormat

func (w *Widget) HasDisplayFormat() bool

HasDisplayFormat returns a boolean if a field has been set.

func (*Widget) HasEnv

func (w *Widget) HasEnv() bool

HasEnv returns a boolean if a field has been set.

func (*Widget) HasEventSize

func (w *Widget) HasEventSize() bool

HasEventSize returns a boolean if a field has been set.

func (*Widget) HasFontSize

func (w *Widget) HasFontSize() bool

HasFontSize returns a boolean if a field has been set.

func (*Widget) HasGroup

func (w *Widget) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (*Widget) HasGrouping

func (w *Widget) HasGrouping() bool

HasGrouping returns a boolean if a field has been set.

func (*Widget) HasHTML

func (w *Widget) HasHTML() bool

HasHTML returns a boolean if a field has been set.

func (*Widget) HasHeight

func (w *Widget) HasHeight() bool

HasHeight returns a boolean if a field has been set.

func (*Widget) HasHideZeroCounts

func (w *Widget) HasHideZeroCounts() bool

HasHideZeroCounts returns a boolean if a field has been set.

func (*Widget) HasLayoutVersion

func (w *Widget) HasLayoutVersion() bool

HasLayoutVersion returns a boolean if a field has been set.

func (*Widget) HasLegend

func (w *Widget) HasLegend() bool

HasLegend returns a boolean if a field has been set.

func (*Widget) HasLegendSize

func (w *Widget) HasLegendSize() bool

HasLegendSize returns a boolean if a field has been set.

func (*Widget) HasLogset

func (w *Widget) HasLogset() bool

HasLogset returns a boolean if a field has been set.

func (*Widget) HasManageStatusShowTitle

func (w *Widget) HasManageStatusShowTitle() bool

HasManageStatusShowTitle returns a boolean if a field has been set.

func (*Widget) HasManageStatusTitleAlign

func (w *Widget) HasManageStatusTitleAlign() bool

HasManageStatusTitleAlign returns a boolean if a field has been set.

func (*Widget) HasManageStatusTitleSize

func (w *Widget) HasManageStatusTitleSize() bool

HasManageStatusTitleSize returns a boolean if a field has been set.

func (*Widget) HasManageStatusTitleText

func (w *Widget) HasManageStatusTitleText() bool

HasManageStatusTitleText returns a boolean if a field has been set.

func (*Widget) HasMargin

func (w *Widget) HasMargin() bool

HasMargin returns a boolean if a field has been set.

func (*Widget) HasMonitor

func (w *Widget) HasMonitor() bool

HasMonitor returns a boolean if a field has been set.

func (*Widget) HasMustShowBreakdown

func (w *Widget) HasMustShowBreakdown() bool

HasMustShowBreakdown returns a boolean if a field has been set.

func (*Widget) HasMustShowDistribution

func (w *Widget) HasMustShowDistribution() bool

HasMustShowDistribution returns a boolean if a field has been set.

func (*Widget) HasMustShowErrors

func (w *Widget) HasMustShowErrors() bool

HasMustShowErrors returns a boolean if a field has been set.

func (*Widget) HasMustShowHits

func (w *Widget) HasMustShowHits() bool

HasMustShowHits returns a boolean if a field has been set.

func (*Widget) HasMustShowLatency

func (w *Widget) HasMustShowLatency() bool

HasMustShowLatency returns a boolean if a field has been set.

func (*Widget) HasMustShowResourceList

func (w *Widget) HasMustShowResourceList() bool

HasMustShowResourceList returns a boolean if a field has been set.

func (*Widget) HasParams

func (w *Widget) HasParams() bool

HasParams returns a boolean if a field has been set.

func (*Widget) HasPrecision

func (w *Widget) HasPrecision() bool

HasPrecision returns a boolean if a field has been set.

func (*Widget) HasQuery

func (w *Widget) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*Widget) HasServiceName

func (w *Widget) HasServiceName() bool

HasServiceName returns a boolean if a field has been set.

func (*Widget) HasServiceService

func (w *Widget) HasServiceService() bool

HasServiceService returns a boolean if a field has been set.

func (*Widget) HasSizeVersion

func (w *Widget) HasSizeVersion() bool

HasSizeVersion returns a boolean if a field has been set.

func (*Widget) HasSizing

func (w *Widget) HasSizing() bool

HasSizing returns a boolean if a field has been set.

func (*Widget) HasText

func (w *Widget) HasText() bool

HasText returns a boolean if a field has been set.

func (*Widget) HasTextAlign

func (w *Widget) HasTextAlign() bool

HasTextAlign returns a boolean if a field has been set.

func (*Widget) HasTextSize

func (w *Widget) HasTextSize() bool

HasTextSize returns a boolean if a field has been set.

func (*Widget) HasTick

func (w *Widget) HasTick() bool

HasTick returns a boolean if a field has been set.

func (*Widget) HasTickEdge

func (w *Widget) HasTickEdge() bool

HasTickEdge returns a boolean if a field has been set.

func (*Widget) HasTickPos

func (w *Widget) HasTickPos() bool

HasTickPos returns a boolean if a field has been set.

func (*Widget) HasTileDef

func (w *Widget) HasTileDef() bool

HasTileDef returns a boolean if a field has been set.

func (*Widget) HasTime

func (w *Widget) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*Widget) HasTitle

func (w *Widget) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Widget) HasTitleAlign

func (w *Widget) HasTitleAlign() bool

HasTitleAlign returns a boolean if a field has been set.

func (*Widget) HasTitleSize

func (w *Widget) HasTitleSize() bool

HasTitleSize returns a boolean if a field has been set.

func (*Widget) HasTitleText

func (w *Widget) HasTitleText() bool

HasTitleText returns a boolean if a field has been set.

func (*Widget) HasType

func (w *Widget) HasType() bool

HasType returns a boolean if a field has been set.

func (*Widget) HasURL

func (w *Widget) HasURL() bool

HasURL returns a boolean if a field has been set.

func (*Widget) HasUnit

func (w *Widget) HasUnit() bool

HasUnit returns a boolean if a field has been set.

func (*Widget) HasVizType

func (w *Widget) HasVizType() bool

HasVizType returns a boolean if a field has been set.

func (*Widget) HasWidth

func (w *Widget) HasWidth() bool

HasWidth returns a boolean if a field has been set.

func (*Widget) HasX

func (w *Widget) HasX() bool

HasX returns a boolean if a field has been set.

func (*Widget) HasY

func (w *Widget) HasY() bool

HasY returns a boolean if a field has been set.

func (*Widget) SetAlertID

func (w *Widget) SetAlertID(v int)

SetAlertID allocates a new w.AlertID and returns the pointer to it.

func (*Widget) SetAutoRefresh

func (w *Widget) SetAutoRefresh(v bool)

SetAutoRefresh allocates a new w.AutoRefresh and returns the pointer to it.

func (*Widget) SetBgcolor

func (w *Widget) SetBgcolor(v string)

SetBgcolor allocates a new w.Bgcolor and returns the pointer to it.

func (*Widget) SetCheck

func (w *Widget) SetCheck(v string)

SetCheck allocates a new w.Check and returns the pointer to it.

func (*Widget) SetColor

func (w *Widget) SetColor(v string)

SetColor allocates a new w.Color and returns the pointer to it.

func (*Widget) SetColorPreference

func (w *Widget) SetColorPreference(v string)

SetColorPreference allocates a new w.ColorPreference and returns the pointer to it.

func (*Widget) SetColumns

func (w *Widget) SetColumns(v string)

SetColumns allocates a new w.Columns and returns the pointer to it.

func (*Widget) SetDisplayFormat

func (w *Widget) SetDisplayFormat(v string)

SetDisplayFormat allocates a new w.DisplayFormat and returns the pointer to it.

func (*Widget) SetEnv

func (w *Widget) SetEnv(v string)

SetEnv allocates a new w.Env and returns the pointer to it.

func (*Widget) SetEventSize

func (w *Widget) SetEventSize(v string)

SetEventSize allocates a new w.EventSize and returns the pointer to it.

func (*Widget) SetFontSize

func (w *Widget) SetFontSize(v string)

SetFontSize allocates a new w.FontSize and returns the pointer to it.

func (*Widget) SetGroup

func (w *Widget) SetGroup(v string)

SetGroup allocates a new w.Group and returns the pointer to it.

func (*Widget) SetGrouping

func (w *Widget) SetGrouping(v string)

SetGrouping allocates a new w.Grouping and returns the pointer to it.

func (*Widget) SetHTML

func (w *Widget) SetHTML(v string)

SetHTML allocates a new w.HTML and returns the pointer to it.

func (*Widget) SetHeight

func (w *Widget) SetHeight(v int)

SetHeight allocates a new w.Height and returns the pointer to it.

func (*Widget) SetHideZeroCounts

func (w *Widget) SetHideZeroCounts(v bool)

SetHideZeroCounts allocates a new w.HideZeroCounts and returns the pointer to it.

func (*Widget) SetLayoutVersion

func (w *Widget) SetLayoutVersion(v string)

SetLayoutVersion allocates a new w.LayoutVersion and returns the pointer to it.

func (*Widget) SetLegend

func (w *Widget) SetLegend(v bool)

SetLegend allocates a new w.Legend and returns the pointer to it.

func (*Widget) SetLegendSize

func (w *Widget) SetLegendSize(v string)

SetLegendSize allocates a new w.LegendSize and returns the pointer to it.

func (*Widget) SetLogset

func (w *Widget) SetLogset(v string)

SetLogset allocates a new w.Logset and returns the pointer to it.

func (*Widget) SetManageStatusShowTitle

func (w *Widget) SetManageStatusShowTitle(v bool)

SetManageStatusShowTitle allocates a new w.ManageStatusShowTitle and returns the pointer to it.

func (*Widget) SetManageStatusTitleAlign

func (w *Widget) SetManageStatusTitleAlign(v string)

SetManageStatusTitleAlign allocates a new w.ManageStatusTitleAlign and returns the pointer to it.

func (*Widget) SetManageStatusTitleSize

func (w *Widget) SetManageStatusTitleSize(v string)

SetManageStatusTitleSize allocates a new w.ManageStatusTitleSize and returns the pointer to it.

func (*Widget) SetManageStatusTitleText

func (w *Widget) SetManageStatusTitleText(v string)

SetManageStatusTitleText allocates a new w.ManageStatusTitleText and returns the pointer to it.

func (*Widget) SetMargin

func (w *Widget) SetMargin(v string)

SetMargin allocates a new w.Margin and returns the pointer to it.

func (*Widget) SetMonitor

func (w *Widget) SetMonitor(v ScreenboardMonitor)

SetMonitor allocates a new w.Monitor and returns the pointer to it.

func (*Widget) SetMustShowBreakdown

func (w *Widget) SetMustShowBreakdown(v bool)

SetMustShowBreakdown allocates a new w.MustShowBreakdown and returns the pointer to it.

func (*Widget) SetMustShowDistribution

func (w *Widget) SetMustShowDistribution(v bool)

SetMustShowDistribution allocates a new w.MustShowDistribution and returns the pointer to it.

func (*Widget) SetMustShowErrors

func (w *Widget) SetMustShowErrors(v bool)

SetMustShowErrors allocates a new w.MustShowErrors and returns the pointer to it.

func (*Widget) SetMustShowHits

func (w *Widget) SetMustShowHits(v bool)

SetMustShowHits allocates a new w.MustShowHits and returns the pointer to it.

func (*Widget) SetMustShowLatency

func (w *Widget) SetMustShowLatency(v bool)

SetMustShowLatency allocates a new w.MustShowLatency and returns the pointer to it.

func (*Widget) SetMustShowResourceList

func (w *Widget) SetMustShowResourceList(v bool)

SetMustShowResourceList allocates a new w.MustShowResourceList and returns the pointer to it.

func (*Widget) SetParams

func (w *Widget) SetParams(v Params)

SetParams allocates a new w.Params and returns the pointer to it.

func (*Widget) SetPrecision

func (w *Widget) SetPrecision(v PrecisionT)

SetPrecision allocates a new w.Precision and returns the pointer to it.

func (*Widget) SetQuery

func (w *Widget) SetQuery(v string)

SetQuery allocates a new w.Query and returns the pointer to it.

func (*Widget) SetServiceName

func (w *Widget) SetServiceName(v string)

SetServiceName allocates a new w.ServiceName and returns the pointer to it.

func (*Widget) SetServiceService

func (w *Widget) SetServiceService(v string)

SetServiceService allocates a new w.ServiceService and returns the pointer to it.

func (*Widget) SetSizeVersion

func (w *Widget) SetSizeVersion(v string)

SetSizeVersion allocates a new w.SizeVersion and returns the pointer to it.

func (*Widget) SetSizing

func (w *Widget) SetSizing(v string)

SetSizing allocates a new w.Sizing and returns the pointer to it.

func (*Widget) SetText

func (w *Widget) SetText(v string)

SetText allocates a new w.Text and returns the pointer to it.

func (*Widget) SetTextAlign

func (w *Widget) SetTextAlign(v string)

SetTextAlign allocates a new w.TextAlign and returns the pointer to it.

func (*Widget) SetTextSize

func (w *Widget) SetTextSize(v string)

SetTextSize allocates a new w.TextSize and returns the pointer to it.

func (*Widget) SetTick

func (w *Widget) SetTick(v bool)

SetTick allocates a new w.Tick and returns the pointer to it.

func (*Widget) SetTickEdge

func (w *Widget) SetTickEdge(v string)

SetTickEdge allocates a new w.TickEdge and returns the pointer to it.

func (*Widget) SetTickPos

func (w *Widget) SetTickPos(v string)

SetTickPos allocates a new w.TickPos and returns the pointer to it.

func (*Widget) SetTileDef

func (w *Widget) SetTileDef(v TileDef)

SetTileDef allocates a new w.TileDef and returns the pointer to it.

func (*Widget) SetTime

func (w *Widget) SetTime(v Time)

SetTime allocates a new w.Time and returns the pointer to it.

func (*Widget) SetTitle

func (w *Widget) SetTitle(v bool)

SetTitle allocates a new w.Title and returns the pointer to it.

func (*Widget) SetTitleAlign

func (w *Widget) SetTitleAlign(v string)

SetTitleAlign allocates a new w.TitleAlign and returns the pointer to it.

func (*Widget) SetTitleSize

func (w *Widget) SetTitleSize(v int)

SetTitleSize allocates a new w.TitleSize and returns the pointer to it.

func (*Widget) SetTitleText

func (w *Widget) SetTitleText(v string)

SetTitleText allocates a new w.TitleText and returns the pointer to it.

func (*Widget) SetType

func (w *Widget) SetType(v string)

SetType allocates a new w.Type and returns the pointer to it.

func (*Widget) SetURL

func (w *Widget) SetURL(v string)

SetURL allocates a new w.URL and returns the pointer to it.

func (*Widget) SetUnit

func (w *Widget) SetUnit(v string)

SetUnit allocates a new w.Unit and returns the pointer to it.

func (*Widget) SetVizType

func (w *Widget) SetVizType(v string)

SetVizType allocates a new w.VizType and returns the pointer to it.

func (*Widget) SetWidth

func (w *Widget) SetWidth(v int)

SetWidth allocates a new w.Width and returns the pointer to it.

func (*Widget) SetX

func (w *Widget) SetX(v int)

SetX allocates a new w.X and returns the pointer to it.

func (*Widget) SetY

func (w *Widget) SetY(v int)

SetY allocates a new w.Y and returns the pointer to it.

type Yaxis

type Yaxis struct {
	Min          *float64 `json:"min,omitempty"`
	AutoMin      bool     `json:"-"`
	Max          *float64 `json:"max,omitempty"`
	AutoMax      bool     `json:"-"`
	Scale        *string  `json:"scale,omitempty"`
	IncludeZero  *bool    `json:"includeZero,omitempty"`
	IncludeUnits *bool    `json:"units,omitempty"`
}

func (*Yaxis) GetIncludeUnits

func (y *Yaxis) GetIncludeUnits() bool

GetIncludeUnits returns the IncludeUnits field if non-nil, zero value otherwise.

func (*Yaxis) GetIncludeUnitsOk

func (y *Yaxis) GetIncludeUnitsOk() (bool, bool)

GetIncludeUnitsOk returns a tuple with the IncludeUnits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Yaxis) GetIncludeZero

func (y *Yaxis) GetIncludeZero() bool

GetIncludeZero returns the IncludeZero field if non-nil, zero value otherwise.

func (*Yaxis) GetIncludeZeroOk

func (y *Yaxis) GetIncludeZeroOk() (bool, bool)

GetIncludeZeroOk returns a tuple with the IncludeZero field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

func (*Yaxis) GetMax

func (y *Yaxis) GetMax() float64

GetMax returns the Max field if non-nil, zero value otherwise.

func (*Yaxis) GetMaxOk

func (y *Yaxis) GetMaxOk() (float64, bool)

GetMaxOk 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 (*Yaxis) GetMin

func (y *Yaxis) GetMin() float64

GetMin returns the Min field if non-nil, zero value otherwise.

func (*Yaxis) GetMinOk

func (y *Yaxis) GetMinOk() (float64, bool)

GetMinOk 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 (*Yaxis) GetScale

func (y *Yaxis) GetScale() string

GetScale returns the Scale field if non-nil, zero value otherwise.

func (*Yaxis) GetScaleOk

func (y *Yaxis) GetScaleOk() (string, bool)

GetScaleOk 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 (*Yaxis) HasIncludeUnits

func (y *Yaxis) HasIncludeUnits() bool

HasIncludeUnits returns a boolean if a field has been set.

func (*Yaxis) HasIncludeZero

func (y *Yaxis) HasIncludeZero() bool

HasIncludeZero returns a boolean if a field has been set.

func (*Yaxis) HasMax

func (y *Yaxis) HasMax() bool

HasMax returns a boolean if a field has been set.

func (*Yaxis) HasMin

func (y *Yaxis) HasMin() bool

HasMin returns a boolean if a field has been set.

func (*Yaxis) HasScale

func (y *Yaxis) HasScale() bool

HasScale returns a boolean if a field has been set.

func (*Yaxis) SetIncludeUnits

func (y *Yaxis) SetIncludeUnits(v bool)

SetIncludeUnits allocates a new y.IncludeUnits and returns the pointer to it.

func (*Yaxis) SetIncludeZero

func (y *Yaxis) SetIncludeZero(v bool)

SetIncludeZero allocates a new y.IncludeZero and returns the pointer to it.

func (*Yaxis) SetMax

func (y *Yaxis) SetMax(v float64)

SetMax allocates a new y.Max and returns the pointer to it.

func (*Yaxis) SetMin

func (y *Yaxis) SetMin(v float64)

SetMin allocates a new y.Min and returns the pointer to it.

func (*Yaxis) SetScale

func (y *Yaxis) SetScale(v string)

SetScale allocates a new y.Scale and returns the pointer to it.

func (*Yaxis) UnmarshalJSON

func (y *Yaxis) UnmarshalJSON(data []byte) error

UnmarshalJSON is a Custom Unmarshal for Yaxis.Min/Yaxis.Max. If the datadog API returns "auto" for min or max, then we should set Yaxis.min or Yaxis.max to nil, respectively.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL