public interface DatadogClient
Modifier and Type | Interface and Description |
---|---|
static class |
DatadogClient.ClientType |
static class |
DatadogClient.Status |
Modifier and Type | Method and Description |
---|---|
boolean |
event(DatadogEvent event)
Sends an event to the Datadog API, including the event payload.
|
boolean |
finishBuildTrace(BuildData buildData,
Run<?,?> run)
Finish the trace of a certain Jenkins build.
|
void |
flushCounters()
Submit all your counters as rate with 10 seconds intervals.
|
boolean |
incrementCounter(String name,
String hostname,
Map<String,Set<String>> tags)
Increment a counter for the given metrics.
|
boolean |
isDefaultIntakeConnectionBroken() |
boolean |
isLogIntakeConnectionBroken() |
boolean |
isWebhookIntakeConnectionBroken() |
Metrics |
metrics() |
boolean |
postWebhook(String payload)
Send a webhook payload to the webhooks intake.
|
boolean |
sendLogs(String payload)
Send log message.
|
boolean |
sendPipelineTrace(Run<?,?> run,
org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
Send all traces related to a certain Jenkins pipeline.
|
boolean |
serviceCheck(String name,
DatadogClient.Status status,
String hostname,
Map<String,Set<String>> tags)
Sends a service check to the Datadog API, including the check name, and status.
|
void |
setApiKey(Secret apiKey) |
void |
setDefaultIntakeConnectionBroken(boolean defaultIntakeConnectionBroken) |
void |
setHostname(String hostname) |
void |
setLogCollectionPort(Integer logCollectionPort) |
void |
setLogIntakeConnectionBroken(boolean logIntakeConnectionBroken) |
void |
setLogIntakeUrl(String logIntakeUrl) |
void |
setPort(Integer port) |
void |
setUrl(String url) |
void |
setWebhookIntakeConnectionBroken(boolean webhookIntakeConnectionBroken) |
void |
setWebhookIntakeUrl(String webhookIntakeUrl) |
boolean |
startBuildTrace(BuildData buildData,
Run<?,?> run)
Start the trace of a certain Jenkins build.
|
void setUrl(String url)
void setLogIntakeUrl(String logIntakeUrl)
void setWebhookIntakeUrl(String webhookIntakeUrl)
void setApiKey(Secret apiKey)
void setHostname(String hostname)
void setPort(Integer port)
void setLogCollectionPort(Integer logCollectionPort)
boolean isDefaultIntakeConnectionBroken()
void setDefaultIntakeConnectionBroken(boolean defaultIntakeConnectionBroken)
boolean isLogIntakeConnectionBroken()
boolean isWebhookIntakeConnectionBroken()
void setLogIntakeConnectionBroken(boolean logIntakeConnectionBroken)
void setWebhookIntakeConnectionBroken(boolean webhookIntakeConnectionBroken)
boolean event(DatadogEvent event)
event
- - a DatadogEvent objectboolean incrementCounter(String name, String hostname, Map<String,Set<String>> tags)
name
- - metric namehostname
- - metric hostnametags
- - metric tagsvoid flushCounters()
Metrics metrics()
boolean serviceCheck(String name, DatadogClient.Status status, String hostname, Map<String,Set<String>> tags)
name
- - A String with the name of the service check to record.status
- - An Status with the status code to record for this service check.hostname
- - A String with the hostname to submit.tags
- - A Map containing the tags to submit.boolean sendLogs(String payload)
payload
- log payload to submit JSON object as Stringboolean postWebhook(String payload)
payload
- - A webhooks payload.boolean startBuildTrace(BuildData buildData, Run<?,?> run)
buildData
- build data to use in the pipeline tracerun
- a particular execution of a Jenkins buildboolean finishBuildTrace(BuildData buildData, Run<?,?> run)
buildData
- build data to use in the pipeline tracerun
- the run to create a pipeline trace forboolean sendPipelineTrace(Run<?,?> run, org.jenkinsci.plugins.workflow.graph.FlowNode flowNode)
run
- a particular execution of a Jenkins buildflowNode
- current flowNodeCopyright © 2016–2023. All rights reserved.