Skip to main content

kpis

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

Overview

Namekpis
TypeResource
Idazure_extras.customer_insights.kpis

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
descriptiontextfield from the properties object
aliasestextfield from the properties object
calculation_windowtextfield from the properties object
calculation_window_field_nametextfield from the properties object
display_nametextfield from the properties object
entity_typetextfield from the properties object
entity_type_nametextfield from the properties object
expressiontextfield from the properties object
extractstextfield from the properties object
filtertextfield from the properties object
functiontextfield from the properties object
group_bytextfield from the properties object
group_by_metadatatextfield from the properties object
hubNametextfield from the properties object
kpiNametextfield from the properties object
kpi_nametextfield from the properties object
participant_profiles_metadatatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tenant_idtextfield from the properties object
thres_holdstextfield from the properties object
typetextResource type.
unittextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThubName, kpiName, resourceGroupName, subscriptionIdGets a KPI in the hub.
list_by_hubSELECThubName, resourceGroupName, subscriptionIdGets all the KPIs in the specified hub.
create_or_updateINSERThubName, kpiName, resourceGroupName, subscriptionIdCreates a KPI or updates an existing KPI in the hub.
deleteDELETEhubName, kpiName, resourceGroupName, subscriptionIdDeletes a KPI in the hub.
reprocessEXEChubName, kpiName, resourceGroupName, subscriptionIdReprocesses the Kpi values of the specified KPI.

SELECT examples

Gets all the KPIs in the specified hub.

SELECT
id,
name,
description,
aliases,
calculation_window,
calculation_window_field_name,
display_name,
entity_type,
entity_type_name,
expression,
extracts,
filter,
function,
group_by,
group_by_metadata,
hubName,
kpiName,
kpi_name,
participant_profiles_metadata,
provisioning_state,
resourceGroupName,
subscriptionId,
tenant_id,
thres_holds,
type,
unit
FROM azure_extras.customer_insights.vw_kpis
WHERE hubName = '{{ hubName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified kpis resource.

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