This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Script to update on-call groups based on pagerduty escalation policies | |
| From: https://gist.github.com/markddavidoff/863d77c351672345afa3fd465a970ad6 | |
| Slack permissions required: | |
| - Installer must be able to update user groups. | |
| - usergroups:read | |
| - usergroups:write | |
| - users:read | |
| - users:read.email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from datadog_api_client import Configuration, ApiClient | |
| from datadog_api_client.exceptions import ApiAttributeError | |
| from datadog_api_client.exceptions import ApiTypeError, ApiValueError | |
| from datadog_api_client.v1.api.dashboards_api import DashboardsApi | |
| from datadog_api_client.v1.api.monitors_api import MonitorsApi | |
| from datadog_api_client.v1.model.formula_and_function_metric_data_source import FormulaAndFunctionMetricDataSource | |
| from datadog_api_client.v2.api.metrics_api import MetricsApi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pgtest | |
| import ( | |
| "context" | |
| "fmt" | |
| "strings" | |
| "sync" | |
| "testing" | |
| "github.com/docker/go-connections/nat" |
OlderNewer