Dict aggregator
DictAggregatorExtract
Bases: ExtractionMethod
Aggregate information within dictionary.
Method name: dict_aggregator
Example Configuration
.. code-block:: yaml
- method: dict_aggregator
inputs:
min:
- start_time
max:
- end_time
sum:
- size
list:
- term1
- term2
Source code in extraction_methods/plugins/dict_aggregator.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
DictAggregatorInput
Bases: Input
Model for Dictionary Aggregator Method Input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_term
|
str | dict[str, Any]
|
term for method to run on. |
'$assets'
|
min
|
list[KeyOutputKey]
|
list of terms for which the minimum of their aggregate should be returned. |
[]
|
max
|
list[KeyOutputKey]
|
list of terms for which the maximum of their aggregate should be returned. |
[]
|
sum
|
list[KeyOutputKey]
|
list of terms for which the sum of their aggregate should be returned. |
[]
|
mean
|
list[KeyOutputKey]
|
list of terms for which the mean of their summed aggregate should be returned. |
[]
|
bucket
|
list[KeyOutputKey]
|
list of terms for which the list of their aggregate should be returned. |
[]
|
Source code in extraction_methods/plugins/dict_aggregator.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |