DashboardOverridePreset

@Serializable
data class DashboardOverridePreset(val name: String, val description: String?, val type: DashboardOverridePreset.Type?, val response: PartialMockzillaHttpResponse, val isManagementUiDefinedCustomPreset: Boolean = false)

A named response configuration that can be applied to an endpoint from the Mockzilla management dashboard, overriding the endpoint's default or error response for a session.

Constructors

Link copied to clipboard
constructor(name: String, description: String?, type: DashboardOverridePreset.Type?, response: PartialMockzillaHttpResponse, isManagementUiDefinedCustomPreset: Boolean = false)

Types

Link copied to clipboard
@Serializable
enum Type : Enum<DashboardOverridePreset.Type>

Visual classification for a DashboardOverridePreset in the management dashboard. Used to display presets with appropriate styling.

Properties

Link copied to clipboard

Optional description shown alongside the preset in the dashboard.

Link copied to clipboard

true when this preset was created interactively by a user in the management dashboard, as opposed to being defined in code via EndpointConfiguration.Builder.configureDashboardOverrides.

Link copied to clipboard

Display name shown in the dashboard preset list.

Link copied to clipboard

The partial response this preset applies when selected.

Link copied to clipboard

Visual classification for the preset in the dashboard. Defaults to a type inferred from the response status code when null.