--- alias: resourcechartcontext-st description: "Defines a context for charts, linking resources, types, and transitions" --- # ResourceChartContext ## Description Used to resolve the Chart for specific Resource context ## Fields The **ResourceChartContext** table has the following fields: | Field | Description | Key | Mandatory | Comments | | --- | ----- | -- | -- | ---- | | **Resource** | Resource Reference | Yes | No | | | **ResourceType** | Resource Type Name | Yes | No |not to be confused with the *Type* property of the **Resource** | | **Model** | resource Model Name | Yes | No | | | **StateTransition** | StateTransition Name | Yes | Yes | Values are taken from the [ResourceChartStateTransitions](../lookup-tables/resourcechartstatetransitions.md) lookup table.| | **DisplayMode** | DisplayMode Reference | No | No |:material-pencil-circle:| | **Chart** | Chart Name Reference | No | Yes | | Table: ResourceChartContext fields !!! note Possible values for *DisplayMode* are: * None - Chart is never displayed * DisplayAlways - display Chart always * DisplayOnViolationsOnly - display Chart only when a violation occurs * AcknowledgeAlways - display Chart and require acknowledge always * AcknowledgeOnViolationsOnly - displays Chart and requires acknowledge on violations only !!! info Even though **Resource**, *Resource Type* and *Model* are listed as optional, one of them and only one of them must be defined for each data collection context row. !!! info There can be multiple **Charts** per context, but it is not possible to duplicate the same **Chart** for the same context. ## Precedence Keys The search precedence rules are the following: 1. Resource, StateTransition 2. ResourceType, StateTransition 3. Model, StateTransition