Skip to main content

YEngineAnalysisResult

Y Engine Analysis Result 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 YEngineAnalysisResult
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 YEngineAnalysisResult
resource = session.zdx.YEngineAnalysisResult(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

create_analysis_request()​

Start Score Analysis for a given app between t0 and t1

Parameters:

NameTypeRequiredDescription
device_idlongYes-
app_idlongYes-
t0longYes-
t1longNo-

Returns: YEngineAnalysisResponse

Example:

resource = session.zdx.YEngineAnalysisResult()
result = resource.create_analysis_request(device_id=3600, app_id=3600, t0=3600)
print(result)

delete()​

Stop score analysis

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

Example:

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

load()​

Track the analysis progress and get results

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

Returns: YEngineAnalysisResult

Example:

resource = session.zdx.YEngineAnalysisResult(id="your-resource-id")
resource.load()
print(resource.err_msg)

Attributes​

NameTypeRequiredDescription
err_msgstringNo-
resultAnalysisResultNo-
statusstringNo-
analysis_idlongYes-