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 ToProcessStatus ¶ added in v0.89.0
func ToProcessStatus(status ReplayStatus) slo.ProcessStatus
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"` TimeRange ReplayTimeRange `json:"timeRange,omitempty"` SourceSLO *ReplaySourceSLO `json:"sourceSlo,omitempty"` }
Replay Struct used for posting replay entity.
func ParseJSONToReplayStruct ¶
ParseJSONToReplayStruct parse raw json into v1alpha.Replay struct with govy.
type ReplayAvailability ¶
type ReplayDuration ¶
type ReplaySourceSLO ¶ added in v0.88.0
type ReplaySourceSLO struct { Slo string `json:"slo"` Project string `json:"project"` ObjectivesMap []ReplaySourceSLOItem `json:"objectivesMap"` }
type ReplaySourceSLOItem ¶ added in v0.88.0
type ReplayStatus ¶
type ReplayTimeRange ¶ added in v0.85.0
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.