All URIs are relative to https://unit-tenant.instana.io
| Method | HTTP request | Description |
|---|---|---|
| create_infra_alert_config | POST /api/events/settings/infra-alert-configs | Create Infra Alert Config |
| delete_infra_alert_config | DELETE /api/events/settings/infra-alert-configs/{id} | Delete Infra Alert Config |
| disable_infra_alert_config | PUT /api/events/settings/infra-alert-configs/{id}/disable | Disable Infra Alert Config |
| enable_infra_alert_config | PUT /api/events/settings/infra-alert-configs/{id}/enable | Enable Infra Alert Config |
| find_active_infra_alert_configs | GET /api/events/settings/infra-alert-configs | All Infra Alert Configs |
| find_infra_alert_config | GET /api/events/settings/infra-alert-configs/{id} | Get Infra Alert Config |
| find_infra_alert_config_versions | GET /api/events/settings/infra-alert-configs/{id}/versions | Get versions of Infra Alert Config |
| restore_infra_alert_config | PUT /api/events/settings/infra-alert-configs/{id}/restore/{created} | Restore Infra Alert Config |
| update_infra_alert_config | POST /api/events/settings/infra-alert-configs/{id} | Update Infra Alert Config |
InfraAlertConfigWithMetadata create_infra_alert_config(infra_alert_config)
Create Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.infra_alert_config import InfraAlertConfig
from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
infra_alert_config = instana_client.InfraAlertConfig() # InfraAlertConfig |
try:
# Create Infra Alert Config
api_response = api_instance.create_infra_alert_config(infra_alert_config)
print("The response of InfrastructureAlertConfigurationApi->create_infra_alert_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->create_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| infra_alert_config | InfraAlertConfig |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Insufficient permissions. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_infra_alert_config(id)
Delete Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration to delete
try:
# Delete Infra Alert Config
api_instance.delete_infra_alert_config(id)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->delete_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration to delete |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Successful - no content to return. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
disable_infra_alert_config(id, body=body)
Disable Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration to disable
body = 'body_example' # str | (optional)
try:
# Disable Infra Alert Config
api_instance.disable_infra_alert_config(id, body=body)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->disable_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration to disable | |
| body | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Successful - no content to return. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
enable_infra_alert_config(id, body=body)
Enable Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration to enable
body = 'body_example' # str | (optional)
try:
# Enable Infra Alert Config
api_instance.enable_infra_alert_config(id, body=body)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->enable_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration to enable | |
| body | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Successful - no content to return. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[InfraAlertConfigWithMetadata] find_active_infra_alert_configs(alert_ids=alert_ids)
All Infra Alert Configs
Configs are sorted descending by their created date.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
alert_ids = ['[4kxgJAXdSDiu6swQaKXrJw, ZLo28grvQaiMqIaikJK1RQ]'] # List[str] | List of IDs of Infra Smart Alert configurations (optional)
try:
# All Infra Alert Configs
api_response = api_instance.find_active_infra_alert_configs(alert_ids=alert_ids)
print("The response of InfrastructureAlertConfigurationApi->find_active_infra_alert_configs:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->find_active_infra_alert_configs: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| alert_ids | List[str] | List of IDs of Infra Smart Alert configurations | [optional] |
List[InfraAlertConfigWithMetadata]
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InfraAlertConfigWithMetadata find_infra_alert_config(id, valid_on=valid_on)
Get Infra Alert Config
Find a Infra Alert Config by ID. This will deliver deleted configs too.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration
valid_on = 1722877985000 # int | A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. (optional)
try:
# Get Infra Alert Config
api_response = api_instance.find_infra_alert_config(id, valid_on=valid_on)
print("The response of InfrastructureAlertConfigurationApi->find_infra_alert_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->find_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration | |
| valid_on | int | A Unix timestamp representing a specific time the config was active. If no timestamp is provided, the latest active version will be retrieved. | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[ConfigVersion] find_infra_alert_config_versions(id)
Get versions of Infra Alert Config
Find all versions of a Infra Alert Config by ID. This will deliver deleted configs too. Configs are sorted descending by their created date.
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.config_version import ConfigVersion
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration
try:
# Get versions of Infra Alert Config
api_response = api_instance.find_infra_alert_config_versions(id)
print("The response of InfrastructureAlertConfigurationApi->find_infra_alert_config_versions:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->find_infra_alert_config_versions: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restore_infra_alert_config(id, created, body=body)
Restore Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration to restore
created = 1722877985000 # int | A Unix Timestamp of when the alert was created
body = 'body_example' # str | (optional)
try:
# Restore Infra Alert Config
api_instance.restore_infra_alert_config(id, created, body=body)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->restore_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration to restore | |
| created | int | A Unix Timestamp of when the alert was created | |
| body | str | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Successful - no content to return. | - |
| 403 | Insufficient permissions. | - |
| 404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InfraAlertConfigWithMetadata update_infra_alert_config(id, infra_alert_config)
Update Infra Alert Config
- Api Key Authentication (ApiKeyAuth):
import instana_client
from instana_client.models.infra_alert_config import InfraAlertConfig
from instana_client.models.infra_alert_config_with_metadata import InfraAlertConfigWithMetadata
from instana_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://unit-tenant.instana.io
# See configuration.py for a list of all supported configuration parameters.
configuration = instana_client.Configuration(
host = "https://unit-tenant.instana.io"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.InfrastructureAlertConfigurationApi(api_client)
id = '4kxgJAXdSDiu6swQaKXrJw' # str | ID of the Infra Smart Alert configuration to update
infra_alert_config = instana_client.InfraAlertConfig() # InfraAlertConfig |
try:
# Update Infra Alert Config
api_response = api_instance.update_infra_alert_config(id, infra_alert_config)
print("The response of InfrastructureAlertConfigurationApi->update_infra_alert_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling InfrastructureAlertConfigurationApi->update_infra_alert_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ID of the Infra Smart Alert configuration to update | |
| infra_alert_config | InfraAlertConfig |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 204 | Infra Smart Alert did not change | - |
| 403 | Insufficient permissions. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]