Skip to content

Domain Report Admin API #7000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions common/types/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -6657,6 +6657,36 @@ type DiagnoseWorkflowExecutionRequest struct {
Identity string `json:"identity,omitempty"`
}

// for starting domain diagnosis workflow
type StartDomainDiagnosisWorkflowRequest struct {
Domain string `json:"domain,omitempty"`
DiagnosisType string `json:"diagnosisType,omitempty"`
Parameters map[string]string `json:"parameters,omitempty"`
Identity string `json:"identity,omitempty"`
}

// for starting domain diagnosis workflow response
type StartDomainDiagnosisWorkflowResponse struct {
WorkflowID string `json:"workflowId,omitempty"`
RunID string `json:"runId,omitempty"`
}

// for fetching domain diagnosis activity
type FetchDomainDiagnosisActivityRequest struct {
Domain string `json:"domain,omitempty"`
WorkflowID string `json:"workflowId,omitempty"`
RunID string `json:"runId,omitempty"`
Identity string `json:"identity,omitempty"`
}

// for fetching domain diagnosis activity response
type FetchDomainDiagnosisActivityResponse struct {
Status string `json:"status,omitempty"`
Progress int32 `json:"progress,omitempty"`
Results map[string]interface{} `json:"results,omitempty"`
Error string `json:"error,omitempty"`
}

// GetDomain returns the domain
func (v *DiagnoseWorkflowExecutionRequest) GetDomain() (o string) {
if v != nil {
Expand Down
4 changes: 3 additions & 1 deletion service/frontend/api/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package api

import (
"context"

"go.uber.org/yarpc"
"github.com/uber/cadence/common/types"
)

Expand Down Expand Up @@ -84,5 +84,7 @@ type (
StartWorkflowExecutionAsync(context.Context, *types.StartWorkflowExecutionAsyncRequest) (*types.StartWorkflowExecutionAsyncResponse, error)
TerminateWorkflowExecution(context.Context, *types.TerminateWorkflowExecutionRequest) error
UpdateDomain(context.Context, *types.UpdateDomainRequest) (*types.UpdateDomainResponse, error)
StartDomainDiagnosisWorkflow(context.Context, *types.StartDomainDiagnosisWorkflowRequest, ...yarpc.CallOption) (*types.StartDomainDiagnosisWorkflowResponse, error)
FetchDomainDiagnosisActivity(context.Context, *types.FetchDomainDiagnosisActivityRequest, ...yarpc.CallOption) (*types.FetchDomainDiagnosisActivityResponse, error)
}
)
Loading