Skip to main content

MonitorResponse

Monitor Response resource for Zscaler Digital Experience.

Resource operations

This resource supports the following standard methods: load(), delete(). They operate on the instance state — set properties with dot notation, then call the method with no arguments. Any other 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 MonitorResponse
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",
)

# Get a specific MonitorResponse
resource = session.zdx.MonitorResponse(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

activate_monitor()​

Parameters:

NameTypeRequiredDescription
forcebooleanNo-

Returns: StatusResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.activate_monitor()
print(result)

deactivate_monitor()​

Parameters:

NameTypeRequiredDescription
forcebooleanNo-

Returns: StatusResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.deactivate_monitor()
print(result)

delete()​

Deletes a MonitorResponse by id. Only the id identifier is required; delete() takes no other arguments.

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
resource.delete()

get_monitor_count()​

Parameters:

NameTypeRequiredDescription
c_idlongNo-
a_idlongNo-

Returns: MonitorCountResponse

Example:

resource = session.zdx.MonitorResponse()
result = resource.get_monitor_count()
print(result)

get_monitor_status()​

Returns: StatusResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.get_monitor_status()
print(result)

get_monitor_summary()​

Returns: MonitorResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.get_monitor_summary()
print(result)

load()​

Fetches an existing MonitorResponse by id. Only the id identifier is required; load() takes no other arguments.

Returns: MonitorResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
resource.load()
print(resource.name)

set_monitor_status()​

Parameters:

NameTypeRequiredDescription
statestringNo-
forcebooleanNo-

Returns: StatusResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.set_monitor_status()
print(result)

update_monitor()​

Parameters:

NameTypeRequiredDescription
forcebooleanNo-
namestringYes-
activebooleanYes-
typestringYes-
classstringYes-
deletedbooleanNo-
timeout_secondsintegerYes-
expires_at_timestampintegerYes-
urlstringNo-
excluded_departmentsEntityResponseWrapperCollectionNo-
excluded_devicesEntityResponseWrapperCollectionNo-
excluded_geolocationsGeoLocationResponseWrapperCollectionNo-
excluded_groupsEntityResponseWrapperCollectionNo-
excluded_location_groupsEntityResponseWrapperCollectionNo-
excluded_locationsEntityResponseWrapperCollectionNo-
excluded_usersEntityResponseWrapperCollectionNo-
on_departmentsEntityResponseWrapperCollectionNo-
on_devicesEntityResponseWrapperCollectionNo-
on_geolocationsGeoLocationResponseWrapperCollectionNo-
on_groupsEntityResponseWrapperCollectionNo-
on_location_groupsEntityResponseWrapperCollectionNo-
on_locationsEntityResponseWrapperCollectionNo-
on_usersEntityResponseWrapperCollectionNo-

Returns: MonitorResponse

Example:

resource = session.zdx.MonitorResponse(id="your-resource-id")
result = resource.update_monitor(name="example-name", active=True, type="value", class="value", timeout_seconds=3600, expires_at_timestamp=3600)
print(result)

Attributes​

NameTypeRequiredDescription
activebooleanNo-
applicationConfigApplicationRespNo-
classstringYes-
deletedbooleanNo-
urlstringNo-
excluded_departmentsEntityResponseWrapperCollectionNo-
excluded_devicesEntityResponseWrapperCollectionNo-
excluded_geolocationsGeoLocationResponseWrapperCollectionNo-
excluded_groupsEntityResponseWrapperCollectionNo-
excluded_location_groupsEntityResponseWrapperCollectionNo-
excluded_locationsEntityResponseWrapperCollectionNo-
excluded_os_typesEntityResponseWrapperCollectionNo-
excluded_usersEntityResponseWrapperCollectionNo-
expires_at_timestampintegerNo-
idlongNo-
namestringYes-
on_departmentsEntityResponseWrapperCollectionNo-
on_devicesEntityResponseWrapperCollectionNo-
on_geolocationsGeoLocationResponseWrapperCollectionNo-
on_groupsEntityResponseWrapperCollectionNo-
on_location_groupsEntityResponseWrapperCollectionNo-
on_locationsEntityResponseWrapperCollectionNo-
on_os_typesEntityResponseWrapperCollectionNo-
on_usersEntityResponseWrapperCollectionNo-
probestringNo-
timeout_secondsintegerNo-
typestringYes-