workflows

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by tutone: DO NOT EDIT

Code generated by tutone: DO NOT EDIT

Index

Constants

View Source
const AiWorkflowsCreateWorkflowMutation = `` /* 760-byte string literal not displayed */
View Source
const AiWorkflowsDeleteWorkflowMutation = `` /* 150-byte string literal not displayed */
View Source
const AiWorkflowsUpdateWorkflowMutation = `` /* 760-byte string literal not displayed */

Variables

View Source
var AiWorkflowsCreateErrorTypeTypes = struct {
	// We couldn't find a channel with the given id
	CHANNEL_NOT_FOUND AiWorkflowsCreateErrorType
	// A workflow with this name already exists
	DUPLICATE AiWorkflowsCreateErrorType
	// One or more of the parameters you provided are incorrect
	INVALID_PARAMETER AiWorkflowsCreateErrorType
	// Reached the maximum number of workflows per account
	LIMIT_REACHED AiWorkflowsCreateErrorType
	// This account is missing the required entitlement(s) to perform this action
	MISSING_ENTITLEMENT AiWorkflowsCreateErrorType
	// This account in not authorized to perform this action
	UNAUTHORIZED_ACCOUNT AiWorkflowsCreateErrorType
	// The given channel id represents an unsupported channel type
	UNSUPPORTED_CHANNEL_TYPE AiWorkflowsCreateErrorType
	// The parameter provided does not have a valid form
	VALIDATION_ERROR AiWorkflowsCreateErrorType
}{

	CHANNEL_NOT_FOUND: "CHANNEL_NOT_FOUND",

	DUPLICATE: "DUPLICATE",

	INVALID_PARAMETER: "INVALID_PARAMETER",

	LIMIT_REACHED: "LIMIT_REACHED",

	MISSING_ENTITLEMENT: "MISSING_ENTITLEMENT",

	UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",

	UNSUPPORTED_CHANNEL_TYPE: "UNSUPPORTED_CHANNEL_TYPE",

	VALIDATION_ERROR: "VALIDATION_ERROR",
}
View Source
var AiWorkflowsDeleteErrorTypeTypes = struct {
	// One or more of the parameters you provided are incorrect
	INVALID_PARAMETER AiWorkflowsDeleteErrorType
	// This account in not authorized to perform this action
	UNAUTHORIZED_ACCOUNT AiWorkflowsDeleteErrorType
	// The parameter provided does not have a valid form
	VALIDATION_ERROR AiWorkflowsDeleteErrorType
}{

	INVALID_PARAMETER: "INVALID_PARAMETER",

	UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",

	VALIDATION_ERROR: "VALIDATION_ERROR",
}
View Source
var AiWorkflowsDestinationTypeTypes = struct {
	// Email Destination Configuration type
	EMAIL AiWorkflowsDestinationType
	// Event Bridge Destination Configuration type
	EVENT_BRIDGE AiWorkflowsDestinationType
	// Jira Destination Configuration type
	JIRA AiWorkflowsDestinationType
	// New Relic Mobile Push Destination Configuration type
	MOBILE_PUSH AiWorkflowsDestinationType
	// Pager Duty Destination Configuration type
	PAGERDUTY AiWorkflowsDestinationType
	// Pager Duty with account integration Destination Configuration type
	PAGERDUTY_ACCOUNT_INTEGRATION AiWorkflowsDestinationType
	// Pager Duty with service integration Destination Configuration type
	PAGERDUTY_SERVICE_INTEGRATION AiWorkflowsDestinationType
	// Service Now Destination Configuration type
	SERVICE_NOW AiWorkflowsDestinationType
	// Slack Destination Configuration type
	SLACK AiWorkflowsDestinationType
	// Webhook Destination Configuration type
	WEBHOOK AiWorkflowsDestinationType
}{

	EMAIL: "EMAIL",

	EVENT_BRIDGE: "EVENT_BRIDGE",

	JIRA: "JIRA",

	MOBILE_PUSH: "MOBILE_PUSH",

	PAGERDUTY: "PAGERDUTY",

	PAGERDUTY_ACCOUNT_INTEGRATION: "PAGERDUTY_ACCOUNT_INTEGRATION",

	PAGERDUTY_SERVICE_INTEGRATION: "PAGERDUTY_SERVICE_INTEGRATION",

	SERVICE_NOW: "SERVICE_NOW",

	SLACK: "SLACK",

	WEBHOOK: "WEBHOOK",
}
View Source
var AiWorkflowsEnrichmentTypeTypes = struct {
	// NRQL Enrichment type
	NRQL AiWorkflowsEnrichmentType
}{

	NRQL: "NRQL",
}
View Source
var AiWorkflowsFilterTypeTypes = struct {
	// Standard Filter type
	FILTER AiWorkflowsFilterType
	// View Filter type
	VIEW AiWorkflowsFilterType
}{

	FILTER: "FILTER",

	VIEW: "VIEW",
}
View Source
var AiWorkflowsMutingRulesHandlingTypes = struct {
	// Notify only about partially muted and unmuted issues
	DONT_NOTIFY_FULLY_MUTED_ISSUES AiWorkflowsMutingRulesHandling
	// Notify only about unmuted issues
	DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES AiWorkflowsMutingRulesHandling
	// Notify about all issues
	NOTIFY_ALL_ISSUES AiWorkflowsMutingRulesHandling
}{

	DONT_NOTIFY_FULLY_MUTED_ISSUES: "DONT_NOTIFY_FULLY_MUTED_ISSUES",

	DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES: "DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES",

	NOTIFY_ALL_ISSUES: "NOTIFY_ALL_ISSUES",
}
View Source
var AiWorkflowsOperatorTypes = struct {
	// String or list attribute contains this value
	CONTAINS AiWorkflowsOperator
	// String or list attribute does not contain this value
	DOES_NOT_CONTAIN AiWorkflowsOperator
	// String or Numeric attribute does not equal this value
	DOES_NOT_EQUAL AiWorkflowsOperator
	// Element in list attribute does not exactly match this value
	DOES_NOT_EXACTLY_MATCH AiWorkflowsOperator
	// String attribute ends with this value
	ENDS_WITH AiWorkflowsOperator
	// String or Numeric attribute equals this value
	EQUAL AiWorkflowsOperator
	// Element in list attribute exactly matches this value
	EXACTLY_MATCHES AiWorkflowsOperator
	// Numeric attribute is greater or equal to this value
	GREATER_OR_EQUAL AiWorkflowsOperator
	// Numeric attribute is greater than this value
	GREATER_THAN AiWorkflowsOperator
	// Boolean attribute equals value
	IS AiWorkflowsOperator
	// Boolean attribute does not equal value
	IS_NOT AiWorkflowsOperator
	// Numeric attribute is less or equal to this value
	LESS_OR_EQUAL AiWorkflowsOperator
	// Numeric attribute is less than this value
	LESS_THAN AiWorkflowsOperator
	// String attribute starts with this value
	STARTS_WITH AiWorkflowsOperator
}{

	CONTAINS: "CONTAINS",

	DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN",

	DOES_NOT_EQUAL: "DOES_NOT_EQUAL",

	DOES_NOT_EXACTLY_MATCH: "DOES_NOT_EXACTLY_MATCH",

	ENDS_WITH: "ENDS_WITH",

	EQUAL: "EQUAL",

	EXACTLY_MATCHES: "EXACTLY_MATCHES",

	GREATER_OR_EQUAL: "GREATER_OR_EQUAL",

	GREATER_THAN: "GREATER_THAN",

	IS: "IS",

	IS_NOT: "IS_NOT",

	LESS_OR_EQUAL: "LESS_OR_EQUAL",

	LESS_THAN: "LESS_THAN",

	STARTS_WITH: "STARTS_WITH",
}
View Source
var AiWorkflowsTestErrorTypeTypes = struct {
	// We couldn't find a channel with the given id
	CHANNEL_NOT_FOUND AiWorkflowsTestErrorType
	// Failed running test workflow
	FAILED_RUNNING_TEST AiWorkflowsTestErrorType
	// This account is missing the required entitlement(s) to perform this action
	MISSING_ENTITLEMENT AiWorkflowsTestErrorType
	// This account is not allowed to preform this action
	UNAUTHORIZED_ACCOUNT AiWorkflowsTestErrorType
	// The given channel id represents an unsupported channel type
	UNSUPPORTED_CHANNEL_TYPE AiWorkflowsTestErrorType
	// The parameter provided does not have a valid form
	VALIDATION_ERROR AiWorkflowsTestErrorType
	// Failed to send a notification to the channel
	WARNING_FAILED_SENDING_NOTIFICATION AiWorkflowsTestErrorType
	// There are no issues that match this filter
	WARNING_NO_FILTERED_ISSUE_FOUND AiWorkflowsTestErrorType
	// There are no issues that match these dynamic variables
	WARNING_NO_MATCHING_DYNAMIC_VARIABLES_FOUND AiWorkflowsTestErrorType
}{

	CHANNEL_NOT_FOUND: "CHANNEL_NOT_FOUND",

	FAILED_RUNNING_TEST: "FAILED_RUNNING_TEST",

	MISSING_ENTITLEMENT: "MISSING_ENTITLEMENT",

	UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",

	UNSUPPORTED_CHANNEL_TYPE: "UNSUPPORTED_CHANNEL_TYPE",

	VALIDATION_ERROR: "VALIDATION_ERROR",

	WARNING_FAILED_SENDING_NOTIFICATION: "WARNING_FAILED_SENDING_NOTIFICATION",

	WARNING_NO_FILTERED_ISSUE_FOUND: "WARNING_NO_FILTERED_ISSUE_FOUND",

	WARNING_NO_MATCHING_DYNAMIC_VARIABLES_FOUND: "WARNING_NO_MATCHING_DYNAMIC_VARIABLES_FOUND",
}
View Source
var AiWorkflowsUpdateErrorTypeTypes = struct {
	// We couldn't find a channel with the given id
	CHANNEL_NOT_FOUND AiWorkflowsUpdateErrorType
	// A workflow with this name already exists
	DUPLICATE AiWorkflowsUpdateErrorType
	// One or more of the parameters you provided are incorrect
	INVALID_PARAMETER AiWorkflowsUpdateErrorType
	// This account is missing the required entitlement(s) to perform this action
	MISSING_ENTITLEMENT AiWorkflowsUpdateErrorType
	// This account in not authorized to perform this action
	UNAUTHORIZED_ACCOUNT AiWorkflowsUpdateErrorType
	// The given channel id represents an unsupported channel type
	UNSUPPORTED_CHANNEL_TYPE AiWorkflowsUpdateErrorType
	// The parameter provided does not have a valid form
	VALIDATION_ERROR AiWorkflowsUpdateErrorType
}{

	CHANNEL_NOT_FOUND: "CHANNEL_NOT_FOUND",

	DUPLICATE: "DUPLICATE",

	INVALID_PARAMETER: "INVALID_PARAMETER",

	MISSING_ENTITLEMENT: "MISSING_ENTITLEMENT",

	UNAUTHORIZED_ACCOUNT: "UNAUTHORIZED_ACCOUNT",

	UNSUPPORTED_CHANNEL_TYPE: "UNSUPPORTED_CHANNEL_TYPE",

	VALIDATION_ERROR: "VALIDATION_ERROR",
}

Functions

This section is empty.

Types

type Account

type Account struct {
	// This field provides access to AiWorkflows data.
	AiWorkflows AiWorkflowsAccountStitchedFields `json:"aiWorkflows,omitempty"`
	//
	ID int `json:"id,omitempty"`
	//
	LicenseKey string `json:"licenseKey,omitempty"`
	//
	Name string `json:"name,omitempty"`
}

Account - The `Account` object provides general data about the account, as well as being the entry point into more detailed data about a single account.

Account configuration data is queried through this object, as well as telemetry data that is specific to a single account.

type Actor

type Actor struct {
	// The `account` field is the entry point into data that is scoped to a single account.
	Account Account `json:"account,omitempty"`
}

Actor - The `Actor` object contains fields that are scoped to the API user's access level.

type AiWorkflowsAccountStitchedFields

type AiWorkflowsAccountStitchedFields struct {
	// Returns a list of workflows with pagination cursor according to account id and filters
	Workflows AiWorkflowsWorkflows `json:"workflows,omitempty"`
}

AiWorkflowsAccountStitchedFields -

type AiWorkflowsCreateErrorType

type AiWorkflowsCreateErrorType string

AiWorkflowsCreateErrorType - Type of create error

type AiWorkflowsCreateResponseError

type AiWorkflowsCreateResponseError struct {
	// The error description
	Description string `json:"description"`
	// The error type
	Type AiWorkflowsCreateErrorType `json:"type"`
}

AiWorkflowsCreateResponseError - Create error description

func (*AiWorkflowsCreateResponseError) ImplementsAiWorkflowsResponseError

func (x *AiWorkflowsCreateResponseError) ImplementsAiWorkflowsResponseError()

type AiWorkflowsCreateWorkflowInput

type AiWorkflowsCreateWorkflowInput struct {
	// destinationConfigurations
	DestinationConfigurations []AiWorkflowsDestinationConfigurationInput `json:"destinationConfigurations,omitempty"`
	// destinationsEnabled
	DestinationsEnabled bool `json:"destinationsEnabled,omitempty"`
	// enrichments
	Enrichments *AiWorkflowsEnrichmentsInput `json:"enrichments,omitempty"`
	// enrichmentsEnabled
	EnrichmentsEnabled bool `json:"enrichmentsEnabled,omitempty"`
	// issuesFilter
	IssuesFilter AiWorkflowsFilterInput `json:"issuesFilter,omitempty"`
	// mutingRulesHandling
	MutingRulesHandling AiWorkflowsMutingRulesHandling `json:"mutingRulesHandling"`
	// name
	Name string `json:"name"`
	// workflowEnabled
	WorkflowEnabled bool `json:"workflowEnabled,omitempty"`
}

AiWorkflowsCreateWorkflowInput - Workflow input object

type AiWorkflowsCreateWorkflowQueryResponse

type AiWorkflowsCreateWorkflowQueryResponse struct {
	AiWorkflowsCreateWorkflowResponse AiWorkflowsCreateWorkflowResponse `json:"AiWorkflowsCreateWorkflow"`
}

type AiWorkflowsCreateWorkflowResponse

type AiWorkflowsCreateWorkflowResponse struct {
	// A list of errors that occurred while performing the create workflow action
	Errors []AiWorkflowsCreateResponseError `json:"errors"`
	// Successfully created workflow
	Workflow AiWorkflowsWorkflow `json:"workflow,omitempty"`
}

AiWorkflowsCreateWorkflowResponse - Create workflow mutation response including errors

type AiWorkflowsDeleteErrorType

type AiWorkflowsDeleteErrorType string

AiWorkflowsDeleteErrorType - Type of delete error

type AiWorkflowsDeleteResponseError

type AiWorkflowsDeleteResponseError struct {
	// The error description
	Description string `json:"description"`
	// The error type
	Type AiWorkflowsDeleteErrorType `json:"type"`
}

AiWorkflowsDeleteResponseError - Delete error description

func (*AiWorkflowsDeleteResponseError) ImplementsAiWorkflowsResponseError

func (x *AiWorkflowsDeleteResponseError) ImplementsAiWorkflowsResponseError()

type AiWorkflowsDeleteWorkflowQueryResponse

type AiWorkflowsDeleteWorkflowQueryResponse struct {
	AiWorkflowsDeleteWorkflowResponse AiWorkflowsDeleteWorkflowResponse `json:"AiWorkflowsDeleteWorkflow"`
}

type AiWorkflowsDeleteWorkflowResponse

type AiWorkflowsDeleteWorkflowResponse struct {
	// A list of errors that occurred while performing the delete workflow action
	Errors []AiWorkflowsDeleteResponseError `json:"errors"`
	// Id of the successfully deleted workflow
	ID string `json:"id,omitempty"`
}

AiWorkflowsDeleteWorkflowResponse - Delete workflow mutation response including errors

type AiWorkflowsDestinationConfiguration

type AiWorkflowsDestinationConfiguration struct {
	// Channel Id of the Destination Configuration
	ChannelId string `json:"channelId"`
	// Name of the Destination Configuration
	Name string `json:"name"`
	// Type of the Destination Configuration
	Type AiWorkflowsDestinationType `json:"type"`
}

AiWorkflowsDestinationConfiguration - Destination Configuration Object

type AiWorkflowsDestinationConfigurationInput

type AiWorkflowsDestinationConfigurationInput struct {
	// channelId
	ChannelId string `json:"channelId"`
}

AiWorkflowsDestinationConfigurationInput - Destination Configuration input object

type AiWorkflowsDestinationType

type AiWorkflowsDestinationType string

AiWorkflowsDestinationType - Type of Destination Configuration

type AiWorkflowsEnrichment

type AiWorkflowsEnrichment struct {
	// Account Id of the Enrichment
	AccountID int `json:"accountId"`
	// List of configurations for the enrichment
	Configurations []ai.AiWorkflowsConfiguration `json:"configurations"`
	// The time the Enrichment was created
	CreatedAt nrtime.DateTime `json:"createdAt"`
	// Enrichment Id
	ID string `json:"id"`
	// Name of the Enrichment
	Name string `json:"name"`
	// Type of the Enrichment
	Type AiWorkflowsEnrichmentType `json:"type"`
	// The time the Enrichment was last updated
	UpdatedAt nrtime.DateTime `json:"updatedAt"`
}

AiWorkflowsEnrichment - Makes it possible to augment the notification with additional data from the New Relic platform

type AiWorkflowsEnrichmentType

type AiWorkflowsEnrichmentType string

AiWorkflowsEnrichmentType - Type of Enrichment

type AiWorkflowsEnrichmentsInput

type AiWorkflowsEnrichmentsInput struct {
	// nrql
	NRQL []AiWorkflowsNRQLEnrichmentInput `json:"nrql,omitempty"`
}

AiWorkflowsEnrichmentsInput - Enrichment input object

type AiWorkflowsFilter

type AiWorkflowsFilter struct {
	// Account Id of this Filter
	AccountID int `json:"accountId"`
	// Filter Id
	ID string `json:"id"`
	// Name of the Filter
	Name string `json:"name"`
	// Expressions that determine which issues will be handled
	Predicates []AiWorkflowsPredicate `json:"predicates"`
	// The type of the Filter
	Type AiWorkflowsFilterType `json:"type"`
}

AiWorkflowsFilter - Filter Object

type AiWorkflowsFilterInput

type AiWorkflowsFilterInput struct {
	// name
	Name string `json:"name,omitempty"`
	// predicates
	Predicates []AiWorkflowsPredicateInput `json:"predicates,omitempty"`
	// type
	Type AiWorkflowsFilterType `json:"type"`
}

AiWorkflowsFilterInput - Filter input object

type AiWorkflowsFilterType

type AiWorkflowsFilterType string

AiWorkflowsFilterType - Type of Filter

type AiWorkflowsFilters

type AiWorkflowsFilters struct {
	// channelId
	ChannelId string `json:"channelId,omitempty"`
	// destinationType
	DestinationType AiWorkflowsDestinationType `json:"destinationType,omitempty"`
	// enrichmentId
	EnrichmentId string `json:"enrichmentId,omitempty"`
	// filterId
	FilterId string `json:"filterId,omitempty"`
	// id
	ID string `json:"id,omitempty"`
	// name
	Name string `json:"name,omitempty"`
	// workflowEnabled
	WorkflowEnabled bool `json:"workflowEnabled,omitempty"`
}

AiWorkflowsFilters - Filter on the workflow objects

type AiWorkflowsMutingRulesHandling

type AiWorkflowsMutingRulesHandling string

AiWorkflowsMutingRulesHandling - The wanted behavior for muted issues in the workflow

type AiWorkflowsNRQLConfigurationInput

type AiWorkflowsNRQLConfigurationInput struct {
	// query
	Query string `json:"query"`
}

AiWorkflowsNRQLConfigurationInput - NRQL type configuration input object

type AiWorkflowsNRQLEnrichmentInput

type AiWorkflowsNRQLEnrichmentInput struct {
	// configuration
	Configuration []AiWorkflowsNRQLConfigurationInput `json:"configuration,omitempty"`
	// name
	Name string `json:"name"`
}

AiWorkflowsNRQLEnrichmentInput - NRQL type enrichment input object

type AiWorkflowsNRQLUpdateEnrichmentInput

type AiWorkflowsNRQLUpdateEnrichmentInput struct {
	// configuration
	Configuration []AiWorkflowsNRQLConfigurationInput `json:"configuration,omitempty"`
	// id
	ID string `json:"id,omitempty"`
	// name
	Name string `json:"name"`
}

AiWorkflowsNRQLUpdateEnrichmentInput - NRQL type update enrichment input object

type AiWorkflowsOperator

type AiWorkflowsOperator string

AiWorkflowsOperator - Type of Filter

type AiWorkflowsPredicate

type AiWorkflowsPredicate struct {
	// Field name in the issue event
	Attribute string `json:"attribute"`
	// Type of operator used to match the values
	Operator AiWorkflowsOperator `json:"operator"`
	// Values to compare
	Values []string `json:"values"`
}

AiWorkflowsPredicate - Predicate Object

type AiWorkflowsPredicateInput

type AiWorkflowsPredicateInput struct {
	// attribute
	Attribute string `json:"attribute"`
	// operator
	Operator AiWorkflowsOperator `json:"operator"`
	// values
	Values []string `json:"values"`
}

AiWorkflowsPredicateInput - PredicateInput input object

type AiWorkflowsResponseError

type AiWorkflowsResponseError struct {
	// The error description
	Description string `json:"description"`
}

AiWorkflowsResponseError - Error description

func (*AiWorkflowsResponseError) ImplementsAiWorkflowsResponseError

func (x *AiWorkflowsResponseError) ImplementsAiWorkflowsResponseError()

type AiWorkflowsResponseErrorInterface

type AiWorkflowsResponseErrorInterface interface {
	ImplementsAiWorkflowsResponseError()
}

AiWorkflowsResponseError - Error description

func UnmarshalAiWorkflowsResponseErrorInterface

func UnmarshalAiWorkflowsResponseErrorInterface(b []byte) (*AiWorkflowsResponseErrorInterface, error)

UnmarshalAiWorkflowsResponseErrorInterface unmarshals the interface into the correct type based on __typename provided by GraphQL

type AiWorkflowsTestErrorType

type AiWorkflowsTestErrorType string

AiWorkflowsTestErrorType - Type of test error

type AiWorkflowsTestResponseError

type AiWorkflowsTestResponseError struct {
	// The error description
	Description string `json:"description"`
	// The error type
	Type AiWorkflowsTestErrorType `json:"type"`
}

AiWorkflowsTestResponseError - Test error description

func (*AiWorkflowsTestResponseError) ImplementsAiWorkflowsResponseError

func (x *AiWorkflowsTestResponseError) ImplementsAiWorkflowsResponseError()

type AiWorkflowsUpdateEnrichmentsInput

type AiWorkflowsUpdateEnrichmentsInput struct {
	// nrql
	NRQL []AiWorkflowsNRQLUpdateEnrichmentInput `json:"nrql,omitempty"`
}

AiWorkflowsUpdateEnrichmentsInput - Update Enrichment input object

type AiWorkflowsUpdateErrorType

type AiWorkflowsUpdateErrorType string

AiWorkflowsUpdateErrorType - Type of update error

type AiWorkflowsUpdateResponseError

type AiWorkflowsUpdateResponseError struct {
	// The error description
	Description string `json:"description"`
	// The error type
	Type AiWorkflowsUpdateErrorType `json:"type"`
}

AiWorkflowsUpdateResponseError - Update error description

func (*AiWorkflowsUpdateResponseError) ImplementsAiWorkflowsResponseError

func (x *AiWorkflowsUpdateResponseError) ImplementsAiWorkflowsResponseError()

type AiWorkflowsUpdateWorkflowInput

type AiWorkflowsUpdateWorkflowInput struct {
	// destinationConfigurations
	DestinationConfigurations *[]AiWorkflowsDestinationConfigurationInput `json:"destinationConfigurations,omitempty"`
	// destinationsEnabled
	DestinationsEnabled *bool `json:"destinationsEnabled,omitempty"`
	// enrichments
	Enrichments *AiWorkflowsUpdateEnrichmentsInput `json:"enrichments,omitempty"`
	// enrichmentsEnabled
	EnrichmentsEnabled *bool `json:"enrichmentsEnabled,omitempty"`
	// id
	ID string `json:"id"`
	// issuesFilter
	IssuesFilter *AiWorkflowsUpdatedFilterInput `json:"issuesFilter,omitempty"`
	// mutingRulesHandling
	MutingRulesHandling AiWorkflowsMutingRulesHandling `json:"mutingRulesHandling,omitempty"`
	// name
	Name *string `json:"name,omitempty"`
	// workflowEnabled
	WorkflowEnabled *bool `json:"workflowEnabled,omitempty"`
}

AiWorkflowsUpdateWorkflowInput - Update Workflow input object

type AiWorkflowsUpdateWorkflowQueryResponse

type AiWorkflowsUpdateWorkflowQueryResponse struct {
	AiWorkflowsUpdateWorkflowResponse AiWorkflowsUpdateWorkflowResponse `json:"AiWorkflowsUpdateWorkflow"`
}

type AiWorkflowsUpdateWorkflowResponse

type AiWorkflowsUpdateWorkflowResponse struct {
	// A list of errors that occurred while performing the update workflow action
	Errors []AiWorkflowsUpdateResponseError `json:"errors"`
	// Successfully updated workflow
	Workflow AiWorkflowsWorkflow `json:"workflow,omitempty"`
}

AiWorkflowsUpdateWorkflowResponse - Update workflow mutation response including errors

type AiWorkflowsUpdatedFilterInput

type AiWorkflowsUpdatedFilterInput struct {
	// filterInput
	FilterInput AiWorkflowsFilterInput `json:"filterInput,omitempty"`
	// id
	ID string `json:"id,omitempty"`
}

AiWorkflowsUpdatedFilterInput - Update Filter input object

type AiWorkflowsWorkflow

type AiWorkflowsWorkflow struct {
	// Account Id of this Workflow
	AccountID int `json:"accountId"`
	// The time the Workflow was created
	CreatedAt nrtime.DateTime `json:"createdAt"`
	// Specifies where to send the notifications
	DestinationConfigurations []AiWorkflowsDestinationConfiguration `json:"destinationConfigurations"`
	// Are Destinations enabled
	DestinationsEnabled bool `json:"destinationsEnabled"`
	// List of enrichments that are attached to the notifications
	Enrichments []AiWorkflowsEnrichment `json:"enrichments"`
	// Are Enrichments enabled
	EnrichmentsEnabled bool `json:"enrichmentsEnabled"`
	// Workflow Id
	ID string `json:"id"`
	// Specifies which issues the workflow will handle
	IssuesFilter AiWorkflowsFilter `json:"issuesFilter"`
	// Last time a notification was sent regarding this workflow
	LastRun nrtime.DateTime `json:"lastRun,omitempty"`
	// Describes how to handle muted issues
	MutingRulesHandling AiWorkflowsMutingRulesHandling `json:"mutingRulesHandling"`
	// Name of the Workflow
	Name string `json:"name"`
	// The time the Workflow was last updated
	UpdatedAt nrtime.DateTime `json:"updatedAt"`
	// Is Workflow enabled
	WorkflowEnabled bool `json:"workflowEnabled"`
}

AiWorkflowsWorkflow - Workflow object

type AiWorkflowsWorkflows

type AiWorkflowsWorkflows struct {
	// List of all workflows
	Entities []AiWorkflowsWorkflow `json:"entities"`
	// Cursor to get the next batch of results
	NextCursor string `json:"nextCursor,omitempty"`
	// Total count of all workflows
	TotalCount int `json:"totalCount"`
}

AiWorkflowsWorkflows - Workflows query response

type Workflows

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

Workflows are used to communicate with New Relic Workflows.

func New

func New(config config.Config) Workflows

New is used to create a new Workflows' client instance.

func (*Workflows) AiWorkflowsCreateWorkflow

func (a *Workflows) AiWorkflowsCreateWorkflow(
	accountID int,
	createWorkflowData AiWorkflowsCreateWorkflowInput,
) (*AiWorkflowsCreateWorkflowResponse, error)

Create a new Workflow with issues filter, enrichments and destinations

func (*Workflows) AiWorkflowsCreateWorkflowWithContext

func (a *Workflows) AiWorkflowsCreateWorkflowWithContext(
	ctx context.Context,
	accountID int,
	createWorkflowData AiWorkflowsCreateWorkflowInput,
) (*AiWorkflowsCreateWorkflowResponse, error)

Create a new Workflow with issues filter, enrichments and destinations

func (*Workflows) AiWorkflowsDeleteWorkflow

func (a *Workflows) AiWorkflowsDeleteWorkflow(
	accountID int,
	iD string,
) (*AiWorkflowsDeleteWorkflowResponse, error)

Delete a workflow and all it's sub entities: filter, enrichments and destinations

func (*Workflows) AiWorkflowsDeleteWorkflowWithContext

func (a *Workflows) AiWorkflowsDeleteWorkflowWithContext(
	ctx context.Context,
	accountID int,
	iD string,
) (*AiWorkflowsDeleteWorkflowResponse, error)

Delete a workflow and all it's sub entities: filter, enrichments and destinations

func (*Workflows) AiWorkflowsUpdateWorkflow

func (a *Workflows) AiWorkflowsUpdateWorkflow(
	accountID int,
	updateWorkflowData AiWorkflowsUpdateWorkflowInput,
) (*AiWorkflowsUpdateWorkflowResponse, error)

Update Workflow with issues filter, enrichments and destinations

func (*Workflows) AiWorkflowsUpdateWorkflowWithContext

func (a *Workflows) AiWorkflowsUpdateWorkflowWithContext(
	ctx context.Context,
	accountID int,
	updateWorkflowData AiWorkflowsUpdateWorkflowInput,
) (*AiWorkflowsUpdateWorkflowResponse, error)

Update Workflow with issues filter, enrichments and destinations

func (*Workflows) GetWorkflows

func (a *Workflows) GetWorkflows(
	accountID int,
	cursor string,
	filters ai.AiWorkflowsFilters,
) (*AiWorkflowsWorkflows, error)

Returns a list of workflows with pagination cursor according to account id and filters

func (*Workflows) GetWorkflowsWithContext

func (a *Workflows) GetWorkflowsWithContext(
	ctx context.Context,
	accountID int,
	cursor string,
	filters ai.AiWorkflowsFilters,
) (*AiWorkflowsWorkflows, error)

Returns a list of workflows with pagination cursor according to account id and filters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL