Documentation ¶
Overview ¶
Package models defines sdk.Client API request and response models. deprecated: models defined here will be moved to sdk/endpoints.
Index ¶
Constants ¶
View Source
const ( ReplayStatusFailed = "failed" ReplayStatusCompleted = "completed" )
Variants of ReplayStatus.Status.
View Source
const ( ReplayDataSourceTypeInvalid = "datasource_type_invalid" ReplayProjectDoesNotExist = "project_does_not_exist" ReplayDataSourceDoesNotExist = "data_source_does_not_exist" ReplayIntegrationDoesNotSupportReplay = "integration_does_not_support_replay" ReplayAgentVersionDoesNotSupportReplay = "agent_version_does_not_support_replay" ReplayMaxHistoricalDataRetrievalTooLow = "max_historical_data_retrieval_too_low" ReplayConcurrentReplayRunsLimitExhausted = "concurrent_replay_runs_limit_exhausted" ReplayUnknownAgentVersion = "unknown_agent_version" )
Variants of ReplayAvailability.Reason.
View Source
const ( DurationUnitMinute = "Minute" DurationUnitHour = "Hour" DurationUnitDay = "Day" )
Variables ¶
View Source
var ErrInvalidReplayDurationUnit = errors.Errorf(
"invalid duration unit, available units are: %v", allowedDurationUnit)
Functions ¶
func ValidateReplayDurationUnit ¶
ValidateReplayDurationUnit check if given string is allowed period unit.
Types ¶
type Replay ¶
type Replay struct { Project string `json:"project"` Slo string `json:"slo"` Duration ReplayDuration `json:"duration"` }
Replay Struct used for posting replay entity.
func ParseJSONToReplayStruct ¶
ParseJSONToReplayStruct parse raw json into v1alpha.Replay struct with validation.
type ReplayAvailability ¶
type ReplayDuration ¶
type ReplayStatus ¶
type ReplayWithStatus ¶
type ReplayWithStatus struct { Project string `json:"project"` Slo string `json:"slo"` Status ReplayStatus `json:"status"` }
ReplayWithStatus used for returning Replay data with status.
Click to show internal directories.
Click to hide internal directories.