Skip to content

Commit deab709

Browse files
authored
Document changing servers (#320)
1 parent b0a3c03 commit deab709

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ apiInstance.getMonitor(params).then((data:any) => {
3939

4040
```
4141

42+
### Changing Server
43+
44+
When talking to a different server, like the `eu` instance, change the server variables:
45+
46+
```typescript
47+
import { v1 } from '@datadog/datadog-api-client';
48+
49+
const configuration = v1.createConfiguration();
50+
51+
v1.setServerVariables(configuration, {
52+
site: "datadoghq.eu"
53+
});
54+
```
55+
4256
### Disable compressed payloads
4357

4458
If you want to disable GZIP compressed responses, set the `compress` flag

0 commit comments

Comments
 (0)