Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ docs/_build/
# PyBuilder
target/

#Ipython Notebook
# Ipython Notebook
.ipynb_checkpoints
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=instana_client

pytest-3.9:
extends: .pytest
image: python:3.9-alpine
pytest-3.10:
extends: .pytest
image: python:3.10-alpine
Expand All @@ -29,3 +26,6 @@ pytest-3.12:
pytest-3.13:
extends: .pytest
image: python:3.13-alpine
pytest-3.14:
extends: .pytest
image: python:3.14-alpine
8 changes: 0 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -1306,12 +1306,4 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_api_group_to_team_role_migration.py
test/test_application_batch_business_criticality_update.py
test/test_calls_event_result.py
test/test_logging_perspective.py
test/test_mapping.py
test/test_mapping_overview.py
test/test_slo_health_snapshot.py
test/test_slo_health_snapshot_item.py
tox.ini
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.15.0
7.23.0
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
# uncomment the following if needed
#- "3.13-dev" # 3.13 development branch
#- "3.14-dev" # 3.14 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ Documentation for INSTANA REST API

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.328.1128
- API version: 1.329.1386
- Generator version: 7.23.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [http://instana.com](http://instana.com)

## Requirements.

Python 3.9+
Python 3.10+

## Installation & Usage
### pip install
Expand Down Expand Up @@ -465,6 +466,8 @@ Class | Method | HTTP request | Description
*PoliciesApi* | [**add_policies**](docs/PoliciesApi.md#add_policies) | **POST** /api/automation/policies/bulk | Create automation policies.
*PoliciesApi* | [**add_policy**](docs/PoliciesApi.md#add_policy) | **POST** /api/automation/policies | Create an automation policy.
*PoliciesApi* | [**delete_policy**](docs/PoliciesApi.md#delete_policy) | **DELETE** /api/automation/policies/{id} | Deletes an automation policy by identifier.
*PoliciesApi* | [**disable_policy**](docs/PoliciesApi.md#disable_policy) | **PUT** /api/automation/policies/{id}/disable | Disables an automation policy by identifier.
*PoliciesApi* | [**enable_policy**](docs/PoliciesApi.md#enable_policy) | **PUT** /api/automation/policies/{id}/enable | Enables an automation policy by identifier.
*PoliciesApi* | [**get_policies**](docs/PoliciesApi.md#get_policies) | **GET** /api/automation/policies | Get all automation policies.
*PoliciesApi* | [**get_policy_by_id**](docs/PoliciesApi.md#get_policy_by_id) | **GET** /api/automation/policies/{id} | Get an automation policy by ID.
*PoliciesApi* | [**update_policy**](docs/PoliciesApi.md#update_policy) | **PUT** /api/automation/policies/{id} | Updates an automation policy by identifier.
Expand Down
5 changes: 5 additions & 0 deletions docs/AdaptiveBaseline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**adaptability** | **float** | | [optional]
**deviation_factor** | **float** | | [optional]
**minimum_absolute_delta** | **float** | | [optional]
**seasonality** | **str** | | [optional]
**sensitivity_mode** | **str** | | [optional]
**sensitivity_value** | **float** | | [optional]

## Example

Expand Down
5 changes: 5 additions & 0 deletions docs/AdaptiveThresholdRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**adaptability** | **float** | | [optional]
**deviation_factor** | **float** | | [optional]
**minimum_absolute_delta** | **float** | | [optional]
**seasonality** | **str** | | [optional]
**sensitivity_mode** | **str** | | [optional]
**sensitivity_value** | **float** | | [optional]

## Example

Expand Down
4 changes: 2 additions & 2 deletions docs/ApplicationAlertConfigurationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.ApplicationAlertConfigurationApi(api_client)
application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"historicBaseline","operator":">=","seasonality":"DAILY","baseline":[[0,1,3],[600000,1,3]],"deviationFactor":3,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig |
application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"adaptiveBaseline","operator":">=","sensitivityMode":"STANDARD_DEVIATIONS","sensitivityValue":3.0,"minimumAbsoluteDelta":0.0,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig |

try:
# Create Smart Alert Config
Expand Down Expand Up @@ -954,7 +954,7 @@ with instana_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = instana_client.ApplicationAlertConfigurationApi(api_client)
id = 'DKp0JArJRAiQIav9CoKSWQ' # str | ID of a specific Smart Alert Configuration to update.
application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"historicBaseline","operator":">=","seasonality":"DAILY","baseline":[[0,1,3],[600000,1,3]],"deviationFactor":3,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig |
application_alert_config = {"name":"Calls are slower than usual","description":"Calls are slower or equal to the expectation based on latency (90th).","boundaryScope":"INBOUND","applicationId":"ZOi0te_ERE-mRm-9zsbwdg","applications":{"ZOi0te_ERE-mRm-9zsbwdg":{"applicationId":"ZOi0te_ERE-mRm-9zsbwdg","inclusive":true,"services":{}}},"severity":5,"triggering":false,"tagFilterExpression":{"type":"TAG_FILTER","name":"endpoint.name","stringValue":null,"numberValue":null,"booleanValue":null,"key":null,"value":null,"operator":"NOT_EMPTY","entity":"DESTINATION"},"includeInternal":false,"includeSynthetic":false,"rule":{"alertType":"slowness","aggregation":"P90","metricName":"latency"},"threshold":{"type":"adaptiveBaseline","operator":">=","sensitivityMode":"STANDARD_DEVIATIONS","sensitivityValue":3.0,"minimumAbsoluteDelta":0.0,"lastUpdated":0},"alertChannelIds":[],"granularity":600000,"timeThreshold":{"type":"violationsInSequence","timeWindow":600000},"evaluationType":"PER_AP","customPayloadFields":[]} # ApplicationAlertConfig |

try:
# Update Smart Alert Config
Expand Down
1 change: 1 addition & 0 deletions docs/ApplicationSettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ void (empty response body)
**204** | Successful - no content to return. | - |
**401** | Unauthorized access - requires user authentication. | - |
**403** | Insufficient permissions or limited in access. | - |
**412** | Pre-Condition Failed — the targeted AP is a ContributionFilter AP managed by a group or team and cannot be deleted directly. | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/GetInfrastructureGroupsQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**group_by** | **List[str]** | Entity grouping tag. Use the Instana Analyze Infrastructure dashboard to determine the entity grouping tag name. |
**include_member_ids** | **bool** | Includes the IDs of each group’s member entities in the response | [optional]
**metrics** | [**List[SimpleMetricConfiguration]**](SimpleMetricConfiguration.md) | | [optional]
**missing_placeholder** | **str** | Placeholder value for missing tag values | [optional]
**order** | [**Order**](Order.md) | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/InfrastructureGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**adjusted_granularities** | **Dict[str, int]** | map of metric keys to their adjusted granularity (in milliseconds) | [optional]
**count** | **int** | number of entities in this group | [optional]
**member_ids** | **List[str]** | Snapshot IDs of entities in this group | [optional]
**metrics** | **Dict[str, List[List[float]]]** | map of metric keys to array of timestamp,value pairs | [optional]
**poll_rate** | **int** | max poll rate across this group | [optional]
**sampling_metadata** | [**SamplingMetadata**](SamplingMetadata.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/LLMEgressGateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**created_at** | **str** | | [optional]
**description** | **str** | | [optional]
**enabled** | **bool** | | [optional]
**id** | **str** | |
**id** | **UUID** | |
**instana_agents** | **object** | | [optional]
**metadata** | **object** | | [optional]
**model** | [**LLMGatewayModel**](LLMGatewayModel.md) | |
Expand Down
1 change: 1 addition & 0 deletions docs/LLMEvaluationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**400** | Bad Request - Name is blank, reserved, already in use, or a built-in evaluator is being renamed | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

4 changes: 2 additions & 2 deletions docs/MobileAppConfigurationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ with instana_client.ApiClient(configuration) as api_client:
file_format = 'file_format_example' # str | File format. Example tgz
file_id = 'file_id_example' # str | Identifier of your app. For example, com.instana.ios.InstanaExampleApp
file_type = 'file_type_example' # str | dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file
source_map = None # bytearray | Path to your local symbol file
source_map = None # bytes | Path to your local symbol file

try:
# Upload sourcemap file for mobile app
Expand All @@ -1751,7 +1751,7 @@ Name | Type | Description | Notes
**file_format** | **str**| File format. Example tgz |
**file_id** | **str**| Identifier of your app. For example, com.instana.ios.InstanaExampleApp |
**file_type** | **str**| dSYM stands for iOS symbol file, R8PG_MAP stands for Android java mapping file |
**source_map** | **bytearray**| Path to your local symbol file |
**source_map** | **bytes**| Path to your local symbol file |

### Return type

Expand Down
166 changes: 166 additions & 0 deletions docs/PoliciesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Method | HTTP request | Description
[**add_policies**](PoliciesApi.md#add_policies) | **POST** /api/automation/policies/bulk | Create automation policies.
[**add_policy**](PoliciesApi.md#add_policy) | **POST** /api/automation/policies | Create an automation policy.
[**delete_policy**](PoliciesApi.md#delete_policy) | **DELETE** /api/automation/policies/{id} | Deletes an automation policy by identifier.
[**disable_policy**](PoliciesApi.md#disable_policy) | **PUT** /api/automation/policies/{id}/disable | Disables an automation policy by identifier.
[**enable_policy**](PoliciesApi.md#enable_policy) | **PUT** /api/automation/policies/{id}/enable | Enables an automation policy by identifier.
[**get_policies**](PoliciesApi.md#get_policies) | **GET** /api/automation/policies | Get all automation policies.
[**get_policy_by_id**](PoliciesApi.md#get_policy_by_id) | **GET** /api/automation/policies/{id} | Get an automation policy by ID.
[**update_policy**](PoliciesApi.md#update_policy) | **PUT** /api/automation/policies/{id} | Updates an automation policy by identifier.
Expand Down Expand Up @@ -256,6 +258,170 @@ void (empty response body)

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **disable_policy**
> Policy disable_policy(id)

Disables an automation policy by identifier.

Disables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings.

### Example

* Api Key Authentication (ApiKeyAuth):

```python
import instana_client
from instana_client.models.policy import Policy
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.PoliciesApi(api_client)
id = 'a14700b0-401b-47eb-a751-deda0035fde3' # str | Automation policy ID to disable

try:
# Disables an automation policy by identifier.
api_response = api_instance.disable_policy(id)
print("The response of PoliciesApi->disable_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->disable_policy: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| Automation policy ID to disable |

### Return type

[**Policy**](Policy.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Automation policy successfully disabled. | - |
**403** | Insufficient permissions. | - |
**404** | Automation policy not found. | - |
**500** | Server Error. | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **enable_policy**
> Policy enable_policy(id)

Enables an automation policy by identifier.

Enables an automation policy by identifier. Policy updates require `Configuration of automation policies` permission. When using personal tokens the automation policies updated are based on the access set in `Limited access` permission settings.

### Example

* Api Key Authentication (ApiKeyAuth):

```python
import instana_client
from instana_client.models.policy import Policy
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.PoliciesApi(api_client)
id = 'a14700b0-401b-47eb-a751-deda0035fde3' # str | Automation policy ID to enable

try:
# Enables an automation policy by identifier.
api_response = api_instance.enable_policy(id)
print("The response of PoliciesApi->enable_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling PoliciesApi->enable_policy: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| Automation policy ID to enable |

### Return type

[**Policy**](Policy.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Automation policy successfully enabled. | - |
**403** | Insufficient permissions. | - |
**404** | Automation policy not found. | - |
**500** | Server Error. | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_policies**
> List[Policy] get_policies(trigger_type=trigger_type, trigger_id=trigger_id, execution_type=execution_type, action_id=action_id)

Expand Down
1 change: 1 addition & 0 deletions docs/Policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **str** | Policy description. | [optional]
**enabled** | **bool** | Flag to enable or disable the policy. Enabled by default. | [optional] [default to True]
**id** | **str** | Policy identifier. | [readonly]
**name** | **str** | Policy name. |
**tags** | **List[str]** | A list of policy tags. | [optional]
Expand Down
Loading
Loading