go-datadog-api.v2: gopkg.in/zorkian/go-datadog-api.v2 Index | Files

package datadog

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

Index

Package Files

alerts.go api_keys.go app_keys.go board_widgets.go boards.go checks.go client.go comments.go dashboard_list_items_v2.go dashboard_lists.go dashboards.go datadog-accessors.go downtimes.go events.go generate.go helpers.go hosts.go integrations.go ip_ranges.go log_lists.go logs_index_lists.go logs_indexes.go logs_pipeline_lists.go logs_pipelines.go logs_processors.go metric_metadata.go monitors.go ratelimit.go request.go screen_widgets.go screenboards.go search.go series.go service_level_objectives.go snapshot.go synthetics.go tags.go users.go

Constants

const (
    ALERT_GRAPH_WIDGET             = "alert_graph"
    ALERT_VALUE_WIDGET             = "alert_value"
    CHANGE_WIDGET                  = "change"
    CHECK_STATUS_WIDGET            = "check_status"
    DISTRIBUTION_WIDGET            = "distribution"
    EVENT_STREAM_WIDGET            = "event_stream"
    EVENT_TIMELINE_WIDGET          = "event_timeline"
    FREE_TEXT_WIDGET               = "free_text"
    GROUP_WIDGET                   = "group"
    HEATMAP_WIDGET                 = "heatmap"
    HOSTMAP_WIDGET                 = "hostmap"
    IFRAME_WIDGET                  = "iframe"
    IMAGE_WIDGET                   = "image"
    LOG_STREAM_WIDGET              = "log_stream"
    MANAGE_STATUS_WIDGET           = "manage_status"
    NOTE_WIDGET                    = "note"
    QUERY_VALUE_WIDGET             = "query_value"
    QUERY_TABLE_WIDGET             = "query_table"
    SCATTERPLOT_WIDGET             = "scatterplot"
    SERVICE_LEVEL_OBJECTIVE_WIDGET = "slo"
    TIMESERIES_WIDGET              = "timeseries"
    TOPLIST_WIDGET                 = "toplist"
    TRACE_SERVICE_WIDGET           = "trace_service"
)
const (
    DashboardListItemCustomTimeboard        = "custom_timeboard"
    DashboardListItemCustomScreenboard      = "custom_screenboard"
    DashboardListItemIntegerationTimeboard  = "integration_timeboard"
    DashboardListItemIntegrationScreenboard = "integration_screenboard"
    DashboardListItemHostTimeboard          = "host_timeboard"
)
const (
    ArithmeticProcessorType    = "arithmetic-processor"
    AttributeRemapperType      = "attribute-remapper"
    CategoryProcessorType      = "category-processor"
    DateRemapperType           = "date-remapper"
    GeoIPParserType            = "geo-ip-parser"
    GrokParserType             = "grok-parser"
    LookupProcessorType        = "lookup-processor"
    MessageRemapperType        = "message-remapper"
    NestedPipelineType         = "pipeline"
    ServiceRemapperType        = "service-remapper"
    StatusRemapperType         = "status-remapper"
    StringBuilderProcessorType = "string-builder-processor"
    TraceIdRemapperType        = "trace-id-remapper"
    UrlParserType              = "url-parser"
    UserAgentParserType        = "user-agent-parser"
)
const (
    ServiceLevelObjectiveTypeMonitorID int = 0
    ServiceLevelObjectiveTypeMetricID  int = 1
)

Define the available machine-readable SLO types

Variables

var (
    ServiceLevelObjectiveTypeMonitor = "monitor"
    ServiceLevelObjectiveTypeMetric  = "metric"
)

Define the available human-readable SLO types

var ServiceLevelObjectiveTypeFromID = map[int]string{
    ServiceLevelObjectiveTypeMonitorID: ServiceLevelObjectiveTypeMonitor,
    ServiceLevelObjectiveTypeMetricID:  ServiceLevelObjectiveTypeMetric,
}

ServiceLevelObjectiveTypeFromID maps machine-readable type to human-readable type

var ServiceLevelObjectiveTypeToID = map[string]int{
    ServiceLevelObjectiveTypeMonitor: ServiceLevelObjectiveTypeMonitorID,
    ServiceLevelObjectiveTypeMetric:  ServiceLevelObjectiveTypeMetricID,
}

ServiceLevelObjectiveTypeToID maps human-readable type to machine-readable type

func Bool Uses

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 Float64 Uses

func Float64(v float64) *float64

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

func Float64AlmostEqual Uses

func Float64AlmostEqual(a, b, tolerance float64) bool

Float64AlmostEqual will return true if two floats are within a certain tolerance of each other

func GetBool Uses

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 GetFloat64Ok Uses

func GetFloat64Ok(v *float64) (float64, bool)

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

func GetFloatFromInterface Uses

func GetFloatFromInterface(intf *interface{}) (*float64, bool, error)

func GetIntOk Uses

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

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

func GetJsonNumberOk Uses

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

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

func GetStringId Uses

func GetStringId(id interface{}) (string, error)

GetStringId is a helper routine that allows screenboards and timeboards to be retrieved by either the legacy numerical format or the new string format. It returns the id as is if it is a string, converts it to a string if it is an integer. It return an error if the type is neither string or an integer

func GetStringOk Uses

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

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

func Int Uses

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 Int64 Uses

func Int64(v int64) *int64

Int64 is a helper routine that allocates a new int64 value to store v and return a pointer to it.

func JsonNumber Uses

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 ServiceLevelObjectiveTimeFrameToDuration Uses

func ServiceLevelObjectiveTimeFrameToDuration(timeframe string) (time.Duration, error)

ServiceLevelObjectiveTimeFrameToDuration will convert a timeframe into a duration

func String Uses

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.

type APIKey Uses

type APIKey struct {
    CreatedBy *string    `json:"created_by,omitempty"`
    Name      *string    `json:"name,omitempty"`
    Key       *string    `json:"key,omitempty"`
    Created   *time.Time `json:"created,omitempty"`
}

APIKey represents and API key

func (*APIKey) GetCreated Uses

func (a *APIKey) GetCreated() time.Time

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

func (*APIKey) GetCreatedBy Uses

func (a *APIKey) GetCreatedBy() string

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

func (*APIKey) GetCreatedByOk Uses

func (a *APIKey) GetCreatedByOk() (string, 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 (*APIKey) GetCreatedOk Uses

func (a *APIKey) GetCreatedOk() (time.Time, 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 (*APIKey) GetKey Uses

func (a *APIKey) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

func (*APIKey) GetKeyOk Uses

func (a *APIKey) GetKeyOk() (string, bool)

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

func (*APIKey) GetName Uses

func (a *APIKey) GetName() string

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

func (*APIKey) GetNameOk Uses

func (a *APIKey) 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 (*APIKey) HasCreated Uses

func (a *APIKey) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*APIKey) HasCreatedBy Uses

func (a *APIKey) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*APIKey) HasKey Uses

func (a *APIKey) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*APIKey) HasName Uses

func (a *APIKey) HasName() bool

HasName returns a boolean if a field has been set.

func (APIKey) MarshalJSON Uses

func (k APIKey) MarshalJSON() ([]byte, error)

MarshalJSON is a custom method for handling datetime marshalling

func (*APIKey) SetCreated Uses

func (a *APIKey) SetCreated(v time.Time)

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

func (*APIKey) SetCreatedBy Uses

func (a *APIKey) SetCreatedBy(v string)

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

func (*APIKey) SetKey Uses

func (a *APIKey) SetKey(v string)

SetKey allocates a new a.Key and returns the pointer to it.

func (*APIKey) SetName Uses

func (a *APIKey) SetName(v string)

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

func (*APIKey) UnmarshalJSON Uses

func (k *APIKey) UnmarshalJSON(data []byte) error

UnmarshalJSON is a custom method for handling datetime unmarshalling

type APPKey Uses

type APPKey struct {
    Owner *string `json:"owner,omitempty"`
    Name  *string `json:"name,omitempty"`
    Hash  *string `json:"hash,omitempty"`
}

APPKey represents an APP key

func (*APPKey) GetHash Uses

func (a *APPKey) GetHash() string

GetHash returns the Hash field if non-nil, zero value otherwise.

func (*APPKey) GetHashOk Uses

func (a *APPKey) GetHashOk() (string, bool)

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

func (*APPKey) GetName Uses

func (a *APPKey) GetName() string

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

func (*APPKey) GetNameOk Uses

func (a *APPKey) 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 (*APPKey) GetOwner Uses

func (a *APPKey) GetOwner() string

GetOwner returns the Owner field if non-nil, zero value otherwise.

func (*APPKey) GetOwnerOk Uses

func (a *APPKey) GetOwnerOk() (string, bool)

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

func (*APPKey) HasHash Uses

func (a *APPKey) HasHash() bool

HasHash returns a boolean if a field has been set.

func (*APPKey) HasName Uses

func (a *APPKey) HasName() bool

HasName returns a boolean if a field has been set.

func (*APPKey) HasOwner Uses

func (a *APPKey) HasOwner() bool

HasOwner returns a boolean if a field has been set.

func (*APPKey) SetHash Uses

func (a *APPKey) SetHash(v string)

SetHash allocates a new a.Hash and returns the pointer to it.

func (*APPKey) SetName Uses

func (a *APPKey) SetName(v string)

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

func (*APPKey) SetOwner Uses

func (a *APPKey) SetOwner(v string)

SetOwner allocates a new a.Owner and returns the pointer to it.

type Alert Uses

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 Uses

func (a *Alert) GetCreator() int

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

func (*Alert) GetCreatorOk Uses

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 Uses

func (a *Alert) GetId() int

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

func (*Alert) GetIdOk Uses

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 Uses

func (a *Alert) GetMessage() string

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

func (*Alert) GetMessageOk Uses

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 Uses

func (a *Alert) GetName() string

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

func (*Alert) GetNameOk Uses

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 Uses

func (a *Alert) GetNotifyNoData() bool

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

func (*Alert) GetNotifyNoDataOk Uses

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 Uses

func (a *Alert) GetQuery() string

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

func (*Alert) GetQueryOk Uses

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 Uses

func (a *Alert) GetSilenced() bool

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

func (*Alert) GetSilencedOk Uses

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 Uses

func (a *Alert) GetState() string

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

func (*Alert) GetStateOk Uses

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 Uses

func (a *Alert) HasCreator() bool

HasCreator returns a boolean if a field has been set.

func (*Alert) HasId Uses

func (a *Alert) HasId() bool

HasId returns a boolean if a field has been set.

func (*Alert) HasMessage Uses

func (a *Alert) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Alert) HasName Uses

func (a *Alert) HasName() bool

HasName returns a boolean if a field has been set.

func (*Alert) HasNotifyNoData Uses

func (a *Alert) HasNotifyNoData() bool

HasNotifyNoData returns a boolean if a field has been set.

func (*Alert) HasQuery Uses

func (a *Alert) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*Alert) HasSilenced Uses

func (a *Alert) HasSilenced() bool

HasSilenced returns a boolean if a field has been set.

func (*Alert) HasState Uses

func (a *Alert) HasState() bool

HasState returns a boolean if a field has been set.

func (*Alert) SetCreator Uses

func (a *Alert) SetCreator(v int)

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

func (*Alert) SetId Uses

func (a *Alert) SetId(v int)

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

func (*Alert) SetMessage Uses

func (a *Alert) SetMessage(v string)

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

func (*Alert) SetName Uses

func (a *Alert) SetName(v string)

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

func (*Alert) SetNotifyNoData Uses

func (a *Alert) SetNotifyNoData(v bool)

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

func (*Alert) SetQuery Uses

func (a *Alert) SetQuery(v string)

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

func (*Alert) SetSilenced Uses

func (a *Alert) SetSilenced(v bool)

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

func (*Alert) SetState Uses

func (a *Alert) SetState(v string)

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

type AlertGraphDefinition Uses

type AlertGraphDefinition struct {
    Type       *string     `json:"type"`
    AlertId    *string     `json:"alert_id"`
    VizType    *string     `json:"viz_type"`
    Title      *string     `json:"title,omitempty"`
    TitleSize  *string     `json:"title_size,omitempty"`
    TitleAlign *string     `json:"title_align,omitempty"`
    Time       *WidgetTime `json:"time,omitempty"`
}

AlertGraphDefinition represents the definition for an Alert Graph widget

func (*AlertGraphDefinition) GetAlertId Uses

func (a *AlertGraphDefinition) GetAlertId() string

GetAlertId returns the AlertId field if non-nil, zero value otherwise.

func (*AlertGraphDefinition) GetAlertIdOk Uses

func (a *AlertGraphDefinition) GetAlertIdOk() (string, 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 (*AlertGraphDefinition) GetTime Uses

func (a *AlertGraphDefinition) GetTime() WidgetTime

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

func (*AlertGraphDefinition) GetTimeOk Uses

func (a *AlertGraphDefinition) GetTimeOk() (WidgetTime, 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 (*AlertGraphDefinition) GetTitle Uses

func (a *AlertGraphDefinition) GetTitle() string

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

func (*AlertGraphDefinition) GetTitleAlign Uses

func (a *AlertGraphDefinition) GetTitleAlign() string

GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.

func (*AlertGraphDefinition) GetTitleAlignOk Uses

func (a *AlertGraphDefinition) 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 (*AlertGraphDefinition) GetTitleOk Uses

func (a *AlertGraphDefinition) 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 (*AlertGraphDefinition) GetTitleSize Uses

func (a *AlertGraphDefinition) GetTitleSize() string

GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.

func (*AlertGraphDefinition) GetTitleSizeOk Uses

func (a *AlertGraphDefinition) GetTitleSizeOk() (string, 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 (*AlertGraphDefinition) GetType Uses

func (a *AlertGraphDefinition) GetType() string

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

func (*AlertGraphDefinition) GetTypeOk Uses

func (a *AlertGraphDefinition) 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 (*AlertGraphDefinition) GetVizType Uses

func (a *AlertGraphDefinition) GetVizType() string

GetVizType returns the VizType field if non-nil, zero value otherwise.

func (*AlertGraphDefinition) GetVizTypeOk Uses

func (a *AlertGraphDefinition) 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 (*AlertGraphDefinition) HasAlertId Uses

func (a *AlertGraphDefinition) HasAlertId() bool

HasAlertId returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasTime Uses

func (a *AlertGraphDefinition) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasTitle Uses

func (a *AlertGraphDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasTitleAlign Uses

func (a *AlertGraphDefinition) HasTitleAlign() bool

HasTitleAlign returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasTitleSize Uses

func (a *AlertGraphDefinition) HasTitleSize() bool

HasTitleSize returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasType Uses

func (a *AlertGraphDefinition) HasType() bool

HasType returns a boolean if a field has been set.

func (*AlertGraphDefinition) HasVizType Uses

func (a *AlertGraphDefinition) HasVizType() bool

HasVizType returns a boolean if a field has been set.

func (*AlertGraphDefinition) SetAlertId Uses

func (a *AlertGraphDefinition) SetAlertId(v string)

SetAlertId allocates a new a.AlertId and returns the pointer to it.

func (*AlertGraphDefinition) SetTime Uses

func (a *AlertGraphDefinition) SetTime(v WidgetTime)

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

func (*AlertGraphDefinition) SetTitle Uses

func (a *AlertGraphDefinition) SetTitle(v string)

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

func (*AlertGraphDefinition) SetTitleAlign Uses

func (a *AlertGraphDefinition) SetTitleAlign(v string)

SetTitleAlign allocates a new a.TitleAlign and returns the pointer to it.

func (*AlertGraphDefinition) SetTitleSize Uses

func (a *AlertGraphDefinition) SetTitleSize(v string)

SetTitleSize allocates a new a.TitleSize and returns the pointer to it.

func (*AlertGraphDefinition) SetType Uses

func (a *AlertGraphDefinition) SetType(v string)

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

func (*AlertGraphDefinition) SetVizType Uses

func (a *AlertGraphDefinition) SetVizType(v string)

SetVizType allocates a new a.VizType and returns the pointer to it.

type AlertValueDefinition Uses

type AlertValueDefinition struct {
    Type       *string `json:"type"`
    AlertId    *string `json:"alert_id"`
    Precision  *int    `json:"precision,omitempty"`
    Unit       *string `json:"unit,omitempty"`
    TextAlign  *string `json:"text_align,omitempty"`
    Title      *string `json:"title,omitempty"`
    TitleSize  *string `json:"title_size,omitempty"`
    TitleAlign *string `json:"title_align,omitempty"`
}

AlertValueDefinition represents the definition for an Alert Value widget

func (*AlertValueDefinition) GetAlertId Uses

func (a *AlertValueDefinition) GetAlertId() string

GetAlertId returns the AlertId field if non-nil, zero value otherwise.

func (*AlertValueDefinition) GetAlertIdOk Uses

func (a *AlertValueDefinition) GetAlertIdOk() (string, 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 (*AlertValueDefinition) GetPrecision Uses

func (a *AlertValueDefinition) GetPrecision() int

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

func (*AlertValueDefinition) GetPrecisionOk Uses

func (a *AlertValueDefinition) GetPrecisionOk() (int, 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 (*AlertValueDefinition) GetTextAlign Uses

func (a *AlertValueDefinition) GetTextAlign() string

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

func (*AlertValueDefinition) GetTextAlignOk Uses

func (a *AlertValueDefinition) 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 (*AlertValueDefinition) GetTitle Uses

func (a *AlertValueDefinition) GetTitle() string

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

func (*AlertValueDefinition) GetTitleAlign Uses

func (a *AlertValueDefinition) GetTitleAlign() string

GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.

func (*AlertValueDefinition) GetTitleAlignOk Uses

func (a *AlertValueDefinition) 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 (*AlertValueDefinition) GetTitleOk Uses

func (a *AlertValueDefinition) 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 (*AlertValueDefinition) GetTitleSize Uses

func (a *AlertValueDefinition) GetTitleSize() string

GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.

func (*AlertValueDefinition) GetTitleSizeOk Uses

func (a *AlertValueDefinition) GetTitleSizeOk() (string, 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 (*AlertValueDefinition) GetType Uses

func (a *AlertValueDefinition) GetType() string

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

func (*AlertValueDefinition) GetTypeOk Uses

func (a *AlertValueDefinition) 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 (*AlertValueDefinition) GetUnit Uses

func (a *AlertValueDefinition) GetUnit() string

GetUnit returns the Unit field if non-nil, zero value otherwise.

func (*AlertValueDefinition) GetUnitOk Uses

func (a *AlertValueDefinition) 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 (*AlertValueDefinition) HasAlertId Uses

func (a *AlertValueDefinition) HasAlertId() bool

HasAlertId returns a boolean if a field has been set.

func (*AlertValueDefinition) HasPrecision Uses

func (a *AlertValueDefinition) HasPrecision() bool

HasPrecision returns a boolean if a field has been set.

func (*AlertValueDefinition) HasTextAlign Uses

func (a *AlertValueDefinition) HasTextAlign() bool

HasTextAlign returns a boolean if a field has been set.

func (*AlertValueDefinition) HasTitle Uses

func (a *AlertValueDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*AlertValueDefinition) HasTitleAlign Uses

func (a *AlertValueDefinition) HasTitleAlign() bool

HasTitleAlign returns a boolean if a field has been set.

func (*AlertValueDefinition) HasTitleSize Uses

func (a *AlertValueDefinition) HasTitleSize() bool

HasTitleSize returns a boolean if a field has been set.

func (*AlertValueDefinition) HasType Uses

func (a *AlertValueDefinition) HasType() bool

HasType returns a boolean if a field has been set.

func (*AlertValueDefinition) HasUnit Uses

func (a *AlertValueDefinition) HasUnit() bool

HasUnit returns a boolean if a field has been set.

func (*AlertValueDefinition) SetAlertId Uses

func (a *AlertValueDefinition) SetAlertId(v string)

SetAlertId allocates a new a.AlertId and returns the pointer to it.

func (*AlertValueDefinition) SetPrecision Uses

func (a *AlertValueDefinition) SetPrecision(v int)

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

func (*AlertValueDefinition) SetTextAlign Uses

func (a *AlertValueDefinition) SetTextAlign(v string)

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

func (*AlertValueDefinition) SetTitle Uses

func (a *AlertValueDefinition) SetTitle(v string)

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

func (*AlertValueDefinition) SetTitleAlign Uses

func (a *AlertValueDefinition) SetTitleAlign(v string)

SetTitleAlign allocates a new a.TitleAlign and returns the pointer to it.

func (*AlertValueDefinition) SetTitleSize Uses

func (a *AlertValueDefinition) SetTitleSize(v string)

SetTitleSize allocates a new a.TitleSize and returns the pointer to it.

func (*AlertValueDefinition) SetType Uses

func (a *AlertValueDefinition) SetType(v string)

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

func (*AlertValueDefinition) SetUnit Uses

func (a *AlertValueDefinition) SetUnit(v string)

SetUnit allocates a new a.Unit and returns the pointer to it.

type ApmOrLogQueryCompute Uses

type ApmOrLogQueryCompute struct {
    Aggregation *string `json:"aggregation"`
    Facet       *string `json:"facet,omitempty"`
    Interval    *int    `json:"interval,omitempty"`
}

func (*ApmOrLogQueryCompute) GetAggregation Uses

func (a *ApmOrLogQueryCompute) GetAggregation() string

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

func (*ApmOrLogQueryCompute) GetAggregationOk Uses

func (a *ApmOrLogQueryCompute) 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 (*ApmOrLogQueryCompute) GetFacet Uses

func (a *ApmOrLogQueryCompute) GetFacet() string

GetFacet returns the Facet field if non-nil, zero value otherwise.

func (*ApmOrLogQueryCompute) GetFacetOk Uses

func (a *ApmOrLogQueryCompute) GetFacetOk() (string, bool)

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

func (*ApmOrLogQueryCompute) GetInterval Uses

func (a *ApmOrLogQueryCompute) GetInterval() int

GetInterval returns the Interval field if non-nil, zero value otherwise.

func (*ApmOrLogQueryCompute) GetIntervalOk Uses

func (a *ApmOrLogQueryCompute) 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 (*ApmOrLogQueryCompute) HasAggregation Uses

func (a *ApmOrLogQueryCompute) HasAggregation() bool

HasAggregation returns a boolean if a field has been set.

func (*ApmOrLogQueryCompute) HasFacet Uses

func (a *ApmOrLogQueryCompute) HasFacet() bool

HasFacet returns a boolean if a field has been set.

func (*ApmOrLogQueryCompute) HasInterval Uses

func (a *ApmOrLogQueryCompute) HasInterval() bool

HasInterval returns a boolean if a field has been set.

func (*ApmOrLogQueryCompute) SetAggregation Uses

func (a *ApmOrLogQueryCompute) SetAggregation(v string)

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

func (*ApmOrLogQueryCompute) SetFacet Uses

func (a *ApmOrLogQueryCompute) SetFacet(v string)

SetFacet allocates a new a.Facet and returns the pointer to it.

func (*ApmOrLogQueryCompute) SetInterval Uses

func (a *ApmOrLogQueryCompute) SetInterval(v int)

SetInterval allocates a new a.Interval and returns the pointer to it.

type ApmOrLogQueryGroupBy Uses

type ApmOrLogQueryGroupBy struct {
    Facet *string                   `json:"facet"`
    Limit *int                      `json:"limit,omitempty"`
    Sort  *ApmOrLogQueryGroupBySort `json:"sort,omitempty"`
}

func (*ApmOrLogQueryGroupBy) GetFacet Uses

func (a *ApmOrLogQueryGroupBy) GetFacet() string

GetFacet returns the Facet field if non-nil, zero value otherwise.

func (*ApmOrLogQueryGroupBy) GetFacetOk Uses

func (a *ApmOrLogQueryGroupBy) GetFacetOk() (string, bool)

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

func (*ApmOrLogQueryGroupBy) GetLimit Uses

func (a *ApmOrLogQueryGroupBy) GetLimit() int

GetLimit returns the Limit field if non-nil, zero value otherwise.

func (*ApmOrLogQueryGroupBy) GetLimitOk Uses

func (a *ApmOrLogQueryGroupBy) 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 (*ApmOrLogQueryGroupBy) GetSort Uses

func (a *ApmOrLogQueryGroupBy) GetSort() ApmOrLogQueryGroupBySort

GetSort returns the Sort field if non-nil, zero value otherwise.

func (*ApmOrLogQueryGroupBy) GetSortOk Uses

func (a *ApmOrLogQueryGroupBy) GetSortOk() (ApmOrLogQueryGroupBySort, 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 (*ApmOrLogQueryGroupBy) HasFacet Uses

func (a *ApmOrLogQueryGroupBy) HasFacet() bool

HasFacet returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBy) HasLimit Uses

func (a *ApmOrLogQueryGroupBy) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBy) HasSort Uses

func (a *ApmOrLogQueryGroupBy) HasSort() bool

HasSort returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBy) SetFacet Uses

func (a *ApmOrLogQueryGroupBy) SetFacet(v string)

SetFacet allocates a new a.Facet and returns the pointer to it.

func (*ApmOrLogQueryGroupBy) SetLimit Uses

func (a *ApmOrLogQueryGroupBy) SetLimit(v int)

SetLimit allocates a new a.Limit and returns the pointer to it.

func (*ApmOrLogQueryGroupBy) SetSort Uses

func (a *ApmOrLogQueryGroupBy) SetSort(v ApmOrLogQueryGroupBySort)

SetSort allocates a new a.Sort and returns the pointer to it.

type ApmOrLogQueryGroupBySort Uses

type ApmOrLogQueryGroupBySort struct {
    Aggregation *string `json:"aggregation"`
    Order       *string `json:"order"`
    Facet       *string `json:"facet,omitempty"`
}

func (*ApmOrLogQueryGroupBySort) GetAggregation Uses

func (a *ApmOrLogQueryGroupBySort) GetAggregation() string

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

func (*ApmOrLogQueryGroupBySort) GetAggregationOk Uses

func (a *ApmOrLogQueryGroupBySort) 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 (*ApmOrLogQueryGroupBySort) GetFacet Uses

func (a *ApmOrLogQueryGroupBySort) GetFacet() string

GetFacet returns the Facet field if non-nil, zero value otherwise.

func (*ApmOrLogQueryGroupBySort) GetFacetOk Uses

func (a *ApmOrLogQueryGroupBySort) GetFacetOk() (string, bool)

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

func (*ApmOrLogQueryGroupBySort) GetOrder Uses

func (a *ApmOrLogQueryGroupBySort) GetOrder() string

GetOrder returns the Order field if non-nil, zero value otherwise.

func (*ApmOrLogQueryGroupBySort) GetOrderOk Uses

func (a *ApmOrLogQueryGroupBySort) GetOrderOk() (string, bool)

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

func (*ApmOrLogQueryGroupBySort) HasAggregation Uses

func (a *ApmOrLogQueryGroupBySort) HasAggregation() bool

HasAggregation returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBySort) HasFacet Uses

func (a *ApmOrLogQueryGroupBySort) HasFacet() bool

HasFacet returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBySort) HasOrder Uses

func (a *ApmOrLogQueryGroupBySort) HasOrder() bool

HasOrder returns a boolean if a field has been set.

func (*ApmOrLogQueryGroupBySort) SetAggregation Uses

func (a *ApmOrLogQueryGroupBySort) SetAggregation(v string)

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

func (*ApmOrLogQueryGroupBySort) SetFacet Uses

func (a *ApmOrLogQueryGroupBySort) SetFacet(v string)

SetFacet allocates a new a.Facet and returns the pointer to it.

func (*ApmOrLogQueryGroupBySort) SetOrder Uses

func (a *ApmOrLogQueryGroupBySort) SetOrder(v string)

SetOrder allocates a new a.Order and returns the pointer to it.

type ApmOrLogQuerySearch Uses

type ApmOrLogQuerySearch struct {
    Query *string `json:"query"`
}

func (*ApmOrLogQuerySearch) GetQuery Uses

func (a *ApmOrLogQuerySearch) GetQuery() string

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

func (*ApmOrLogQuerySearch) GetQueryOk Uses

func (a *ApmOrLogQuerySearch) 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 (*ApmOrLogQuerySearch) HasQuery Uses

func (a *ApmOrLogQuerySearch) HasQuery() bool

HasQuery returns a boolean if a field has been set.

func (*ApmOrLogQuerySearch) SetQuery Uses

func (a *ApmOrLogQuerySearch) SetQuery(v string)

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

type ArithmeticProcessor Uses

type ArithmeticProcessor struct {
    Expression       *string `json:"expression"`
    Target           *string `json:"target"`
    IsReplaceMissing *bool   `json:"is_replace_missing"`
}

ArithmeticProcessor struct represents unique part of arithmetic processor object from config API.

func (*ArithmeticProcessor) GetExpression Uses

func (a *ArithmeticProcessor) GetExpression() string

GetExpression returns the Expression field if non-nil, zero value otherwise.

func (*ArithmeticProcessor) GetExpressionOk Uses

func (a *ArithmeticProcessor) 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 (*ArithmeticProcessor) GetIsReplaceMissing Uses

func (a *ArithmeticProcessor) GetIsReplaceMissing() bool

GetIsReplaceMissing returns the IsReplaceMissing field if non-nil, zero value otherwise.

func (*ArithmeticProcessor) GetIsReplaceMissingOk Uses

func (a *ArithmeticProcessor) GetIsReplaceMissingOk() (bool, bool)

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

func (*ArithmeticProcessor) GetTarget Uses

func (a *ArithmeticProcessor) GetTarget() string

GetTarget returns the Target field if non-nil, zero value otherwise.

func (*ArithmeticProcessor) GetTargetOk Uses

func (a *ArithmeticProcessor) GetTargetOk() (string, bool)

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

func (*ArithmeticProcessor) HasExpression Uses

func (a *ArithmeticProcessor) HasExpression() bool

HasExpression returns a boolean if a field has been set.

func (*ArithmeticProcessor) HasIsReplaceMissing Uses

func (a *ArithmeticProcessor) HasIsReplaceMissing() bool

HasIsReplaceMissing returns a boolean if a field has been set.

func (*ArithmeticProcessor) HasTarget Uses

func (a *ArithmeticProcessor) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (*ArithmeticProcessor) SetExpression Uses

func (a *ArithmeticProcessor) SetExpression(v string)

SetExpression allocates a new a.Expression and returns the pointer to it.

func (*ArithmeticProcessor) SetIsReplaceMissing Uses

func (a *ArithmeticProcessor) SetIsReplaceMissing(v bool)

SetIsReplaceMissing allocates a new a.IsReplaceMissing and returns the pointer to it.

func (*ArithmeticProcessor) SetTarget Uses

func (a *ArithmeticProcessor) SetTarget(v string)

SetTarget allocates a new a.Target and returns the pointer to it.

type AttributeRemapper Uses

type AttributeRemapper struct {
    Sources            []string `json:"sources"`
    SourceType         *string  `json:"source_type"`
    Target             *string  `json:"target"`
    TargetType         *string  `json:"target_type"`
    PreserveSource     *bool    `json:"preserve_source"`
    OverrideOnConflict *bool    `json:"override_on_conflict"`
}

AttributeRemapper struct represents unique part of attribute remapper object from config API.

func (*AttributeRemapper) GetOverrideOnConflict Uses

func (a *AttributeRemapper) GetOverrideOnConflict() bool

GetOverrideOnConflict returns the OverrideOnConflict field if non-nil, zero value otherwise.

func (*AttributeRemapper) GetOverrideOnConflictOk Uses

func (a *AttributeRemapper) GetOverrideOnConflictOk() (bool, bool)

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

func (*AttributeRemapper) GetPreserveSource Uses

func (a *AttributeRemapper) GetPreserveSource() bool

GetPreserveSource returns the PreserveSource field if non-nil, zero value otherwise.

func (*AttributeRemapper) GetPreserveSourceOk Uses

func (a *AttributeRemapper) GetPreserveSourceOk() (bool, bool)

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

func (*AttributeRemapper) GetSourceType Uses

func (a *AttributeRemapper) GetSourceType() string

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

func (*AttributeRemapper) GetSourceTypeOk Uses

func (a *AttributeRemapper) 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 (*AttributeRemapper) GetTarget Uses

func (a *AttributeRemapper) GetTarget() string

GetTarget returns the Target field if non-nil, zero value otherwise.

func (*AttributeRemapper) GetTargetOk Uses

func (a *AttributeRemapper) GetTargetOk() (string, bool)

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

func (*AttributeRemapper) GetTargetType Uses

func (a *AttributeRemapper) GetTargetType() string

GetTargetType returns the TargetType field if non-nil, zero value otherwise.

func (*AttributeRemapper) GetTargetTypeOk Uses

func (a *AttributeRemapper) GetTargetTypeOk() (string, bool)

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

func (*AttributeRemapper) HasOverrideOnConflict Uses

func (a *AttributeRemapper) HasOverrideOnConflict() bool

HasOverrideOnConflict returns a boolean if a field has been set.

func (*AttributeRemapper) HasPreserveSource Uses

func (a *AttributeRemapper) HasPreserveSource() bool

HasPreserveSource returns a boolean if a field has been set.

func (*AttributeRemapper) HasSourceType Uses

func (a *AttributeRemapper) HasSourceType() bool

HasSourceType returns a boolean if a field has been set.

func (*AttributeRemapper) HasTarget Uses

func (a *AttributeRemapper) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (*AttributeRemapper) HasTargetType Uses

func (a *AttributeRemapper) HasTargetType() bool

HasTargetType returns a boolean if a field has been set.

func (*AttributeRemapper) SetOverrideOnConflict Uses

func (a *AttributeRemapper) SetOverrideOnConflict(v bool)

SetOverrideOnConflict allocates a new a.OverrideOnConflict and returns the pointer to it.

func (*AttributeRemapper) SetPreserveSource Uses

func (a *AttributeRemapper) SetPreserveSource(v bool)

SetPreserveSource allocates a new a.PreserveSource and returns the pointer to it.

func (*AttributeRemapper) SetSourceType Uses

func (a *AttributeRemapper) SetSourceType(v string)

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

func (*AttributeRemapper) SetTarget Uses

func (a *AttributeRemapper) SetTarget(v string)

SetTarget allocates a new a.Target and returns the pointer to it.

func (*AttributeRemapper) SetTargetType Uses

func (a *AttributeRemapper) SetTargetType(v string)

SetTargetType allocates a new a.TargetType and returns the pointer to it.

type Board Uses

type Board struct {
    Title                   *string                  `json:"title"`
    Widgets                 []BoardWidget            `json:"widgets"`
    LayoutType              *string                  `json:"layout_type"`
    Id                      *string                  `json:"id,omitempty"`
    Description             *string                  `json:"description,omitempty"`
    TemplateVariables       []TemplateVariable       `json:"template_variables,omitempty"`
    TemplateVariablePresets []TemplateVariablePreset `json:"template_variable_presets,omitempty"`
    IsReadOnly              *bool                    `json:"is_read_only,omitempty"`
    NotifyList              []string                 `json:"notify_list,omitempty"`
    AuthorHandle            *string                  `json:"author_handle,omitempty"`
    Url                     *string                  `json:"url,omitempty"`
    CreatedAt               *string                  `json:"created_at,omitempty"`
    ModifiedAt              *string                  `json:"modified_at,omitempty"`
}

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

func (*Board) GetAuthorHandle Uses

func (b *Board) GetAuthorHandle() string

GetAuthorHandle returns the AuthorHandle field if non-nil, zero value otherwise.

func (*Board) GetAuthorHandleOk Uses

func (b *Board) GetAuthorHandleOk() (string, bool)

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

func (*Board) GetCreatedAt Uses

func (b *Board) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

func (*Board) GetCreatedAtOk Uses

func (b *Board) GetCreatedAtOk() (string, bool)

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

func (*Board) GetDescription Uses

func (b *Board) GetDescription() string

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

func (*Board) GetDescriptionOk Uses

func (b *Board) 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 (*Board) GetId Uses

func (b *Board) GetId() string

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

func (*Board) GetIdOk Uses

func (b *Board) GetIdOk() (string, 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 (*Board) GetIsReadOnly Uses

func (b *Board) GetIsReadOnly() bool

GetIsReadOnly returns the IsReadOnly field if non-nil, zero value otherwise.

func (*Board) GetIsReadOnlyOk Uses

func (b *Board) GetIsReadOnlyOk() (bool, bool)

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

func (*Board) GetLayoutType Uses

func (b *Board) GetLayoutType() string

GetLayoutType returns the LayoutType field if non-nil, zero value otherwise.

func (*Board) GetLayoutTypeOk Uses

func (b *Board) GetLayoutTypeOk() (string, bool)

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

func (*Board) GetModifiedAt Uses

func (b *Board) GetModifiedAt() string

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

func (*Board) GetModifiedAtOk Uses

func (b *Board) GetModifiedAtOk() (string, bool)

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

func (*Board) GetTitle Uses

func (b *Board) GetTitle() string

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

func (*Board) GetTitleOk Uses

func (b *Board) 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 (*Board) GetUrl Uses

func (b *Board) GetUrl() string

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

func (*Board) GetUrlOk Uses

func (b *Board) 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 (*Board) HasAuthorHandle Uses

func (b *Board) HasAuthorHandle() bool

HasAuthorHandle returns a boolean if a field has been set.

func (*Board) HasCreatedAt Uses

func (b *Board) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Board) HasDescription Uses

func (b *Board) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Board) HasId Uses

func (b *Board) HasId() bool

HasId returns a boolean if a field has been set.

func (*Board) HasIsReadOnly Uses

func (b *Board) HasIsReadOnly() bool

HasIsReadOnly returns a boolean if a field has been set.

func (*Board) HasLayoutType Uses

func (b *Board) HasLayoutType() bool

HasLayoutType returns a boolean if a field has been set.

func (*Board) HasModifiedAt Uses

func (b *Board) HasModifiedAt() bool

HasModifiedAt returns a boolean if a field has been set.

func (*Board) HasTitle Uses

func (b *Board) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Board) HasUrl Uses

func (b *Board) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*Board) SetAuthorHandle Uses

func (b *Board) SetAuthorHandle(v string)

SetAuthorHandle allocates a new b.AuthorHandle and returns the pointer to it.

func (*Board) SetCreatedAt Uses

func (b *Board) SetCreatedAt(v string)

SetCreatedAt allocates a new b.CreatedAt and returns the pointer to it.

func (*Board) SetDescription Uses

func (b *Board) SetDescription(v string)

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

func (*Board) SetId Uses

func (b *Board) SetId(v string)

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

func (*Board) SetIsReadOnly Uses

func (b *Board) SetIsReadOnly(v bool)

SetIsReadOnly allocates a new b.IsReadOnly and returns the pointer to it.

func (*Board) SetLayoutType Uses

func (b *Board) SetLayoutType(v string)

SetLayoutType allocates a new b.LayoutType and returns the pointer to it.

func (*Board) SetModifiedAt Uses

func (b *Board) SetModifiedAt(v string)

SetModifiedAt allocates a new b.ModifiedAt and returns the pointer to it.

func (*Board) SetTitle Uses

func (b *Board) SetTitle(v string)

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

func (*Board) SetUrl Uses

func (b *Board) SetUrl(v string)

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

type BoardLite Uses

type BoardLite struct {
    Title        *string `json:"title,omitempty"`
    Description  *string `json:"description,omitempty"`
    LayoutType   *string `json:"layout_type,omitempty"`
    Id           *string `json:"id,omitempty"`
    Url          *string `json:"url,omitempty"`
    AuthorHandle *string `json:"author_handle,omitempty"`
    IsReadOnly   *bool   `json:"is_read_only,omitempty"`
    CreatedAt    *string `json:"created_at,omitempty"`
    ModifiedAt   *string `json:"modified_at,omitempty"`
}

BoardLite represents a simplify dashboard (without widgets, notify list, ...) It's used when we load all boards.

func (*BoardLite) GetAuthorHandle Uses

func (b *BoardLite) GetAuthorHandle() string

GetAuthorHandle returns the AuthorHandle field if non-nil, zero value otherwise.

func (*BoardLite) GetAuthorHandleOk Uses

func (b *BoardLite) GetAuthorHandleOk() (string, bool)

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

func (*BoardLite) GetCreatedAt Uses

func (b *BoardLite) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

func (*BoardLite) GetCreatedAtOk Uses

func (b *BoardLite) GetCreatedAtOk() (string, bool)

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

func (*BoardLite) GetDescription Uses

func (b *BoardLite) GetDescription() string

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

func (*BoardLite) GetDescriptionOk Uses

func (b *BoardLite) 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 (*BoardLite) GetId Uses

func (b *BoardLite) GetId() string

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

func (*BoardLite) GetIdOk Uses

func (b *BoardLite) GetIdOk() (string, 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 (*BoardLite) GetIsReadOnly Uses

func (b *BoardLite) GetIsReadOnly() bool

GetIsReadOnly returns the IsReadOnly field if non-nil, zero value otherwise.

func (*BoardLite) GetIsReadOnlyOk Uses

func (b *BoardLite) GetIsReadOnlyOk() (bool, bool)

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

func (*BoardLite) GetLayoutType Uses

func (b *BoardLite) GetLayoutType() string

GetLayoutType returns the LayoutType field if non-nil, zero value otherwise.

func (*BoardLite) GetLayoutTypeOk Uses

func (b *BoardLite) GetLayoutTypeOk() (string, bool)

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

func (*BoardLite) GetModifiedAt Uses

func (b *BoardLite) GetModifiedAt() string

GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise.

func (*BoardLite) GetModifiedAtOk Uses

func (b *BoardLite) GetModifiedAtOk() (string, bool)

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

func (*BoardLite) GetTitle Uses

func (b *BoardLite) GetTitle() string

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

func (*BoardLite) GetTitleOk Uses

func (b *BoardLite) 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 (*BoardLite) GetUrl Uses

func (b *BoardLite) GetUrl() string

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

func (*BoardLite) GetUrlOk Uses

func (b *BoardLite) 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 (*BoardLite) HasAuthorHandle Uses

func (b *BoardLite) HasAuthorHandle() bool

HasAuthorHandle returns a boolean if a field has been set.

func (*BoardLite) HasCreatedAt Uses

func (b *BoardLite) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*BoardLite) HasDescription Uses

func (b *BoardLite) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*BoardLite) HasId Uses

func (b *BoardLite) HasId() bool

HasId returns a boolean if a field has been set.

func (*BoardLite) HasIsReadOnly Uses

func (b *BoardLite) HasIsReadOnly() bool

HasIsReadOnly returns a boolean if a field has been set.

func (*BoardLite) HasLayoutType Uses

func (b *BoardLite) HasLayoutType() bool

HasLayoutType returns a boolean if a field has been set.

func (*BoardLite) HasModifiedAt Uses

func (b *BoardLite) HasModifiedAt() bool

HasModifiedAt returns a boolean if a field has been set.

func (*BoardLite) HasTitle Uses

func (b *BoardLite) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*BoardLite) HasUrl Uses

func (b *BoardLite) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*BoardLite) SetAuthorHandle Uses

func (b *BoardLite) SetAuthorHandle(v string)

SetAuthorHandle allocates a new b.AuthorHandle and returns the pointer to it.

func (*BoardLite) SetCreatedAt Uses

func (b *BoardLite) SetCreatedAt(v string)

SetCreatedAt allocates a new b.CreatedAt and returns the pointer to it.

func (*BoardLite) SetDescription Uses

func (b *BoardLite) SetDescription(v string)

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

func (*BoardLite) SetId Uses

func (b *BoardLite) SetId(v string)

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

func (*BoardLite) SetIsReadOnly Uses

func (b *BoardLite) SetIsReadOnly(v bool)

SetIsReadOnly allocates a new b.IsReadOnly and returns the pointer to it.

func (*BoardLite) SetLayoutType Uses

func (b *BoardLite) SetLayoutType(v string)

SetLayoutType allocates a new b.LayoutType and returns the pointer to it.

func (*BoardLite) SetModifiedAt Uses

func (b *BoardLite) SetModifiedAt(v string)

SetModifiedAt allocates a new b.ModifiedAt and returns the pointer to it.

func (*BoardLite) SetTitle Uses

func (b *BoardLite) SetTitle(v string)

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

func (*BoardLite) SetUrl Uses

func (b *BoardLite) SetUrl(v string)

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

type BoardWidget Uses

type BoardWidget struct {
    Definition interface{}   `json:"definition"`
    Id         *int64        `json:"id,omitempty"`
    Layout     *WidgetLayout `json:"layout,omitempty"`
}

BoardWidget represents the structure of any widget. However, the widget Definition structure is different according to widget type.

func (*BoardWidget) GetId Uses

func (b *BoardWidget) GetId() int64

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

func (*BoardWidget) GetIdOk Uses

func (b *BoardWidget) GetIdOk() (int64, 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 (*BoardWidget) GetLayout Uses

func (b *BoardWidget) GetLayout() WidgetLayout

GetLayout returns the Layout field if non-nil, zero value otherwise.

func (*BoardWidget) GetLayoutOk Uses

func (b *BoardWidget) GetLayoutOk() (WidgetLayout, bool)

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

func (*BoardWidget) GetWidgetType Uses

func (widget *BoardWidget) GetWidgetType() (string, error)

func (*BoardWidget) HasId Uses

func (b *BoardWidget) HasId() bool

HasId returns a boolean if a field has been set.

func (*BoardWidget) HasLayout Uses

func (b *BoardWidget) HasLayout() bool

HasLayout returns a boolean if a field has been set.

func (*BoardWidget) SetId Uses

func (b *BoardWidget) SetId(v int64)

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

func (*BoardWidget) SetLayout Uses

func (b *BoardWidget) SetLayout(v WidgetLayout)

SetLayout allocates a new b.Layout and returns the pointer to it.

func (*BoardWidget) UnmarshalJSON Uses

func (widget *BoardWidget) UnmarshalJSON(data []byte) error

UnmarshalJSON is a Custom Unmarshal for BoardWidget. If first tries to unmarshal the data in a light struct that allows to get the widget type. Then based on the widget type, it will try to unmarshal the data using the corresponding widget struct.

type Category Uses

type Category struct {
    Name   *string              `json:"name"`
    Filter *FilterConfiguration `json:"filter"`
}

Category represents category object from config API.

func (*Category) GetFilter Uses

func (c *Category) GetFilter() FilterConfiguration

GetFilter returns the Filter field if non-nil, zero value otherwise.

func (*Category) GetFilterOk Uses

func (c *Category) GetFilterOk() (FilterConfiguration, bool)

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

func (*Category) GetName Uses

func (c *Category) GetName() string

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

func (*Category) GetNameOk Uses

func (c *Category) 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 (*Category) HasFilter Uses

func (c *Category) HasFilter() bool

HasFilter returns a boolean if a field has been set.

func (*Category) HasName Uses

func (c *Category) HasName() bool

HasName returns a boolean if a field has been set.

func (*Category) SetFilter Uses

func (c *Category) SetFilter(v FilterConfiguration)

SetFilter allocates a new c.Filter and returns the pointer to it.

func (*Category) SetName Uses

func (c *Category) SetName(v string)

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

type CategoryProcessor Uses

type CategoryProcessor struct {
    Target     *string    `json:"target"`
    Categories []Category `json:"categories"`
}

CategoryProcessor struct represents unique part of category processor object from config API.

func (*CategoryProcessor) GetTarget Uses

func (c *CategoryProcessor) GetTarget() string

GetTarget returns the Target field if non-nil, zero value otherwise.

func (*CategoryProcessor) GetTargetOk Uses

func (c *CategoryProcessor) GetTargetOk() (string, bool)

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

func (*CategoryProcessor) HasTarget Uses

func (c *CategoryProcessor) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (*CategoryProcessor) SetTarget Uses

func (c *CategoryProcessor) SetTarget(v string)

SetTarget allocates a new c.Target and returns the pointer to it.

type ChangeDefinition Uses

type ChangeDefinition struct {
    Type       *string         `json:"type"`
    Requests   []ChangeRequest `json:"requests"`
    Title      *string         `json:"title,omitempty"`
    TitleSize  *string         `json:"title_size,omitempty"`
    TitleAlign *string         `json:"title_align,omitempty"`
    Time       *WidgetTime     `json:"time,omitempty"`
}

ChangeDefinition represents the definition for a Change widget

func (*ChangeDefinition) GetTime Uses

func (c *ChangeDefinition) GetTime() WidgetTime

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

func (*ChangeDefinition) GetTimeOk Uses

func (c *ChangeDefinition) GetTimeOk() (WidgetTime, 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 (*ChangeDefinition) GetTitle Uses

func (c *ChangeDefinition) GetTitle() string

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

func (*ChangeDefinition) GetTitleAlign Uses

func (c *ChangeDefinition) GetTitleAlign() string

GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.

func (*ChangeDefinition) GetTitleAlignOk Uses

func (c *ChangeDefinition) 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 (*ChangeDefinition) GetTitleOk Uses

func (c *ChangeDefinition) 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 (*ChangeDefinition) GetTitleSize Uses

func (c *ChangeDefinition) GetTitleSize() string

GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.

func (*ChangeDefinition) GetTitleSizeOk Uses

func (c *ChangeDefinition) GetTitleSizeOk() (string, 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 (*ChangeDefinition) GetType Uses

func (c *ChangeDefinition) GetType() string

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

func (*ChangeDefinition) GetTypeOk Uses

func (c *ChangeDefinition) 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 (*ChangeDefinition) HasTime Uses

func (c *ChangeDefinition) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*ChangeDefinition) HasTitle Uses

func (c *ChangeDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ChangeDefinition) HasTitleAlign Uses

func (c *ChangeDefinition) HasTitleAlign() bool

HasTitleAlign returns a boolean if a field has been set.

func (*ChangeDefinition) HasTitleSize Uses

func (c *ChangeDefinition) HasTitleSize() bool

HasTitleSize returns a boolean if a field has been set.

func (*ChangeDefinition) HasType Uses

func (c *ChangeDefinition) HasType() bool

HasType returns a boolean if a field has been set.

func (*ChangeDefinition) SetTime Uses

func (c *ChangeDefinition) SetTime(v WidgetTime)

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

func (*ChangeDefinition) SetTitle Uses

func (c *ChangeDefinition) SetTitle(v string)

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

func (*ChangeDefinition) SetTitleAlign Uses

func (c *ChangeDefinition) SetTitleAlign(v string)

SetTitleAlign allocates a new c.TitleAlign and returns the pointer to it.

func (*ChangeDefinition) SetTitleSize Uses

func (c *ChangeDefinition) SetTitleSize(v string)

SetTitleSize allocates a new c.TitleSize and returns the pointer to it.

func (*ChangeDefinition) SetType Uses

func (c *ChangeDefinition) SetType(v string)

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

type ChangeRequest Uses

type ChangeRequest struct {
    ChangeType   *string `json:"change_type,omitempty"`
    CompareTo    *string `json:"compare_to,omitempty"`
    IncreaseGood *bool   `json:"increase_good,omitempty"`
    OrderBy      *string `json:"order_by,omitempty"`
    OrderDir     *string `json:"order_dir,omitempty"`
    ShowPresent  *bool   `json:"show_present,omitempty"`
    // A ChangeRequest should implement exactly one of the following query types
    MetricQuery   *string              `json:"q,omitempty"`
    ApmQuery      *WidgetApmOrLogQuery `json:"apm_query,omitempty"`
    LogQuery      *WidgetApmOrLogQuery `json:"log_query,omitempty"`
    ProcessQuery  *WidgetProcessQuery  `json:"process_query,omitempty"`
    RumQuery      *WidgetApmOrLogQuery `json:"rum_query,omitempty"`
    SecurityQuery *WidgetApmOrLogQuery `json:"security_query,omitempty"`
}

func (*ChangeRequest) GetApmQuery Uses

func (c *ChangeRequest) GetApmQuery() WidgetApmOrLogQuery

GetApmQuery returns the ApmQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetApmQueryOk Uses

func (c *ChangeRequest) GetApmQueryOk() (WidgetApmOrLogQuery, bool)

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

func (*ChangeRequest) GetChangeType Uses

func (c *ChangeRequest) GetChangeType() string

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

func (*ChangeRequest) GetChangeTypeOk Uses

func (c *ChangeRequest) 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 (*ChangeRequest) GetCompareTo Uses

func (c *ChangeRequest) GetCompareTo() string

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

func (*ChangeRequest) GetCompareToOk Uses

func (c *ChangeRequest) 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 (*ChangeRequest) GetIncreaseGood Uses

func (c *ChangeRequest) GetIncreaseGood() bool

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

func (*ChangeRequest) GetIncreaseGoodOk Uses

func (c *ChangeRequest) 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 (*ChangeRequest) GetLogQuery Uses

func (c *ChangeRequest) GetLogQuery() WidgetApmOrLogQuery

GetLogQuery returns the LogQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetLogQueryOk Uses

func (c *ChangeRequest) GetLogQueryOk() (WidgetApmOrLogQuery, bool)

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

func (*ChangeRequest) GetMetricQuery Uses

func (c *ChangeRequest) GetMetricQuery() string

GetMetricQuery returns the MetricQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetMetricQueryOk Uses

func (c *ChangeRequest) GetMetricQueryOk() (string, bool)

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

func (*ChangeRequest) GetOrderBy Uses

func (c *ChangeRequest) GetOrderBy() string

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

func (*ChangeRequest) GetOrderByOk Uses

func (c *ChangeRequest) 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 (*ChangeRequest) GetOrderDir Uses

func (c *ChangeRequest) GetOrderDir() string

GetOrderDir returns the OrderDir field if non-nil, zero value otherwise.

func (*ChangeRequest) GetOrderDirOk Uses

func (c *ChangeRequest) 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 (*ChangeRequest) GetProcessQuery Uses

func (c *ChangeRequest) GetProcessQuery() WidgetProcessQuery

GetProcessQuery returns the ProcessQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetProcessQueryOk Uses

func (c *ChangeRequest) GetProcessQueryOk() (WidgetProcessQuery, bool)

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

func (*ChangeRequest) GetRumQuery Uses

func (c *ChangeRequest) GetRumQuery() WidgetApmOrLogQuery

GetRumQuery returns the RumQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetRumQueryOk Uses

func (c *ChangeRequest) GetRumQueryOk() (WidgetApmOrLogQuery, bool)

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

func (*ChangeRequest) GetSecurityQuery Uses

func (c *ChangeRequest) GetSecurityQuery() WidgetApmOrLogQuery

GetSecurityQuery returns the SecurityQuery field if non-nil, zero value otherwise.

func (*ChangeRequest) GetSecurityQueryOk Uses

func (c *ChangeRequest) GetSecurityQueryOk() (WidgetApmOrLogQuery, bool)

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

func (*ChangeRequest) GetShowPresent Uses

func (c *ChangeRequest) GetShowPresent() bool

GetShowPresent returns the ShowPresent field if non-nil, zero value otherwise.

func (*ChangeRequest) GetShowPresentOk Uses

func (c *ChangeRequest) GetShowPresentOk() (bool, bool)

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

func (*ChangeRequest) HasApmQuery Uses

func (c *ChangeRequest) HasApmQuery() bool

HasApmQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasChangeType Uses

func (c *ChangeRequest) HasChangeType() bool

HasChangeType returns a boolean if a field has been set.

func (*ChangeRequest) HasCompareTo Uses

func (c *ChangeRequest) HasCompareTo() bool

HasCompareTo returns a boolean if a field has been set.

func (*ChangeRequest) HasIncreaseGood Uses

func (c *ChangeRequest) HasIncreaseGood() bool

HasIncreaseGood returns a boolean if a field has been set.

func (*ChangeRequest) HasLogQuery Uses

func (c *ChangeRequest) HasLogQuery() bool

HasLogQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasMetricQuery Uses

func (c *ChangeRequest) HasMetricQuery() bool

HasMetricQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasOrderBy Uses

func (c *ChangeRequest) HasOrderBy() bool

HasOrderBy returns a boolean if a field has been set.

func (*ChangeRequest) HasOrderDir Uses

func (c *ChangeRequest) HasOrderDir() bool

HasOrderDir returns a boolean if a field has been set.

func (*ChangeRequest) HasProcessQuery Uses

func (c *ChangeRequest) HasProcessQuery() bool

HasProcessQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasRumQuery Uses

func (c *ChangeRequest) HasRumQuery() bool

HasRumQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasSecurityQuery Uses

func (c *ChangeRequest) HasSecurityQuery() bool

HasSecurityQuery returns a boolean if a field has been set.

func (*ChangeRequest) HasShowPresent Uses

func (c *ChangeRequest) HasShowPresent() bool

HasShowPresent returns a boolean if a field has been set.

func (*ChangeRequest) SetApmQuery Uses

func (c *ChangeRequest) SetApmQuery(v WidgetApmOrLogQuery)

SetApmQuery allocates a new c.ApmQuery and returns the pointer to it.

func (*ChangeRequest) SetChangeType Uses

func (c *ChangeRequest) SetChangeType(v string)

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

func (*ChangeRequest) SetCompareTo Uses

func (c *ChangeRequest) SetCompareTo(v string)

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

func (*ChangeRequest) SetIncreaseGood Uses

func (c *ChangeRequest) SetIncreaseGood(v bool)

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

func (*ChangeRequest) SetLogQuery Uses

func (c *ChangeRequest) SetLogQuery(v WidgetApmOrLogQuery)

SetLogQuery allocates a new c.LogQuery and returns the pointer to it.

func (*ChangeRequest) SetMetricQuery Uses

func (c *ChangeRequest) SetMetricQuery(v string)

SetMetricQuery allocates a new c.MetricQuery and returns the pointer to it.

func (*ChangeRequest) SetOrderBy Uses

func (c *ChangeRequest) SetOrderBy(v string)

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

func (*ChangeRequest) SetOrderDir Uses

func (c *ChangeRequest) SetOrderDir(v string)

SetOrderDir allocates a new c.OrderDir and returns the pointer to it.

func (*ChangeRequest) SetProcessQuery Uses

func (c *ChangeRequest) SetProcessQuery(v WidgetProcessQuery)

SetProcessQuery allocates a new c.ProcessQuery and returns the pointer to it.

func (*ChangeRequest) SetRumQuery Uses

func (c *ChangeRequest) SetRumQuery(v WidgetApmOrLogQuery)

SetRumQuery allocates a new c.RumQuery and returns the pointer to it.

func (*ChangeRequest) SetSecurityQuery Uses

func (c *ChangeRequest) SetSecurityQuery(v WidgetApmOrLogQuery)

SetSecurityQuery allocates a new c.SecurityQuery and returns the pointer to it.

func (*ChangeRequest) SetShowPresent Uses

func (c *ChangeRequest) SetShowPresent(v bool)

SetShowPresent allocates a new c.ShowPresent and returns the pointer to it.

type ChannelSlackRequest Uses

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 Uses

func (c *ChannelSlackRequest) GetAccount() string

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

func (*ChannelSlackRequest) GetAccountOk Uses

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 Uses

func (c *ChannelSlackRequest) GetChannelName() string

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

func (*ChannelSlackRequest) GetChannelNameOk Uses

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 Uses

func (c *ChannelSlackRequest) GetTransferAllUserComments() bool

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

func (*ChannelSlackRequest) GetTransferAllUserCommentsOk Uses

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 Uses

func (c *ChannelSlackRequest) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ChannelSlackRequest) HasChannelName Uses

func (c *ChannelSlackRequest) HasChannelName() bool

HasChannelName returns a boolean if a field has been set.

func (*ChannelSlackRequest) HasTransferAllUserComments Uses

func (c *ChannelSlackRequest) HasTransferAllUserComments() bool

HasTransferAllUserComments returns a boolean if a field has been set.

func (*ChannelSlackRequest) SetAccount Uses

func (c *ChannelSlackRequest) SetAccount(v string)

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

func (*ChannelSlackRequest) SetChannelName Uses

func (c *ChannelSlackRequest) SetChannelName(v string)

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

func (*ChannelSlackRequest) SetTransferAllUserComments Uses

func (c *ChannelSlackRequest) SetTransferAllUserComments(v bool)

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

type Check Uses

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 Uses

func (c *Check) GetCheck() string

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

func (*Check) GetCheckOk Uses

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 Uses

func (c *Check) GetHostName() string

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

func (*Check) GetHostNameOk Uses

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 Uses

func (c *Check) GetMessage() string

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

func (*Check) GetMessageOk Uses

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 Uses

func (c *Check) GetStatus() Status

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

func (*Check) GetStatusOk Uses

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 Uses

func (c *Check) GetTimestamp() string

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

func (*Check) GetTimestampOk Uses

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 Uses

func (c *Check) HasCheck() bool

HasCheck returns a boolean if a field has been set.

func (*Check) HasHostName Uses

func (c *Check) HasHostName() bool

HasHostName returns a boolean if a field has been set.

func (*Check) HasMessage Uses

func (c *Check) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Check) HasStatus Uses

func (c *Check) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Check) HasTimestamp Uses

func (c *Check) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (*Check) SetCheck Uses

func (c *Check) SetCheck(v string)

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

func (*Check) SetHostName Uses

func (c *Check) SetHostName(v string)

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

func (*Check) SetMessage Uses

func (c *Check) SetMessage(v string)

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

func (*Check) SetStatus Uses

func (c *Check) SetStatus(v Status)

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

func (*Check) SetTimestamp Uses

func (c *Check) SetTimestamp(v string)

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

type CheckStatusDefinition Uses

type CheckStatusDefinition struct {
    Type       *string     `json:"type"`
    Check      *string     `json:"check"`
    Grouping   *string     `json:"grouping"`
    Group      *string     `json:"group,omitempty"`
    GroupBy    []string    `json:"group_by,omitempty"`
    Tags       []string    `json:"tags,omitempty"`
    Title      *string     `json:"title,omitempty"`
    TitleSize  *string     `json:"title_size,omitempty"`
    TitleAlign *string     `json:"title_align,omitempty"`
    Time       *WidgetTime `json:"time,omitempty"`
}

CheckStatusDefinition represents the definition for a Check Status widget

func (*CheckStatusDefinition) GetCheck Uses

func (c *CheckStatusDefinition) GetCheck() string

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

func (*CheckStatusDefinition) GetCheckOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) GetGroup Uses

func (c *CheckStatusDefinition) GetGroup() string

GetGroup returns the Group field if non-nil, zero value otherwise.

func (*CheckStatusDefinition) GetGroupOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) GetGrouping Uses

func (c *CheckStatusDefinition) GetGrouping() string

GetGrouping returns the Grouping field if non-nil, zero value otherwise.

func (*CheckStatusDefinition) GetGroupingOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) GetTime Uses

func (c *CheckStatusDefinition) GetTime() WidgetTime

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

func (*CheckStatusDefinition) GetTimeOk Uses

func (c *CheckStatusDefinition) GetTimeOk() (WidgetTime, 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 (*CheckStatusDefinition) GetTitle Uses

func (c *CheckStatusDefinition) GetTitle() string

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

func (*CheckStatusDefinition) GetTitleAlign Uses

func (c *CheckStatusDefinition) GetTitleAlign() string

GetTitleAlign returns the TitleAlign field if non-nil, zero value otherwise.

func (*CheckStatusDefinition) GetTitleAlignOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) GetTitleOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) GetTitleSize Uses

func (c *CheckStatusDefinition) GetTitleSize() string

GetTitleSize returns the TitleSize field if non-nil, zero value otherwise.

func (*CheckStatusDefinition) GetTitleSizeOk Uses

func (c *CheckStatusDefinition) GetTitleSizeOk() (string, 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 (*CheckStatusDefinition) GetType Uses

func (c *CheckStatusDefinition) GetType() string

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

func (*CheckStatusDefinition) GetTypeOk Uses

func (c *CheckStatusDefinition) 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 (*CheckStatusDefinition) HasCheck Uses

func (c *CheckStatusDefinition) HasCheck() bool

HasCheck returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasGroup Uses

func (c *CheckStatusDefinition) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasGrouping Uses

func (c *CheckStatusDefinition) HasGrouping() bool

HasGrouping returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasTime Uses

func (c *CheckStatusDefinition) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasTitle Uses

func (c *CheckStatusDefinition) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasTitleAlign Uses

func (c *CheckStatusDefinition) HasTitleAlign() bool

HasTitleAlign returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasTitleSize Uses

func (c *CheckStatusDefinition) HasTitleSize() bool

HasTitleSize returns a boolean if a field has been set.

func (*CheckStatusDefinition) HasType Uses

func (c *CheckStatusDefinition) HasType() bool

HasType returns a boolean if a field has been set.

func (*CheckStatusDefinition) SetCheck Uses

func (c *CheckStatusDefinition) SetCheck(v string)

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

func (*CheckStatusDefinition) SetGroup Uses

func (c *CheckStatusDefinition) SetGroup(v string)

SetGroup allocates a new c.Group and returns the pointer to it.

func (*CheckStatusDefinition) SetGrouping Uses

func (c *CheckStatusDefinition) SetGrouping(v string)

SetGrouping allocates a new c.Grouping and returns the pointer to it.

func (*CheckStatusDefinition) SetTime Uses

func (c *CheckStatusDefinition) SetTime(v WidgetTime)

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

func (*CheckStatusDefinition) SetTitle Uses

func (c *CheckStatusDefinition) SetTitle(v string)

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

func (*CheckStatusDefinition) SetTitleAlign Uses

func (c *CheckStatusDefinition) SetTitleAlign(v string)

SetTitleAlign allocates a new c.TitleAlign and returns the pointer to it.

func (*CheckStatusDefinition) SetTitleSize Uses

func (c *CheckStatusDefinition) SetTitleSize(v string)

SetTitleSize allocates a new c.TitleSize and returns the pointer to it.

func (*CheckStatusDefinition) SetType Uses

func (c *CheckStatusDefinition) SetType(v string)

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

type Client Uses

type Client struct {

    //The Http Client that is used to make requests
    HttpClient   *http.Client
    RetryTimeout time.Duration

    //Option to specify extra headers like User-Agent
    ExtraHeader map[string]string
    // 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 Uses

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 Uses

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) AddDashboardListItemsV2 Uses

func (client *Client) AddDashboardListItemsV2(dashboardListID int, items []DashboardListItemV2) ([]DashboardListItemV2, error)

AddDashboardListItemsV2 adds dashboards to an existing dashboard list.

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

func (*Client) AddTagsToHost Uses

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) AttachLambdaARNIntegrationAWS Uses

func (client *Client) AttachLambdaARNIntegrationAWS(lambdaARN *IntegrationAWSLambdaARNRequest) error

AttachLambdaARNIntegrationAWS attach a lambda ARN to an AWS account ID to enable log collection

func (*Client) CheckCanDeleteServiceLevelObjectives Uses

func (client *Client) CheckCanDeleteServiceLevelObjectives(ids []string) (*ServiceLevelObjectivesCanDeleteResponse, error)

CheckCanDeleteServiceLevelObjectives checks if the SLO is referenced within Datadog. This is useful to prevent accidental deletion.

func (*Client) CreateAPIKey Uses

func (client *Client) CreateAPIKey(name string) (*APIKey, error)

CreateAPIKey creates an API key from given struct and fills the rest of its fields, or returns an error on failure

func (*Client) CreateAPPKey Uses

func (client *Client) CreateAPPKey(name string) (*APPKey, error)

CreateAPPKey creates an APP key from given name and fills the rest of its fields, or returns an error on failure

func (*Client) CreateAlert Uses

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) CreateBoard Uses

func (client *Client) CreateBoard(board *Board) (*Board, error)

CreateBoard creates a new dashboard when given a Board struct.

func (*Client) CreateComment Uses

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

CreateComment adds a new comment to the system.

func (*Client) CreateDashboard Uses

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 Uses

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

CreateDashboardList returns a single dashboard list created on this account.

func (*Client) CreateDowntime Uses

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 Uses

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 Uses

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

CreateIntegrationGCP creates a new Google Cloud Platform Integration.

func (*Client) CreateIntegrationPD Uses

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) CreateIntegrationPDService Uses

func (client *Client) CreateIntegrationPDService(serviceObject *ServicePDRequest) error

CreateIntegrationPDService creates a single service object in the PagerDuty integration Note that creating a service object requires the integration to be activated

func (*Client) CreateIntegrationSlack Uses

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) CreateIntegrationWebhook Uses

func (client *Client) CreateIntegrationWebhook(webhookIntegration *IntegrationWebhookRequest) error

CreateIntegrationWebhook creates new webhook integration object(s).

func (*Client) CreateLogsPipeline Uses

func (client *Client) CreateLogsPipeline(pipeline *LogsPipeline) (*LogsPipeline, error)

CreateLogsPipeline sends pipeline creation request to Config API

func (*Client) CreateMonitor Uses

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 Uses

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 Uses

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) CreateServiceLevelObjective Uses

func (client *Client) CreateServiceLevelObjective(slo *ServiceLevelObjective) (*ServiceLevelObjective, error)

CreateServiceLevelObjective adds a new service level objective to the system. This returns a pointer to the service level objective so you can pass that to UpdateServiceLevelObjective or DeleteServiceLevelObjective later if needed.

func (*Client) CreateSyntheticsTest Uses

func (client *Client) CreateSyntheticsTest(syntheticsTest *SyntheticsTest) (*SyntheticsTest, error)

CreateSyntheticsTest creates a test

func (*Client) CreateUser Uses

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

CreateUser creates an user account for an email address

func (*Client) DeleteAPIKey Uses

func (client *Client) DeleteAPIKey(key string) error

DeleteAPIKey deletes API key given by key, returns an error

func (*Client) DeleteAPPKey Uses

func (client *Client) DeleteAPPKey(hash string) error

DeleteAPPKey deletes APP key given by hash, returns an error

func (*Client) DeleteAWSLogCollection Uses

func (client *Client) DeleteAWSLogCollection(lambdaARN *IntegrationAWSLambdaARNRequest) error

DeleteAWSLogCollection removes the log collection configuration for a given ARN and AWS account

func (*Client) DeleteAlert Uses

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

DeleteAlert removes an alert from the system.

func (*Client) DeleteBoard Uses

func (client *Client) DeleteBoard(id string) error

DeleteBoard deletes a dashboard by the identifier.

func (*Client) DeleteComment Uses

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

DeleteComment does exactly what you expect.

func (*Client) DeleteDashboard Uses

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

DeleteDashboard deletes a dashboard by the identifier.

func (*Client) DeleteDashboardList Uses

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

DeleteDashboardList deletes a dashboard list by the identifier.

func (*Client) DeleteDashboardListItems Uses

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) DeleteDashboardListItemsV2 Uses

func (client *Client) DeleteDashboardListItemsV2(dashboardListID int, items []DashboardListItemV2) ([]DashboardListItemV2, error)

DeleteDashboardListItemsV2 deletes dashboards from an existing dashboard list.

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

func (*Client) DeleteDowntime Uses

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

DeleteDowntime removes an downtime from the system.

func (*Client) DeleteIntegrationAWS Uses

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

DeleteIntegrationAWS removes a specific AWS Account from the AWS Integration.

func (*Client) DeleteIntegrationGCP Uses

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

DeleteIntegrationGCP deletes a Google Cloud Platform Integration.

func (*Client) DeleteIntegrationPD Uses

func (client *Client) DeleteIntegrationPD() error

DeleteIntegrationPD removes the PagerDuty Integration from the system.

func (*Client) DeleteIntegrationPDService Uses

func (client *Client) DeleteIntegrationPDService(serviceName string) error

DeleteIntegrationPDService deletes a single service object in the PagerDuty integration

func (*Client) DeleteIntegrationSlack Uses

func (client *Client) DeleteIntegrationSlack() error

DeleteIntegrationSlack removes the Slack Integration from the system.

func (*Client) DeleteIntegrationWebhook Uses

func (client *Client) DeleteIntegrationWebhook() error

DeleteIntegrationWebhook removes the Webhook Integration from Datadog.

func (*Client) DeleteLogsPipeline Uses

func (client *Client) DeleteLogsPipeline(id string) error

DeleteLogsPipeline deletes the pipeline for a given id, returns 200 OK when operation succeed

func (*Client) DeleteMonitor Uses

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

DeleteMonitor removes a monitor from the system

func (*Client) DeleteScreenboard Uses

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

DeleteScreenboard deletes a screenboard by the identifier.

func (*Client) DeleteServiceLevelObjective Uses

func (client *Client) DeleteServiceLevelObjective(id string) error

DeleteServiceLevelObjective removes an service level objective from the system.

func (*Client) DeleteServiceLevelObjectiveTimeFrames Uses

func (client *Client) DeleteServiceLevelObjectiveTimeFrames(timeframeByID map[string][]string) (*ServiceLevelObjectiveDeleteTimeFramesResponse, error)

DeleteServiceLevelObjectiveTimeFrames will delete SLO timeframes individually. This is useful if you have a SLO with 3 time windows and only need to delete some of the time windows. It will do a full delete if all time windows are removed as a result.

Example:

   SLO `12345678901234567890123456789012` was defined with 2 time frames: "7d" and "30d"
	  SLO `abcdefabcdefabcdefabcdefabcdefab` was defined with 2 time frames: "30d" and "90d"

		When we delete `7d` from `12345678901234567890123456789012` we still have `30d` timeframe remaining, hence this is "updated"
		When we delete `30d` and `90d` from `abcdefabcdefabcdefabcdefabcdefab` we are left with 0 time frames, hence this is "deleted"
		     and the entire SLO config is deleted

func (*Client) DeleteServiceLevelObjectives Uses

func (client *Client) DeleteServiceLevelObjectives(ids []string) error

DeleteServiceLevelObjectives removes multiple service level objective from the system by id.

func (*Client) DeleteSyntheticsTests Uses

func (client *Client) DeleteSyntheticsTests(publicIds []string) error

DeleteSyntheticsTests deletes tests

func (*Client) DeleteUser Uses

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

DeleteUser deletes a user and returns an error if deletion failed

func (*Client) EditComment Uses

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

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

func (*Client) EditMetricMetadata Uses

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

EditMetricMetadata edits the metadata for the given metric.

func (*Client) EnableLogCollectionAWSServices Uses

func (client *Client) EnableLogCollectionAWSServices(services *IntegrationAWSServicesLogCollection) error

EnableLogCollectionAWSServices enables the log collection for the given AWS services

func (*Client) ForceDeleteMonitor Uses

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

ForceDeleteMonitor removes a monitor from the system, even if it's linked to SLOs or group monitors

func (*Client) GetAPIKey Uses

func (client *Client) GetAPIKey(key string) (*APIKey, error)

GetAPIKey returns a single API key or error on failure

func (*Client) GetAPIKeys Uses

func (client *Client) GetAPIKeys() ([]APIKey, error)

GetAPIKeys returns all API keys or error on failure

func (*Client) GetAPPKey Uses

func (client *Client) GetAPPKey(hash string) (*APPKey, error)

GetAPPKey returns a single APP key or error on failure

func (*Client) GetAPPKeys Uses

func (client *Client) GetAPPKeys() ([]APPKey, error)

GetAPPKeys returns all APP keys or error on failure

func (*Client) GetAlert Uses

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

GetAlert retrieves an alert by identifier.

func (*Client) GetAlerts Uses

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

GetAlerts returns a slice of all alerts.

func (*Client) GetBaseUrl Uses

func (c *Client) GetBaseUrl() string

GetBaseUrl returns the baseUrl.

func (*Client) GetBoard Uses

func (client *Client) GetBoard(id string) (*Board, error)

GetBoard returns a single dashboard created on this account.

func (*Client) GetBoards Uses

func (client *Client) GetBoards() ([]BoardLite, error)

GetBoards returns all Dashboards.

func (*Client) GetDashboard Uses

func (client *Client) GetDashboard(id interface{}) (*Dashboard, error)

GetDashboard returns a single dashboard created on this account.

func (*Client) GetDashboardList Uses

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

GetDashboardList returns a single dashboard list created on this account.

func (*Client) GetDashboardListItems Uses

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

GetDashboardListItems fetches the dashboard list's dashboard definitions.

func (*Client) GetDashboardListItemsV2 Uses

func (client *Client) GetDashboardListItemsV2(id int) ([]DashboardListItemV2, error)

GetDashboardListItemsV2 fetches the dashboard list's dashboard definitions.

func (*Client) GetDashboardLists Uses

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

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

func (*Client) GetDashboards Uses

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

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

func (*Client) GetDowntime Uses

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

Getdowntime retrieves an downtime by identifier.

func (*Client) GetDowntimes Uses

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

GetDowntimes returns a slice of all downtimes.

func (*Client) GetEvent Uses

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

GetEvent gets a single event given an identifier.

func (*Client) GetEvents Uses

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

GetEvents returns a slice of events from the query stream.

func (*Client) GetHostTags Uses

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

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

func (*Client) GetHostTagsBySource Uses

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) GetHostTotals Uses

func (client *Client) GetHostTotals() (*HostTotalsResp, error)

GetHostTotals returns number of total active hosts and total up hosts. Active means the host has reported in the past hour, and up means it has reported in the past two hours.

func (*Client) GetIPRanges Uses

func (client *Client) GetIPRanges() (*IPRangesResp, error)

GetIPRanges returns all IP addresses by section: agents, api, apm, logs, process, synthetics, webhooks

func (*Client) GetIntegrationAWS Uses

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

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

func (*Client) GetIntegrationAWSLogCollection Uses

func (client *Client) GetIntegrationAWSLogCollection() (*[]IntegrationAWSLogCollection, error)

GetIntegrationAWSLogCollection gets all the configuration for the AWS log collection

func (*Client) GetIntegrationPD Uses

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

GetIntegrationPD gets all the PagerDuty Integrations from the system.

func (*Client) GetIntegrationPDService Uses

func (client *Client) GetIntegrationPDService(serviceName string) (*ServicePDRequest, error)

GetIntegrationPDService gets a single service object in the PagerDuty integration NOTE: the service key is never returned by the API, so it won't be set

func (*Client) GetIntegrationSlack Uses

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

GetIntegrationSlack gets all the Slack Integrations from the system.

func (*Client) GetIntegrationWebhook Uses

func (client *Client) GetIntegrationWebhook() (*IntegrationWebhookRequest, error)

GetIntegrationWebhook gets all the Webhook Integrations from Datadog.

func (*Client) GetLogsIndex Uses

func (client *Client) GetLogsIndex(name string) (*LogsIndex, error)

GetLogsIndex gets the specific logs index by specific name.

func (*Client) GetLogsIndexList Uses

func (client *Client) GetLogsIndexList() (*LogsIndexList, error)

GetLogsIndexList gets the full list of available indexes by their names.

func (*Client) GetLogsList Uses

func (client *Client) GetLogsList(logsRequest *LogsListRequest) (logsList *LogsList, err error)

GetLogsList gets a page of log entries based on the values in the provided LogListRequest

func (*Client) GetLogsListPages Uses

func (client *Client) GetLogsListPages(logsRequest *LogsListRequest, maxResults int) (logs []Logs, err error)

GetLogsListPages calls GetLogsList and handles the pagination performed by the 'logs-queries/list' API

func (*Client) GetLogsPipeline Uses

func (client *Client) GetLogsPipeline(id string) (*LogsPipeline, error)

GetLogsPipeline queries Logs Public Config API with given a pipeline id for the complete pipeline object.

func (*Client) GetLogsPipelineList Uses

func (client *Client) GetLogsPipelineList() (*LogsPipelineList, error)

GetLogsPipelineList get the full list of created pipelines.

func (*Client) GetMonitor Uses

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

GetMonitor retrieves a monitor by identifier

func (*Client) GetMonitors Uses

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

GetMonitors returns a slice of all monitors

func (*Client) GetMonitorsByMonitorTags Uses

func (client *Client) GetMonitorsByMonitorTags(tags []string) ([]Monitor, error)

GetMonitorsByMonitorTags retrieves monitors by a slice of monitor tags

func (*Client) GetMonitorsByName Uses

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

GetMonitorsByName retrieves monitors by name

func (*Client) GetMonitorsByTags Uses

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

GetMonitorsByTags retrieves monitors by a slice of tags

func (*Client) GetMonitorsWithOptions Uses

func (client *Client) GetMonitorsWithOptions(opts MonitorQueryOpts) ([]Monitor, error)

GetMonitorsWithOptions returns a slice of all monitors It supports all the options for querying

func (*Client) GetRateLimitStats Uses

func (client *Client) GetRateLimitStats() map[string]RateLimit

GetRateLimitStats is a threadsafe getter to retrieve the rate limiting stats associated with the Client.

func (*Client) GetScreenboard Uses

func (client *Client) GetScreenboard(id interface{}) (*Screenboard, error)

GetScreenboard returns a single screenboard created on this account.

func (*Client) GetScreenboards Uses

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

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

func (*Client) GetServiceLevelObjective Uses

func (client *Client) GetServiceLevelObjective(id string) (*ServiceLevelObjective, error)

GetServiceLevelObjective retrieves an service level objective by identifier.

func (*Client) GetServiceLevelObjectiveHistory Uses

func (client *Client) GetServiceLevelObjectiveHistory(id string, fromTs time.Time, toTs time.Time) (*ServiceLevelObjectiveHistoryResponse, error)

GetServiceLevelObjectiveHistory will retrieve the history data for a given SLO and provided from/to times

func (*Client) GetSyntheticsBrowserDevices Uses

func (client *Client) GetSyntheticsBrowserDevices() ([]SyntheticsDevice, error)

GetSyntheticsBrowserDevices get all test devices (for browser)

func (*Client) GetSyntheticsLocations Uses

func (client *Client) GetSyntheticsLocations() ([]SyntheticsLocation, error)

GetSyntheticsLocations get all test locations

func (*Client) GetSyntheticsTest Uses

func (client *Client) GetSyntheticsTest(publicId string) (*SyntheticsTest, error)

GetSyntheticsTest get test by public id

func (*Client) GetSyntheticsTests Uses

func (client *Client) GetSyntheticsTests() ([]SyntheticsTest, error)

GetSyntheticsTests get all tests of type API

func (*Client) GetSyntheticsTestsByType Uses

func (client *Client) GetSyntheticsTestsByType(testType string) ([]SyntheticsTest, error)

GetSyntheticsTestsByType get all tests by type (e.g. api or browser)

func (*Client) GetTags Uses

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

GetTags returns a map of tags.

func (*Client) GetUser Uses

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 Uses

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

GetUsers returns all user, or an error if not found

func (*Client) InviteUsers Uses

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

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

func (*Client) ListIntegrationGCP Uses

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

ListIntegrationGCP gets all Google Cloud Platform Integrations.

func (*Client) MuteAlerts Uses

func (client *Client) MuteAlerts() error

MuteAlerts turns off alerting notifications.

func (*Client) MuteHost Uses

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

MuteHost mutes all monitors for the given host

func (*Client) MuteMonitor Uses

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

MuteMonitor turns off monitoring notifications for a monitor

func (*Client) MuteMonitorScope Uses

func (client *Client) MuteMonitorScope(id int, muteMonitorScope *MuteMonitorScope) error

MuteMonitorScope turns off monitoring notifications for a monitor for a given scope

func (*Client) MuteMonitors Uses

func (client *Client) MuteMonitors() error

MuteMonitors turns off monitoring notifications

func (*Client) PauseSyntheticsTest Uses

func (client *Client) PauseSyntheticsTest(publicId string) (*bool, error)

PauseSyntheticsTest set a test status to paused

func (*Client) PostCheck Uses

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

PostCheck posts the result of a check run to the server

func (*Client) PostEvent Uses

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

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

func (*Client) PostMetrics Uses

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 Uses

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 Uses

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) ResumeSyntheticsTest Uses

func (client *Client) ResumeSyntheticsTest(publicId string) (*bool, error)

ResumeSyntheticsTest set a test status to live

func (*Client) RevokeScreenboard Uses

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

RevokeScreenboard revokes a currently shared screenboard

func (*Client) SearchHosts Uses

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

SearchHosts searches through the hosts facet, returning matching hostnames.

func (*Client) SearchMetrics Uses

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

SearchMetrics searches through the metrics facet, returning matching ones.

func (*Client) SearchServiceLevelObjectives Uses

func (client *Client) SearchServiceLevelObjectives(limit int, offset int, query string, ids []string) ([]*ServiceLevelObjective, error)

SearchServiceLevelObjectives searches for service level objectives by search criteria. limit will limit the amount of SLO's returned, the API will enforce a maximum and default to a minimum if not specified

func (*Client) SetBaseUrl Uses

func (c *Client) SetBaseUrl(baseUrl string)

SetBaseUrl changes the value of baseUrl.

func (*Client) SetKeys Uses

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

SetKeys changes the value of apiKey and appKey.

func (*Client) ShareScreenboard Uses

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

ShareScreenboard shares an existing screenboard, it takes and updates ScreenShareResponse

func (*Client) Snapshot Uses

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 Uses

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) URLIPRanges Uses

func (client *Client) URLIPRanges() (string, error)

URLIPRanges returns the IP Ranges URL used to whitelist IP addresses in use to send data to Datadog agents, api, apm, logs, process, synthetics, webhooks

func (*Client) UnmuteAlerts Uses

func (client *Client) UnmuteAlerts() error

UnmuteAlerts turns on alerting notifications.

func (*Client) UnmuteHost Uses

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

UnmuteHost unmutes all monitors for the given host

func (*Client) UnmuteMonitor Uses

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

UnmuteMonitor turns on monitoring notifications for a monitor

func (*Client) UnmuteMonitorScopes Uses

func (client *Client) UnmuteMonitorScopes(id int, unmuteMonitorScopes *UnmuteMonitorScopes) error

UnmuteMonitorScopes is similar to UnmuteMonitor, but provides finer-grained control to unmuting

func (*Client) UnmuteMonitors Uses

func (client *Client) UnmuteMonitors() error

UnmuteMonitors turns on monitoring notifications

func (*Client) UpdateAPIKey Uses

func (client *Client) UpdateAPIKey(apikey *APIKey) error

UpdateAPIKey updates given API key (only Name can be updated), returns an error

func (*Client) UpdateAPPKey Uses

func (client *Client) UpdateAPPKey(appkey *APPKey) error

UpdateAPPKey updates given APP key (only Name can be updated), returns an error

func (*Client) UpdateAlert Uses

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) UpdateBoard Uses

func (client *Client) UpdateBoard(board *Board) error

UpdateBoard takes a Board struct and persists it back to the server. Use this if you've updated your local and need to push it back.

func (*Client) UpdateDashboard Uses

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 Uses

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

UpdateDashboardList returns a single dashboard list created on this account.

func (*Client) UpdateDashboardListItems Uses

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) UpdateDashboardListItemsV2 Uses

func (client *Client) UpdateDashboardListItemsV2(dashboardListID int, items []DashboardListItemV2) ([]DashboardListItemV2, error)

UpdateDashboardListItemsV2 updates dashboards of an existing dashboard list.

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

func (*Client) UpdateDowntime Uses

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 Uses

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) UpdateIntegrationAWS Uses

func (client *Client) UpdateIntegrationAWS(awsAccount *IntegrationAWSAccount) error

UpdateIntegrationAWS updates an already existing AWS Account in the AWS Integration

func (*Client) UpdateIntegrationGCP Uses

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

UpdateIntegrationGCP updates a Google Cloud Platform Integration project.

func (*Client) UpdateIntegrationPD Uses

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

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

func (*Client) UpdateIntegrationPDService Uses

func (client *Client) UpdateIntegrationPDService(serviceObject *ServicePDRequest) error

UpdateIntegrationPDService updates a single service object in the PagerDuty integration

func (*Client) UpdateIntegrationSlack Uses

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

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

func (*Client) UpdateIntegrationWebhook Uses

func (client *Client) UpdateIntegrationWebhook(webhookIntegration *IntegrationWebhookRequest) error

UpdateIntegrationWebhook updates the Webhook Integration. It replaces the existing configuration with the configuration sent in this request.

func (*Client) UpdateLogsIndex Uses

func (client *Client) UpdateLogsIndex(name string, index *LogsIndex) (*LogsIndex, error)

UpdateLogsIndex updates the specific index by it's name.

func (*Client) UpdateLogsIndexList Uses

func (client *Client) UpdateLogsIndexList(indexList *LogsIndexList) (*LogsIndexList, error)

UpdateLogsIndexList updates the order of indexes.

func (*Client) UpdateLogsPipeline Uses

func (client *Client) UpdateLogsPipeline(id string, pipeline *LogsPipeline) (*LogsPipeline, error)

UpdateLogsPipeline updates the pipeline object of a given pipeline id.

func (*Client) UpdateLogsPipelineList Uses

func (client *Client) UpdateLogsPipelineList(pipelineList *LogsPipelineList) (*LogsPipelineList, error)

UpdateLogsPipelineList updates the pipeline list order, it returns error (422 Unprocessable Entity) if one tries to delete or add pipeline.

func (*Client) UpdateMonitor Uses

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 Uses

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) UpdateServiceLevelObjective Uses

func (client *Client) UpdateServiceLevelObjective(slo *ServiceLevelObjective) (*ServiceLevelObjective, error)

UpdateServiceLevelObjective takes a service level objective that was previously retrieved through some method and sends it back to the server.

func (*Client) UpdateSyntheticsTest Uses

func (client *Client) UpdateSyntheticsTest(publicId string, syntheticsTest *SyntheticsTest) (*SyntheticsTest, error)

UpdateSyntheticsTest updates a test

func (*Client) UpdateUser Uses

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 Uses

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

Validate checks if the API key (not the APP key) is valid.

func (*Client) ViewMetricMetadata Uses

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

ViewMetricMetadata allows you to get metadata about a specific metric.

type Comment Uses

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 Uses

func (c *Comment) GetHandle() string

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

func (*Comment) GetHandleOk Uses

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 Uses

func (c *Comment) GetId() int

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

func (*Comment) GetIdOk Uses

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 Uses

func (c *Comment) GetMessage() string

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

func (*Comment) GetMessageOk Uses

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 Uses

func (c *Comment) GetRelatedId() int

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

func (*Comment) GetRelatedIdOk Uses

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 Uses

func (c *Comment) GetResource() string

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

func (*Comment) GetResourceOk Uses

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 Uses

func (c *Comment) GetUrl() string

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

func (*Comment) GetUrlOk Uses

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