_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q170500 | UpdateBoard | validation | func (client *Client) UpdateBoard(board *Board) error {
return client.doJsonRequest("PUT", fmt.Sprintf("/v1/dashboard/%s", *board.Id), board, nil)
} | go | {
"resource": ""
} |
q170501 | NewClient | validation | func NewClient(apiKey, appKey string) *Client {
baseUrl := os.Getenv("DATADOG_HOST")
if baseUrl == "" {
baseUrl = "https://app.datadoghq.com"
}
return &Client{
apiKey: apiKey,
appKey: appKey,
baseUrl: baseUrl,
HttpClient: http.DefaultClient,
RetryTimeout: time.Duration(60 * time.Seco... | go | {
"resource": ""
} |
q170502 | SetKeys | validation | func (c *Client) SetKeys(apiKey, appKey string) {
c.apiKey = apiKey
c.appKey = appKey
} | go | {
"resource": ""
} |
q170503 | Validate | validation | func (client *Client) Validate() (bool, error) {
var out valid
var resp *http.Response
uri, err := client.uriForAPI("/v1/validate")
if err != nil {
return false, err
}
req, err := http.NewRequest("GET", uri, nil)
if err != nil {
return false, err
}
resp, err = client.doRequestWithRetries(req, client.Ret... | go | {
"resource": ""
} |
q170504 | MuteHost | validation | func (client *Client) MuteHost(host string, action *HostActionMute) (*HostActionResp, error) {
var out HostActionResp
uri := "/v1/host/" + host + "/mute"
if err := client.doJsonRequest("POST", uri, action, &out); err != nil {
return nil, err
}
return &out, nil
} | go | {
"resource": ""
} |
q170505 | UnmuteHost | validation | func (client *Client) UnmuteHost(host string) (*HostActionResp, error) {
var out HostActionResp
uri := "/v1/host/" + host + "/unmute"
if err := client.doJsonRequest("POST", uri, nil, &out); err != nil {
return nil, err
}
return &out, nil
} | go | {
"resource": ""
} |
q170506 | GetSilenced | validation | func (a *Alert) GetSilenced() bool {
if a == nil || a.Silenced == nil {
return false
}
return *a.Silenced
} | go | {
"resource": ""
} |
q170507 | GetSilencedOk | validation | func (a *Alert) GetSilencedOk() (bool, bool) {
if a == nil || a.Silenced == nil {
return false, false
}
return *a.Silenced, true
} | go | {
"resource": ""
} |
q170508 | HasSilenced | validation | func (a *Alert) HasSilenced() bool {
if a != nil && a.Silenced != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170509 | GetState | validation | func (a *Alert) GetState() string {
if a == nil || a.State == nil {
return ""
}
return *a.State
} | go | {
"resource": ""
} |
q170510 | GetStateOk | validation | func (a *Alert) GetStateOk() (string, bool) {
if a == nil || a.State == nil {
return "", false
}
return *a.State, true
} | go | {
"resource": ""
} |
q170511 | HasState | validation | func (a *Alert) HasState() bool {
if a != nil && a.State != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170512 | GetAlertIdOk | validation | func (a *AlertValueDefinition) GetAlertIdOk() (string, bool) {
if a == nil || a.AlertId == nil {
return "", false
}
return *a.AlertId, true
} | go | {
"resource": ""
} |
q170513 | GetKey | validation | func (a *APIKey) GetKey() string {
if a == nil || a.Key == nil {
return ""
}
return *a.Key
} | go | {
"resource": ""
} |
q170514 | GetKeyOk | validation | func (a *APIKey) GetKeyOk() (string, bool) {
if a == nil || a.Key == nil {
return "", false
}
return *a.Key, true
} | go | {
"resource": ""
} |
q170515 | HasKey | validation | func (a *APIKey) HasKey() bool {
if a != nil && a.Key != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170516 | GetFacetOk | validation | func (a *ApmOrLogQueryGroupBy) GetFacetOk() (string, bool) {
if a == nil || a.Facet == nil {
return "", false
}
return *a.Facet, true
} | go | {
"resource": ""
} |
q170517 | GetOrder | validation | func (a *ApmOrLogQueryGroupBySort) GetOrder() string {
if a == nil || a.Order == nil {
return ""
}
return *a.Order
} | go | {
"resource": ""
} |
q170518 | GetOrderOk | validation | func (a *ApmOrLogQueryGroupBySort) GetOrderOk() (string, bool) {
if a == nil || a.Order == nil {
return "", false
}
return *a.Order, true
} | go | {
"resource": ""
} |
q170519 | HasOrder | validation | func (a *ApmOrLogQueryGroupBySort) HasOrder() bool {
if a != nil && a.Order != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170520 | GetAuthorHandle | validation | func (b *Board) GetAuthorHandle() string {
if b == nil || b.AuthorHandle == nil {
return ""
}
return *b.AuthorHandle
} | go | {
"resource": ""
} |
q170521 | GetAuthorHandleOk | validation | func (b *Board) GetAuthorHandleOk() (string, bool) {
if b == nil || b.AuthorHandle == nil {
return "", false
}
return *b.AuthorHandle, true
} | go | {
"resource": ""
} |
q170522 | HasAuthorHandle | validation | func (b *Board) HasAuthorHandle() bool {
if b != nil && b.AuthorHandle != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170523 | GetIsReadOnly | validation | func (b *Board) GetIsReadOnly() bool {
if b == nil || b.IsReadOnly == nil {
return false
}
return *b.IsReadOnly
} | go | {
"resource": ""
} |
q170524 | GetIsReadOnlyOk | validation | func (b *Board) GetIsReadOnlyOk() (bool, bool) {
if b == nil || b.IsReadOnly == nil {
return false, false
}
return *b.IsReadOnly, true
} | go | {
"resource": ""
} |
q170525 | HasIsReadOnly | validation | func (b *Board) HasIsReadOnly() bool {
if b != nil && b.IsReadOnly != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170526 | GetLayout | validation | func (b *BoardWidget) GetLayout() WidgetLayout {
if b == nil || b.Layout == nil {
return WidgetLayout{}
}
return *b.Layout
} | go | {
"resource": ""
} |
q170527 | GetLayoutOk | validation | func (b *BoardWidget) GetLayoutOk() (WidgetLayout, bool) {
if b == nil || b.Layout == nil {
return WidgetLayout{}, false
}
return *b.Layout, true
} | go | {
"resource": ""
} |
q170528 | HasLayout | validation | func (b *BoardWidget) HasLayout() bool {
if b != nil && b.Layout != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170529 | GetShowPresent | validation | func (c *ChangeRequest) GetShowPresent() bool {
if c == nil || c.ShowPresent == nil {
return false
}
return *c.ShowPresent
} | go | {
"resource": ""
} |
q170530 | GetShowPresentOk | validation | func (c *ChangeRequest) GetShowPresentOk() (bool, bool) {
if c == nil || c.ShowPresent == nil {
return false, false
}
return *c.ShowPresent, true
} | go | {
"resource": ""
} |
q170531 | HasShowPresent | validation | func (c *ChangeRequest) HasShowPresent() bool {
if c != nil && c.ShowPresent != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170532 | GetChannelName | validation | func (c *ChannelSlackRequest) GetChannelName() string {
if c == nil || c.ChannelName == nil {
return ""
}
return *c.ChannelName
} | go | {
"resource": ""
} |
q170533 | GetChannelNameOk | validation | func (c *ChannelSlackRequest) GetChannelNameOk() (string, bool) {
if c == nil || c.ChannelName == nil {
return "", false
}
return *c.ChannelName, true
} | go | {
"resource": ""
} |
q170534 | HasChannelName | validation | func (c *ChannelSlackRequest) HasChannelName() bool {
if c != nil && c.ChannelName != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170535 | GetTransferAllUserComments | validation | func (c *ChannelSlackRequest) GetTransferAllUserComments() bool {
if c == nil || c.TransferAllUserComments == nil {
return false
}
return *c.TransferAllUserComments
} | go | {
"resource": ""
} |
q170536 | GetTransferAllUserCommentsOk | validation | func (c *ChannelSlackRequest) GetTransferAllUserCommentsOk() (bool, bool) {
if c == nil || c.TransferAllUserComments == nil {
return false, false
}
return *c.TransferAllUserComments, true
} | go | {
"resource": ""
} |
q170537 | HasTransferAllUserComments | validation | func (c *ChannelSlackRequest) HasTransferAllUserComments() bool {
if c != nil && c.TransferAllUserComments != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170538 | GetHostName | validation | func (c *Check) GetHostName() string {
if c == nil || c.HostName == nil {
return ""
}
return *c.HostName
} | go | {
"resource": ""
} |
q170539 | GetHostNameOk | validation | func (c *Check) GetHostNameOk() (string, bool) {
if c == nil || c.HostName == nil {
return "", false
}
return *c.HostName, true
} | go | {
"resource": ""
} |
q170540 | HasHostName | validation | func (c *Check) HasHostName() bool {
if c != nil && c.HostName != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170541 | GetTimestamp | validation | func (c *Check) GetTimestamp() string {
if c == nil || c.Timestamp == nil {
return ""
}
return *c.Timestamp
} | go | {
"resource": ""
} |
q170542 | GetTimestampOk | validation | func (c *Check) GetTimestampOk() (string, bool) {
if c == nil || c.Timestamp == nil {
return "", false
}
return *c.Timestamp, true
} | go | {
"resource": ""
} |
q170543 | HasTimestamp | validation | func (c *Check) HasTimestamp() bool {
if c != nil && c.Timestamp != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170544 | GetRelatedId | validation | func (c *Comment) GetRelatedId() int {
if c == nil || c.RelatedId == nil {
return 0
}
return *c.RelatedId
} | go | {
"resource": ""
} |
q170545 | GetRelatedIdOk | validation | func (c *Comment) GetRelatedIdOk() (int, bool) {
if c == nil || c.RelatedId == nil {
return 0, false
}
return *c.RelatedId, true
} | go | {
"resource": ""
} |
q170546 | HasRelatedId | validation | func (c *Comment) HasRelatedId() bool {
if c != nil && c.RelatedId != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170547 | GetImageURL | validation | func (c *ConditionalFormat) GetImageURL() string {
if c == nil || c.ImageURL == nil {
return ""
}
return *c.ImageURL
} | go | {
"resource": ""
} |
q170548 | GetImageURLOk | validation | func (c *ConditionalFormat) GetImageURLOk() (string, bool) {
if c == nil || c.ImageURL == nil {
return "", false
}
return *c.ImageURL, true
} | go | {
"resource": ""
} |
q170549 | HasImageURL | validation | func (c *ConditionalFormat) HasImageURL() bool {
if c != nil && c.ImageURL != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170550 | GetInvert | validation | func (c *ConditionalFormat) GetInvert() bool {
if c == nil || c.Invert == nil {
return false
}
return *c.Invert
} | go | {
"resource": ""
} |
q170551 | GetInvertOk | validation | func (c *ConditionalFormat) GetInvertOk() (bool, bool) {
if c == nil || c.Invert == nil {
return false, false
}
return *c.Invert, true
} | go | {
"resource": ""
} |
q170552 | HasInvert | validation | func (c *ConditionalFormat) HasInvert() bool {
if c != nil && c.Invert != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170553 | GetIcon | validation | func (c *CreatedBy) GetIcon() string {
if c == nil || c.Icon == nil {
return ""
}
return *c.Icon
} | go | {
"resource": ""
} |
q170554 | GetIconOk | validation | func (c *CreatedBy) GetIconOk() (string, bool) {
if c == nil || c.Icon == nil {
return "", false
}
return *c.Icon, true
} | go | {
"resource": ""
} |
q170555 | HasIcon | validation | func (c *CreatedBy) HasIcon() bool {
if c != nil && c.Icon != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170556 | GetCustomImageUrl | validation | func (d *DashboardConditionalFormat) GetCustomImageUrl() string {
if d == nil || d.CustomImageUrl == nil {
return ""
}
return *d.CustomImageUrl
} | go | {
"resource": ""
} |
q170557 | GetCustomImageUrlOk | validation | func (d *DashboardConditionalFormat) GetCustomImageUrlOk() (string, bool) {
if d == nil || d.CustomImageUrl == nil {
return "", false
}
return *d.CustomImageUrl, true
} | go | {
"resource": ""
} |
q170558 | HasCustomImageUrl | validation | func (d *DashboardConditionalFormat) HasCustomImageUrl() bool {
if d != nil && d.CustomImageUrl != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170559 | GetInverted | validation | func (d *DashboardConditionalFormat) GetInverted() bool {
if d == nil || d.Inverted == nil {
return false
}
return *d.Inverted
} | go | {
"resource": ""
} |
q170560 | GetInvertedOk | validation | func (d *DashboardConditionalFormat) GetInvertedOk() (bool, bool) {
if d == nil || d.Inverted == nil {
return false, false
}
return *d.Inverted, true
} | go | {
"resource": ""
} |
q170561 | HasInverted | validation | func (d *DashboardConditionalFormat) HasInverted() bool {
if d != nil && d.Inverted != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170562 | GetDashboardCount | validation | func (d *DashboardList) GetDashboardCount() int {
if d == nil || d.DashboardCount == nil {
return 0
}
return *d.DashboardCount
} | go | {
"resource": ""
} |
q170563 | GetDashboardCountOk | validation | func (d *DashboardList) GetDashboardCountOk() (int, bool) {
if d == nil || d.DashboardCount == nil {
return 0, false
}
return *d.DashboardCount, true
} | go | {
"resource": ""
} |
q170564 | HasDashboardCount | validation | func (d *DashboardList) HasDashboardCount() bool {
if d != nil && d.DashboardCount != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170565 | GetModified | validation | func (d *DashboardLite) GetModified() string {
if d == nil || d.Modified == nil {
return ""
}
return *d.Modified
} | go | {
"resource": ""
} |
q170566 | GetModifiedOk | validation | func (d *DashboardLite) GetModifiedOk() (string, bool) {
if d == nil || d.Modified == nil {
return "", false
}
return *d.Modified, true
} | go | {
"resource": ""
} |
q170567 | HasModified | validation | func (d *DashboardLite) HasModified() bool {
if d != nil && d.Modified != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170568 | GetActive | validation | func (d *Downtime) GetActive() bool {
if d == nil || d.Active == nil {
return false
}
return *d.Active
} | go | {
"resource": ""
} |
q170569 | GetActiveOk | validation | func (d *Downtime) GetActiveOk() (bool, bool) {
if d == nil || d.Active == nil {
return false, false
}
return *d.Active, true
} | go | {
"resource": ""
} |
q170570 | HasActive | validation | func (d *Downtime) HasActive() bool {
if d != nil && d.Active != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170571 | GetCanceled | validation | func (d *Downtime) GetCanceled() int {
if d == nil || d.Canceled == nil {
return 0
}
return *d.Canceled
} | go | {
"resource": ""
} |
q170572 | GetCanceledOk | validation | func (d *Downtime) GetCanceledOk() (int, bool) {
if d == nil || d.Canceled == nil {
return 0, false
}
return *d.Canceled, true
} | go | {
"resource": ""
} |
q170573 | HasCanceled | validation | func (d *Downtime) HasCanceled() bool {
if d != nil && d.Canceled != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170574 | GetMonitorId | validation | func (d *Downtime) GetMonitorId() int {
if d == nil || d.MonitorId == nil {
return 0
}
return *d.MonitorId
} | go | {
"resource": ""
} |
q170575 | GetMonitorIdOk | validation | func (d *Downtime) GetMonitorIdOk() (int, bool) {
if d == nil || d.MonitorId == nil {
return 0, false
}
return *d.MonitorId, true
} | go | {
"resource": ""
} |
q170576 | HasMonitorId | validation | func (d *Downtime) HasMonitorId() bool {
if d != nil && d.MonitorId != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170577 | GetParentId | validation | func (d *Downtime) GetParentId() int {
if d == nil || d.ParentId == nil {
return 0
}
return *d.ParentId
} | go | {
"resource": ""
} |
q170578 | GetParentIdOk | validation | func (d *Downtime) GetParentIdOk() (int, bool) {
if d == nil || d.ParentId == nil {
return 0, false
}
return *d.ParentId, true
} | go | {
"resource": ""
} |
q170579 | HasParentId | validation | func (d *Downtime) HasParentId() bool {
if d != nil && d.ParentId != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170580 | GetRecurrence | validation | func (d *Downtime) GetRecurrence() Recurrence {
if d == nil || d.Recurrence == nil {
return Recurrence{}
}
return *d.Recurrence
} | go | {
"resource": ""
} |
q170581 | GetRecurrenceOk | validation | func (d *Downtime) GetRecurrenceOk() (Recurrence, bool) {
if d == nil || d.Recurrence == nil {
return Recurrence{}, false
}
return *d.Recurrence, true
} | go | {
"resource": ""
} |
q170582 | HasRecurrence | validation | func (d *Downtime) HasRecurrence() bool {
if d != nil && d.Recurrence != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170583 | GetTimezone | validation | func (d *Downtime) GetTimezone() string {
if d == nil || d.Timezone == nil {
return ""
}
return *d.Timezone
} | go | {
"resource": ""
} |
q170584 | GetTimezoneOk | validation | func (d *Downtime) GetTimezoneOk() (string, bool) {
if d == nil || d.Timezone == nil {
return "", false
}
return *d.Timezone, true
} | go | {
"resource": ""
} |
q170585 | HasTimezone | validation | func (d *Downtime) HasTimezone() bool {
if d != nil && d.Timezone != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170586 | GetAlertType | validation | func (e *Event) GetAlertType() string {
if e == nil || e.AlertType == nil {
return ""
}
return *e.AlertType
} | go | {
"resource": ""
} |
q170587 | GetAlertTypeOk | validation | func (e *Event) GetAlertTypeOk() (string, bool) {
if e == nil || e.AlertType == nil {
return "", false
}
return *e.AlertType, true
} | go | {
"resource": ""
} |
q170588 | HasAlertType | validation | func (e *Event) HasAlertType() bool {
if e != nil && e.AlertType != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170589 | GetEventType | validation | func (e *Event) GetEventType() string {
if e == nil || e.EventType == nil {
return ""
}
return *e.EventType
} | go | {
"resource": ""
} |
q170590 | GetEventTypeOk | validation | func (e *Event) GetEventTypeOk() (string, bool) {
if e == nil || e.EventType == nil {
return "", false
}
return *e.EventType, true
} | go | {
"resource": ""
} |
q170591 | HasEventType | validation | func (e *Event) HasEventType() bool {
if e != nil && e.EventType != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170592 | GetPriority | validation | func (e *Event) GetPriority() string {
if e == nil || e.Priority == nil {
return ""
}
return *e.Priority
} | go | {
"resource": ""
} |
q170593 | GetPriorityOk | validation | func (e *Event) GetPriorityOk() (string, bool) {
if e == nil || e.Priority == nil {
return "", false
}
return *e.Priority, true
} | go | {
"resource": ""
} |
q170594 | HasPriority | validation | func (e *Event) HasPriority() bool {
if e != nil && e.Priority != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170595 | GetSourceType | validation | func (e *Event) GetSourceType() string {
if e == nil || e.SourceType == nil {
return ""
}
return *e.SourceType
} | go | {
"resource": ""
} |
q170596 | GetSourceTypeOk | validation | func (e *Event) GetSourceTypeOk() (string, bool) {
if e == nil || e.SourceType == nil {
return "", false
}
return *e.SourceType, true
} | go | {
"resource": ""
} |
q170597 | HasSourceType | validation | func (e *Event) HasSourceType() bool {
if e != nil && e.SourceType != nil {
return true
}
return false
} | go | {
"resource": ""
} |
q170598 | GetDefinition | validation | func (g *Graph) GetDefinition() GraphDefinition {
if g == nil || g.Definition == nil {
return GraphDefinition{}
}
return *g.Definition
} | go | {
"resource": ""
} |
q170599 | GetDefinitionOk | validation | func (g *Graph) GetDefinitionOk() (GraphDefinition, bool) {
if g == nil || g.Definition == nil {
return GraphDefinition{}, false
}
return *g.Definition, true
} | go | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.