ApplicationMonitor
Application Monitor resource for Zscaler Digital Experience.
Resource operations
This resource does not support standard CRUDL methods. Each action listed below is a custom action that takes explicit keyword arguments and returns a value.
Quick Start
import zssdk
import logging
# Enable debug logging for ApplicationMonitor
logging.getLogger('zssdk.zdx').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)
# Call activate_application_monitor on ApplicationMonitor
resource = session.zdx.ApplicationMonitor()
result = resource.activate_application_monitor(id=3600, aid=3600)
print(result)
# Debug output shows HTTP request/response details
Actions
activate_application_monitor()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
force | boolean | No | - |
Returns: StatusResponse
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.activate_application_monitor(id=3600, aid=3600)
print(result)
create_application_monitor()
Creates a new monitor for a specific application.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | No | - |
name | string | Yes | - |
active | boolean | Yes | - |
type | string | Yes | - |
class | string | Yes | - |
deleted | boolean | No | - |
timeout_seconds | integer | Yes | - |
expires_at_timestamp | integer | Yes | - |
url | string | No | - |
excluded_departments | EntityResponseWrapperCollection | No | - |
excluded_devices | EntityResponseWrapperCollection | No | - |
excluded_geolocations | GeoLocationResponseWrapperCollection | No | - |
excluded_groups | EntityResponseWrapperCollection | No | - |
excluded_location_groups | EntityResponseWrapperCollection | No | - |
excluded_locations | EntityResponseWrapperCollection | No | - |
excluded_users | EntityResponseWrapperCollection | No | - |
on_departments | EntityResponseWrapperCollection | No | - |
on_devices | EntityResponseWrapperCollection | No | - |
on_geolocations | GeoLocationResponseWrapperCollection | No | - |
on_groups | EntityResponseWrapperCollection | No | - |
on_location_groups | EntityResponseWrapperCollection | No | - |
on_locations | EntityResponseWrapperCollection | No | - |
on_users | EntityResponseWrapperCollection | No | - |
Returns: ApplicationMonitor
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.create_application_monitor(name="example-name", active=True, type="value", class="value", timeout_seconds=3600, expires_at_timestamp=3600)
print(result)
deactivate_application_monitor()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
force | boolean | No | - |
Returns: StatusResponse
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.deactivate_application_monitor(id=3600, aid=3600)
print(result)
delete_application_monitor()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
Returns: ApplicationMonitor
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.delete_application_monitor(id=3600, aid=3600)
print(result)
get_application_monitor()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | Yes | - |
aid | long | Yes | - |
Returns: ApplicationMonitor
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.get_application_monitor(id=3600, aid=3600)
print(result)
get_application_monitor_count()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | long | Yes | - |
c_id | long | No | - |
a_id | long | No | - |
Returns: MonitorCountResponse
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.get_application_monitor_count(id=3600)
print(result)
get_application_monitor_status()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
Returns: StatusResponse
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.get_application_monitor_status(id=3600, aid=3600)
print(result)
get_application_monitor_summary()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
Returns: ApplicationMonitor
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.get_application_monitor_summary(id=3600, aid=3600)
print(result)
update_application_monitor()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | No | - |
aid | long | No | - |
force | boolean | No | - |
name | string | Yes | - |
active | boolean | Yes | - |
type | string | Yes | - |
class | string | Yes | - |
deleted | boolean | No | - |
timeout_seconds | integer | Yes | - |
expires_at_timestamp | integer | Yes | - |
url | string | No | - |
excluded_departments | EntityResponseWrapperCollection | No | - |
excluded_devices | EntityResponseWrapperCollection | No | - |
excluded_geolocations | GeoLocationResponseWrapperCollection | No | - |
excluded_groups | EntityResponseWrapperCollection | No | - |
excluded_location_groups | EntityResponseWrapperCollection | No | - |
excluded_locations | EntityResponseWrapperCollection | No | - |
excluded_users | EntityResponseWrapperCollection | No | - |
on_departments | EntityResponseWrapperCollection | No | - |
on_devices | EntityResponseWrapperCollection | No | - |
on_geolocations | GeoLocationResponseWrapperCollection | No | - |
on_groups | EntityResponseWrapperCollection | No | - |
on_location_groups | EntityResponseWrapperCollection | No | - |
on_locations | EntityResponseWrapperCollection | No | - |
on_users | EntityResponseWrapperCollection | No | - |
Returns: ApplicationMonitor
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.update_application_monitor(name="example-name", active=True, type="value", class="value", timeout_seconds=3600, expires_at_timestamp=3600)
print(result)
update_application_monitor_status()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | - |
aid | long | Yes | - |
state | string | No | - |
force | boolean | No | - |
Returns: StatusResponse
Example:
resource = session.zdx.ApplicationMonitor()
result = resource.update_application_monitor_status(id=3600, aid=3600)
print(result)
Attributes
Related
- ApplicationMonitor - Data structure definition
- Logging guide - enable verbose logs while debugging this resource