github.1485827954.workers.dev/newrelic/newrelic-client-go@v1.1.0/docs/pkg/workflows/README.md (about)

     1  # workflows
     2  --
     3      import "github.com/newrelic/newrelic-client-go/pkg/worklfows"
     4  
     5  ## Usage
     6  
     7  #### type Workflows
     8  
     9  ```go
    10  type Workflows struct {
    11  }
    12  ```
    13  
    14  Workflows is used to communicate with New Relic Workflows.
    15  
    16  #### func  New
    17  
    18  ```go
    19  func New(config config.Config) Workflows
    20  ```
    21  New is used to create a new Workflows' client instance.
    22  
    23  ### Workflows
    24  
    25  #### func  TestMutationWorkflow
    26  
    27  ```go
    28  func TestMutationWorkflow(t *testing.T)
    29  ```
    30  
    31  #### type AiWorkflowsWorkflow
    32  
    33  ```go
    34  // AiWorkflowsWorkflow - Workflow object
    35  type AiWorkflowsWorkflow struct {
    36  AccountID                   int                                     `json:"accountId"`
    37  CreatedAt                   nrtime.DateTime                         `json:"createdAt"`
    38  DestinationConfigurations   []AiWorkflowsDestinationConfiguration   `json:"destinationConfigurations"`
    39  DestinationsEnabled         bool                                    `json:"destinationsEnabled"`
    40  Enrichments                 []AiWorkflowsEnrichment                 `json:"enrichments"`
    41  EnrichmentsEnabled          bool                                    `json:"enrichmentsEnabled"`
    42  ID                          string                                  `json:"id"`
    43  IssuesFilter                AiWorkflowsFilter                       `json:"issuesFilter"`
    44  LastRun                     nrtime.DateTime                         `json:"lastRun,omitempty"`
    45  MutingRulesHandling         AiWorkflowsMutingRulesHandling          `json:"mutingRulesHandling"`
    46  Name                        string                                  `json:"name"`
    47  UpdatedAt                   nrtime.DateTime                         `json:"updatedAt"`
    48  WorkflowEnabled             bool                                    `json:"workflowEnabled"`
    49  }
    50  ```
    51  
    52  AiWorkflowsWorkflow represents a New Relic AI workflow.
    53  
    54  #### func (*Workflows) AiWorkflowsCreateWorkflow
    55  
    56  ```go
    57  func (a *Workflows) AiWorkflowsCreateWorkflow(accountID int,createWorkflowData AiWorkflowsCreateWorkflowInput) (*AiWorkflowsCreateWorkflowResponse, error)
    58  ```
    59  AiWorkflowsCreateWorkflow creates a new workflow for a given account.
    60  
    61  #### func (*Workflows) GetWorkflows
    62  
    63  ```go
    64  func (a *Workflows) GetWorkflows(accountID int,cursor string, filters ai.AiWorkflowsFilters) (*AiWorkflowsWorkflows, error)
    65  ```
    66  GetWorkflows returns a list of workflow for a given account. You can filter by ID.
    67  
    68  #### func (*Workflows) AiWorkflowsUpdateWorkflow
    69  
    70  ```go
    71  func (a *Workflows) AiWorkflowsUpdateWorkflow(accountID int,updateWorkflowData AiWorkflowsUpdateWorkflowInput) (*AiWorkflowsUpdateWorkflowResponse, error)
    72  ```
    73  AiWorkflowsUpdateWorkflow update a workflow for a given account.
    74  
    75  #### type AiWorkflowsDeleteWorkflow
    76  
    77  ```go
    78  func (a *Workflows) AiWorkflowsDeleteWorkflow(accountID int, iD string) (*AiWorkflowsDeleteWorkflowResponse, error)
    79  ```
    80  
    81  AiWorkflowsDeleteWorkflow delete a workflow for a given account.