github.com/databricks/cli@v0.203.0/bundle/run/progress/pipeline_events.go (about)

     1  package progress
     2  
     3  import "fmt"
     4  
     5  type PipelineUpdateUrlEvent struct {
     6  	Type       string `json:"type"`
     7  	UpdateId   string `json:"update_id"`
     8  	PipelineId string `json:"pipeline_id"`
     9  	Url        string `json:"url"`
    10  }
    11  
    12  func NewPipelineUpdateUrlEvent(host, updateId, pipelineId string) *PipelineUpdateUrlEvent {
    13  	return &PipelineUpdateUrlEvent{
    14  		Type:       "pipeline_update_url",
    15  		UpdateId:   updateId,
    16  		PipelineId: pipelineId,
    17  		Url:        fmt.Sprintf("%s/#joblist/pipelines/%s/updates/%s", host, pipelineId, updateId),
    18  	}
    19  }
    20  
    21  func (event *PipelineUpdateUrlEvent) String() string {
    22  	return fmt.Sprintf("Update URL: %s\n", event.Url)
    23  }
    24  
    25  func (event *PipelineUpdateUrlEvent) IsInplaceSupported() bool {
    26  	return false
    27  }