Skip to content

Commit

Permalink
Update README to show timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopes7 committed Mar 6, 2023
1 parent 28a370f commit 01297f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ dt = Dynatrace("environment_url", "api_token")
# Create a client that automatically retries on errors, up to 5 times, with a 1 second delay between retries
# dt = Dynatrace("environment_url", "api_token", retries=5, retry_delay_ms=1000 )

# Create a client with a custom HTTP timeout of 10 seconds
# dt = Dynatrace("environment_url", "api_token", timeout=10 )


# Get all hosts and some properties
for entity in dt.entities.list('type("HOST")', fields="properties.memoryTotal,properties.monitoringMode"):
Expand Down

0 comments on commit 01297f6

Please sign in to comment.