Skip to content

[expressions] inspector alerting adapter #78277

@ppisljar

Description

@ppisljar

In order to support alerting on expressions a new adapter should be added to inspector, to which every function producing a render output type should log the received datatable decorated with information about dimensions.

Alerting requires a predictable data structure it can generate alerts on. As every function that outputs render type can output anything we cannot use that directly. One of the options discussed was dropping that last function from expression to get the raw data before it was pre-processed by the chart function, however that has certain limitations for example chart might be receiving the actual data as one of the arguments instead on the input context.

Also, to make it easier for user to configure the alert it would be beneficial if we would know more than just the actual data but dimension information with it, like column 1 is X axis value and column 2 is Y axis value.

All of this information is only available to the chart function that outputs the render context type, so this function should log this data to this new inspector adapter.

Proposed structure on the alerting inspector adapter:

interface AlertingColumn {
  id: string,
  name: string,
  dimension: string,
  field?: string,
}

interface AlertingTable {
  columns: AlertingColumn[]
  rows: DatatableRows,
}
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:ExpressionLanguageInterpreter expression language (aka canvas pipeline)Feature:InspectorInspector infrastructure and implementationsimpact:highAddressing this issue will have a high level of impact on the quality/strength of our product.loe:mediumMedium Level of Effort

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions