Skip to main content

beta_insights

Creates, updates, deletes, gets or lists a beta_insights resource.

Overview

Namebeta_insights
TypeResource
Idazure.ai_projects.beta_insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the insights report. Required.
displayNamestringUser friendly display name for the insight. Required.
metadataobjectMetadata about the insights report. Required.
requestobjectRequest for the insights analysis. Required.
resultobjectThe result of the insights report.
statestringThe current state of the insights. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", and "Canceled". (NotStarted, Running, Succeeded, Failed, Canceled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, endpointincludeCoordinatesGet an insight. Retrieves the specified insight report and its results.
listselectendpointtype, evalId, runId, agentName, includeCoordinatesList insights. Returns insights in reverse chronological order, with the most recent entries first.
generateexecendpoint, displayName, requestGenerate insights. Generates an insights report from the provided evaluation configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
idstringThe unique identifier for the insights report. Required.
agentNamestringFilter by the agent name. Default value is None.
evalIdstringFilter by the evaluation ID. Default value is None.
includeCoordinatesbooleanWhether to include coordinates for visualization in the response. Defaults to false. Default value is None.
runIdstringFilter by the evaluation run ID. Default value is None.
typestringFilter by the type of analysis. Known values are: "EvaluationRunClusterInsight", "AgentClusterInsight", and "EvaluationComparison". Default value is None.

SELECT examples

Get an insight. Retrieves the specified insight report and its results.

SELECT
id,
displayName,
metadata,
request,
result,
state
FROM azure.ai_projects.beta_insights
WHERE id = '{{ id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND includeCoordinates = '{{ includeCoordinates }}'
;

Lifecycle Methods

Generate insights. Generates an insights report from the provided evaluation configuration.

EXEC azure.ai_projects.beta_insights.generate 
@endpoint='{{ endpoint }}' --required
@@json=
'{
"displayName": "{{ displayName }}",
"request": "{{ request }}"
}'
;