Skip to main content

predictions

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

Overview

Namepredictions
TypeResource
Idazure_extras.customer_insights.predictions

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
auto_analyzetextfield from the properties object
display_nametextfield from the properties object
gradestextfield from the properties object
hubNametextfield from the properties object
involved_interaction_typestextfield from the properties object
involved_kpi_typestextfield from the properties object
involved_relationshipstextfield from the properties object
mappingstextfield from the properties object
negative_outcome_expressiontextfield from the properties object
positive_outcome_expressiontextfield from the properties object
predictionNametextfield from the properties object
prediction_nametextfield from the properties object
primary_profile_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
scope_expressiontextfield from the properties object
score_labeltextfield from the properties object
subscriptionIdtextfield from the properties object
system_generated_entitiestextfield from the properties object
tenant_idtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, predictionName, resourceGroupName, subscriptionIdGets a Prediction in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all the predictions in the specified hub.
create_or_updateINSERThubName, predictionName, resourceGroupName, subscriptionIdCreates a Prediction or updates an existing Prediction in the hub.
deleteDELETEhubName, predictionName, resourceGroupName, subscriptionIdDeletes a Prediction in the hub.
model_statusEXEChubName, predictionName, resourceGroupName, subscriptionId, data__statusCreates or updates the model status of prediction.

SELECT examples

Gets all the predictions in the specified hub.

SELECT
id,
name,
description,
auto_analyze,
display_name,
grades,
hubName,
involved_interaction_types,
involved_kpi_types,
involved_relationships,
mappings,
negative_outcome_expression,
positive_outcome_expression,
predictionName,
prediction_name,
primary_profile_type,
provisioning_state,
resourceGroupName,
scope_expression,
score_label,
subscriptionId,
system_generated_entities,
tenant_id,
type
FROM azure_extras.customer_insights.vw_predictions
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new predictions resource.

/*+ create */
INSERT INTO azure_extras.customer_insights.predictions (
hubName,
predictionName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ hubName }}',
'{{ predictionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified predictions resource.

/*+ delete */
DELETE FROM azure_extras.customer_insights.predictions
WHERE hubName = '{{ hubName }}'
AND predictionName = '{{ predictionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';