...

Package archive

import "github.com/chaos-mesh/chaos-mesh/pkg/apiserver/archive"
Overview
Index

Overview ▾

func Register

func Register(r *gin.RouterGroup, s *Service)

Register mounts our HTTP handler on the mux.

type ArchiveExperimentDetail

ArchiveExperimentDetail represents an experiment instance.

type ArchiveExperimentDetail struct {
    core.ArchiveExperimentMeta
    ExperimentInfo core.ExperimentInfo `json:"experiment_info"`
}

type Report

Report defines the report of archive experiments.

type Report struct {
    Meta           *core.ArchiveExperimentMeta `json:"meta"`
    Events         []*core.Event               `json:"events"`
    TotalTime      string                      `json:"total_time"`
    TotalFaultTime string                      `json:"total_fault_time"`
}

type Service

Service defines a handler service for archive experiments.

type Service struct {
    // contains filtered or unexported fields
}

func NewService

func NewService(
    conf *config.ChaosDashboardConfig,
    cli client.Client,
    archive core.ExperimentStore,
    event core.EventStore,
) *Service

NewService returns an archive experiment service instance.