@@ -2962,10 +2962,7 @@ components:
29622962 data_source:
29632963 $ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
29642964 group_by:
2965- description: Group by options.
2966- items:
2967- $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupBy'
2968- type: array
2965+ $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupByConfig'
29692966 indexes:
29702967 description: An array of index names to query in the stream. Omit or use
29712968 `[]` to query all indexes at once.
@@ -3037,6 +3034,40 @@ components:
30373034 required:
30383035 - facet
30393036 type: object
3037+ FormulaAndFunctionEventQueryGroupByConfig:
3038+ description: Group by configuration for a formula and functions events query.
3039+ Accepts either a list of facet objects or a flat object that specifies a list
3040+ of facet fields.
3041+ oneOf:
3042+ - $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupByList'
3043+ - $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupByFields'
3044+ FormulaAndFunctionEventQueryGroupByFields:
3045+ description: Flat group by configuration using multiple event facet fields.
3046+ properties:
3047+ fields:
3048+ description: List of event facets to group by.
3049+ example:
3050+ - hostname
3051+ - service
3052+ items:
3053+ description: Event facet.
3054+ type: string
3055+ type: array
3056+ limit:
3057+ description: Number of groups to return.
3058+ example: 10
3059+ format: int64
3060+ type: integer
3061+ sort:
3062+ $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupBySort'
3063+ required:
3064+ - fields
3065+ type: object
3066+ FormulaAndFunctionEventQueryGroupByList:
3067+ description: List of objects used to group by.
3068+ items:
3069+ $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupBy'
3070+ type: array
30403071 FormulaAndFunctionEventQueryGroupBySort:
30413072 description: Options for sorting group by results.
30423073 properties:
0 commit comments