Documentation ¶
Index ¶
- func Error(logFields logrus.Fields, message string) error
- func GetProbeExecutionHistoryInExperimentRuns(projectID string, probeName string) ([]*model.ProbeRecentExecutions, error)
- type CMDProbeAttributes
- type HTTPMethod
- type HTTPProbeAttributes
- type K8SProbeAttributes
- type PROMProbeAttributes
- type ProbeWithVerdict
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProbeExecutionHistoryInExperimentRuns ¶
func GetProbeExecutionHistoryInExperimentRuns(projectID string, probeName string) ([]*model.ProbeRecentExecutions, error)
Types ¶
type CMDProbeAttributes ¶
type CMDProbeAttributes struct { // Name of probe Name string `json:"name,omitempty"` // Type of probe Type string `json:"type,omitempty"` // inputs needed for the cmd probe CmdProbeInputs v1alpha1.CmdProbeInputs `json:"cmdProbe/inputs,omitempty"` // RunProperty contains timeout, retry and interval for the probe RunProperties v1alpha1.RunProperty `json:"runProperties,omitempty"` // mode for k8s probe // it can be SOT, EOT, Edge Mode string `json:"mode,omitempty"` // ResponseTimeout Flag to hold the flag to response timeout for the cmdProbe ResponseTimeout int `json:"responseTimeout,omitempty"` }
type HTTPMethod ¶
type HTTPMethod struct { Get *v1alpha1.GetMethod `json:"get,omitempty"` Post *v1alpha1.PostMethod `json:"post,omitempty"` }
HTTPMethod define the http method details
type HTTPProbeAttributes ¶
type HTTPProbeAttributes struct { // Name of probe Name string `json:"name,omitempty"` // Type of probe Type string `json:"type,omitempty"` // inputs needed for the http probe HTTPProbeInputs v1alpha1.HTTPProbeInputs `json:"httpProbe/inputs,omitempty"` // RunProperty contains timeout, retry and interval for the probe RunProperties v1alpha1.RunProperty `json:"runProperties,omitempty"` // mode for k8s probe // it can be SOT, EOT, Edge Mode string `json:"mode,omitempty"` }
type K8SProbeAttributes ¶
type K8SProbeAttributes struct { // Name of probe Name string `json:"name,omitempty"` // Type of probe Type string `json:"type,omitempty"` // inputs needed for the k8s probe K8sProbeInputs v1alpha1.K8sProbeInputs `json:"k8sProbe/inputs,omitempty"` // RunProperty contains timeout, retry and interval for the probe RunProperties v1alpha1.RunProperty `json:"runProperties,omitempty"` // mode for k8s probe // it can be SOT, EOT, Edge Mode string `json:"mode,omitempty"` }
type PROMProbeAttributes ¶
type PROMProbeAttributes struct { // Name of probe Name string `json:"name,omitempty"` // Type of probe Type string `json:"type,omitempty"` // inputs needed for the prometheus probe PromProbeInputs v1alpha1.PromProbeInputs `json:"promProbe/inputs,omitempty"` // RunProperty contains timeout, retry and interval for the probe RunProperties v1alpha1.RunProperty `json:"runProperties,omitempty"` // mode for k8s probe // it can be SOT, EOT, Edge Mode string `json:"mode,omitempty"` }
type ProbeWithVerdict ¶
type ProbeWithVerdict struct { Name string `json:"name"` Verdict model.ProbeVerdict `json:"verdict"` }
type Service ¶
type Service interface { AddProbe(ctx context.Context, probe model.ProbeRequest, projectID string) (*model.Probe, error) UpdateProbe(ctx context.Context, probe model.ProbeRequest, projectID string) (string, error) ListProbes(ctx context.Context, probeNames []string, infrastructureType *model.InfrastructureType, filter *model.ProbeFilterInput, projectID string) ([]*model.Probe, error) DeleteProbe(ctx context.Context, probeName, projectID string) (bool, error) GetProbe(ctx context.Context, probeName, projectID string) (*model.Probe, error) GetProbeReference(ctx context.Context, probeName, projectID string) (*model.GetProbeReferenceResponse, error) GetProbeYAMLData(ctx context.Context, probe model.GetProbeYAMLRequest, projectID string) (string, error) ValidateUniqueProbe(ctx context.Context, probeName, projectID string) (bool, error) GenerateExperimentManifestWithProbes(manifest string, projectID string) (argoTypes.Workflow, error) GenerateCronExperimentManifestWithProbes(manifest string, projectID string) (argoTypes.CronWorkflow, error) }
func NewProbeService ¶
func NewProbeService(probeOperator *dbSchemaProbe.Operator) Service
Click to show internal directories.
Click to hide internal directories.