({ config, credentials, signal })
| 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) |
nothing calls this directly
no test coverage detected