Skip to main content

insights

Creates, updates, deletes, gets or lists an insights resource.

Overview​

Nameinsights
TypeResource
Idazure_extras.agrifood_farming.insights

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertparty_id, model_id, resource_type, resource_id, insight_id, endpointCreates or updates insight entity.
create_or_updatereplaceparty_id, model_id, resource_type, resource_id, insight_id, endpointCreates or updates insight entity.
deletedeleteparty_id, model_id, resource_type, resource_id, insight_id, endpointDeletes a specified insight resource.
get_rawexecparty_id, model_id, resource_type, resource_id, insight_id, endpointGets a specified insight resource under a particular party.
list_by_party_id_model_id_and_resourceexecparty_id, model_id, resource_type, resource_id, endpointminInsightStartDateTime, maxInsightStartDateTime, minInsightEndDateTime, maxInsightEndDateTime, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of insight resources.
get_cascade_delete_job_detailsexecjob_id, endpointGet a cascade delete job for specified insight.
create_cascade_delete_jobexecjob_id, partyId, modelId, resourceType, resourceId, insightId, endpointCreate a cascade delete job for insights specified partyId/modelId/resourceType/resourceId.

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). (default: )
insightIdstringInsight id. Required.
insight_idstringId of the insight resource. Required.
job_idstringJob ID supplied by end user. Required.
modelIdstringId of the associated model. Required.
model_idstringId of the associated model. Required.
partyIdstringID of the associated party. Required.
party_idstringId of the associated party. Required.
resourceIdstringId of the associated resource. Required.
resourceTypestringResource Type. Required.
resource_idstringId of the associated resource. Required.
resource_typestringResource type associated with the record. Required.
maxCreatedDateTimestring (date-time)Maximum creation date of resource (inclusive). Default value is None.
maxInsightEndDateTimestring (date-time)Maximum insightEndDateTime time of insight resources (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. Default value is None.
maxInsightStartDateTimestring (date-time)Maximum insightStartDateTime time of insight resources (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. Default value is None.
maxLastModifiedDateTimestring (date-time)Maximum last modified date of resource (inclusive). Default value is None.
minCreatedDateTimestring (date-time)Minimum creation date of resource (inclusive). Default value is None.
minInsightEndDateTimestring (date-time)Minimum insightEndDateTime time of insight resources (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. Default value is None.
minInsightStartDateTimestring (date-time)Minimum insightStartDateTime time of insight resources (inclusive), sample format: yyyy-MM-ddTHH:mm:ssZ. Default value is None.
minLastModifiedDateTimestring (date-time)Minimum last modified date of resource (inclusive). Default value is None.
skipTokenstringSkip token for getting next set of results. Default value is None.

INSERT examples​

Creates or updates insight entity.

INSERT INTO azure_extras.agrifood_farming.insights (
party_id,
model_id,
resource_type,
resource_id,
insight_id,
endpoint
)
SELECT
'{{ party_id }}',
'{{ model_id }}',
'{{ resource_type }}',
'{{ resource_id }}',
'{{ insight_id }}',
'{{ endpoint }}'
;

REPLACE examples​

Creates or updates insight entity.

REPLACE azure_extras.agrifood_farming.insights
SET
-- No updatable properties
WHERE
party_id = '{{ party_id }}' --required
AND model_id = '{{ model_id }}' --required
AND resource_type = '{{ resource_type }}' --required
AND resource_id = '{{ resource_id }}' --required
AND insight_id = '{{ insight_id }}' --required
AND endpoint = '{{ endpoint }}' --required;

DELETE examples​

Deletes a specified insight resource.

DELETE FROM azure_extras.agrifood_farming.insights
WHERE party_id = '{{ party_id }}' --required
AND model_id = '{{ model_id }}' --required
AND resource_type = '{{ resource_type }}' --required
AND resource_id = '{{ resource_id }}' --required
AND insight_id = '{{ insight_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods​

Gets a specified insight resource under a particular party.

EXEC azure_extras.agrifood_farming.insights.get_raw
@party_id='{{ party_id }}' --required,
@model_id='{{ model_id }}' --required,
@resource_type='{{ resource_type }}' --required,
@resource_id='{{ resource_id }}' --required,
@insight_id='{{ insight_id }}' --required,
@endpoint='{{ endpoint }}' --required
;