MCPcopy Index your code
hub / github.com/simstudioai/sim / test

Function test

apps/sim/lib/data-drains/destinations/datadog.ts:202–216  ·  view source on GitHub ↗
({ config, credentials, signal })

Source from the content-addressed store, hash-verified

200 credentialsSchema: datadogCredentialsSchema,
201
202 async test({ config, credentials, signal }) {
203 const probe = [
204 {
205 ddsource: 'sim',
206 service: config.service ?? 'sim',
207 ddtags: `sim_probe:1${config.tags ? `,${config.tags}` : ''}`,
208 message: 'sim-data-drain connection test',
209 },
210 ]
211 await postWithRetries({
212 url: buildEndpoint(config.site),
213 prepared: buildRequestBody(JSON.stringify(probe), credentials.apiKey),
214 signal,
215 })
216 },
217
218 openSession({ config, credentials }) {
219 const url = buildEndpoint(config.site)

Callers

nothing calls this directly

Calls 3

postWithRetriesFunction · 0.85
buildEndpointFunction · 0.85
buildRequestBodyFunction · 0.70

Tested by

no test coverage detected