You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The Value Count Summarizer can be configured using the Rest API. 

Create Value Count Summarizer


Field

Required

Default

Multiple

NotesExample
typeYes-No

The value must be "application".

"application"

_typeYes-No

The value must be "application".

"application"

appNameYes-NoThe name of the application"ValCountSum"
appTypeYes-NoThe value must be "valuecount-summarizer"."valuecount-summarizer"
configYes-NoThe value must be "com.accenture.aspire:app-valuecount-summarizer"."com.accenture.aspire:app-valuecount-summarizer"
descriptionYes-NoThe description

"count-summarizer"

propertiesYes-NoConfiguration object
processIntegerTypesYestrueNoIf enabled integer values will be counted.true
addUniqueIntegerValuesYestrueNoIf enabled unique integer values will be processed as sub jobs.true
uniqueIntegerThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgIntegerThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueIntegerValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000
processFloatTypesYestrueNoIf enabled float values will be counted.true
addUniqueFloatValuesYestrueNoIf enabled unique float values will be processed as sub jobs.true
uniqueFloatThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgFloatThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueFloatValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000
processTextTypesYestrueNoIf enabled text values will be counted.true
addUniqueTextValuesYestrueNoIf enabled unique text values will be processed as sub jobs.true
uniqueTextThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgTextThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueFloatValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000

Example

POST /aspire/_api/workflows/{workflow}/rules
{
  "type": "application",
  "_type": "application",
  "appName": "Valuecount_Summarizer",
  "appType": "valuecount-summarizer",
  "config": "com.accenture.aspire:app-valuecount-summarizer",
  "description": "count-summarizers",
  "properties": {
    "processIntegerTypes": true,
    "addUniqueIntegerValues": true,
    "uniqueIntegerThresholdType": "percentage",
    "pctgIntegerThreshold": 0.05,
    "processFloatTypes": true,
    "addUniqueFloatValues": true,
    "uniqueFloatThresholdType": "percentage",
    "pctgFloatThreshold": 0.05,
    "processTextTypes": true,
    "addUniqueTextValues": true,
    "uniqueTextThresholdType": "percentage",
    "pctgTextThreshold": 0.05,
    "debug": false
  }
}

Update Value Count Summarizer


Field

Required

Default

Multiple

NotesExample
idYes-NoId of the application to update"61014782-442a-4587-ab85-ba1439a7f7b5"
typeYes-No

The value must be "application".

"application"

_typeYes-No

The value must be "application".

"application"

appNameYes-NoThe name of the application"ValCountSum"
appTypeYes-NoThe value must be "valuecount-summarizer"."valuecount-summarizer"
configYes-NoThe value must be "com.accenture.aspire:app-valuecount-summarizer"."com.accenture.aspire:app-valuecount-summarizer"
descriptionYes-NoThe description

"count-summarizer"

propertiesYes-NoConfiguration object
processIntegerTypesYestrueNoIf enabled integer values will be counted.true
addUniqueIntegerValuesYestrueNoIf enabled unique integer values will be processed as sub jobs.true
uniqueIntegerThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgIntegerThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueIntegerValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000
processFloatTypesYestrueNoIf enabled float values will be counted.true
addUniqueFloatValuesYestrueNoIf enabled unique float values will be processed as sub jobs.true
uniqueFloatThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgFloatThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueFloatValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000
processTextTypesYestrueNoIf enabled text values will be counted.true
addUniqueTextValuesYestrueNoIf enabled unique text values will be processed as sub jobs.true
uniqueTextThresholdTypeYespercentageNoType of threshold ("percentage" or "maxCount") to use to determine which unique values will be processed as sub jobs"maxCount"
pctgTextThresholdNo0.05NoOnly values whose count is above this threshold of the total values will be processed. Used only if the threshold type is "percentage"0.05
maxUniqueFloatValuesNo1000NoThe number of unique values to process, after reaching the sample size other values will be ignored.Used only if the threshold type is "maxCount" 1000

Example 

PUT /aspire/_api/workflows/{workflow}/rules/{id}
{
  "id": "61014782-442a-4587-ab85-ba1439a7f7b5",
  "type": "application",
  "_type": "application",
  "appName": "Valuecount_Summarizer",
  "appType": "valuecount-summarizer",
  "config": "com.accenture.aspire:app-valuecount-summarizer",
  "description": "count-summarizers",
  "properties": {
    "processIntegerTypes": true,
    "addUniqueIntegerValues": true,
    "uniqueIntegerThresholdType": "percentage",
    "pctgIntegerThreshold": 0.05,
    "processFloatTypes": true,
    "addUniqueFloatValues": true,
    "uniqueFloatThresholdType": "percentage",
    "pctgFloatThreshold": 0.05,
    "processTextTypes": true,
    "addUniqueTextValues": true,
    "uniqueTextThresholdType": "percentage",
    "pctgTextThreshold": 0.05,
    "debug": false
  }
}
  • No labels