github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/model/adhoc.go (about)

     1  package model
     2  
     3  import (
     4  	"errors"
     5  	"time"
     6  
     7  	"github.com/pyroscope-io/pyroscope/pkg/structs/flamebearer/convert"
     8  )
     9  
    10  var (
    11  	ErrAdhocProfileNotFound = NotFoundError{errors.New("profile not found")}
    12  )
    13  
    14  // AdhocProfile describes a profile that is controlled by AdhocService.
    15  type AdhocProfile struct {
    16  	ID        string
    17  	Name      string
    18  	UpdatedAt time.Time
    19  }
    20  
    21  type GetAdhocProfileDiffByIDParams struct {
    22  	BaseID string
    23  	DiffID string
    24  }
    25  
    26  type UploadAdhocProfileParams struct {
    27  	Profile convert.ProfileFile
    28  }