Documentation ¶
Overview ¶
Code generated by tutone: DO NOT EDIT
Code generated by tutone: DO NOT EDIT
Index ¶
- Constants
- Variables
- type Account
- type Actor
- type AiWorkflowsAccountStitchedFields
- type AiWorkflowsCreateErrorType
- type AiWorkflowsCreateResponseError
- type AiWorkflowsCreateWorkflowInput
- type AiWorkflowsCreateWorkflowQueryResponse
- type AiWorkflowsCreateWorkflowResponse
- type AiWorkflowsDeleteErrorType
- type AiWorkflowsDeleteResponseError
- type AiWorkflowsDeleteWorkflowQueryResponse
- type AiWorkflowsDeleteWorkflowResponse
- type AiWorkflowsDestinationConfiguration
- type AiWorkflowsDestinationConfigurationInput
- type AiWorkflowsDestinationType
- type AiWorkflowsEnrichment
- type AiWorkflowsEnrichmentType
- type AiWorkflowsEnrichmentsInput
- type AiWorkflowsFilter
- type AiWorkflowsFilterInput
- type AiWorkflowsFilterType
- type AiWorkflowsFilters
- type AiWorkflowsMutingRulesHandling
- type AiWorkflowsNRQLConfigurationInput
- type AiWorkflowsNRQLEnrichmentInput
- type AiWorkflowsNRQLUpdateEnrichmentInput
- type AiWorkflowsNotificationTrigger
- type AiWorkflowsOperator
- type AiWorkflowsPredicate
- type AiWorkflowsPredicateInput
- type AiWorkflowsResponseError
- type AiWorkflowsResponseErrorInterface
- type AiWorkflowsTestErrorType
- type AiWorkflowsTestResponseError
- type AiWorkflowsUpdateEnrichmentsInput
- type AiWorkflowsUpdateErrorType
- type AiWorkflowsUpdateResponseError
- type AiWorkflowsUpdateWorkflowInput
- type AiWorkflowsUpdateWorkflowQueryResponse
- type AiWorkflowsUpdateWorkflowResponse
- type AiWorkflowsUpdatedFilterInput
- type AiWorkflowsWorkflow
- type AiWorkflowsWorkflows
- type EntityGUID
- type Workflows
- func (a *Workflows) AiWorkflowsCreateWorkflow(accountID int, createWorkflowData AiWorkflowsCreateWorkflowInput) (*AiWorkflowsCreateWorkflowResponse, error)
- func (a *Workflows) AiWorkflowsCreateWorkflowWithContext(ctx context.Context, accountID int, ...) (*AiWorkflowsCreateWorkflowResponse, error)
- func (a *Workflows) AiWorkflowsDeleteWorkflow(accountID int, deleteChannels bool, iD string) (*AiWorkflowsDeleteWorkflowResponse, error)
- func (a *Workflows) AiWorkflowsDeleteWorkflowWithContext(ctx context.Context, accountID int, deleteChannels bool, iD string) (*AiWorkflowsDeleteWorkflowResponse, error)
- func (a *Workflows) AiWorkflowsUpdateWorkflow(accountID int, deleteUnusedChannels bool, ...) (*AiWorkflowsUpdateWorkflowResponse, error)
- func (a *Workflows) AiWorkflowsUpdateWorkflowWithContext(ctx context.Context, accountID int, deleteUnusedChannels bool, ...) (*AiWorkflowsUpdateWorkflowResponse, error)
- func (a *Workflows) GetWorkflows(accountID int, cursor string, filters ai.AiWorkflowsFilters) (*AiWorkflowsWorkflows, error)
- func (a *Workflows) GetWorkflowsWithContext(ctx context.Context, accountID int, cursor string, ...) (*AiWorkflowsWorkflows, error)
Constants ¶
const AiWorkflowsCreateWorkflowMutation = `` /* 816-byte string literal not displayed */
const AiWorkflowsDeleteWorkflowMutation = `` /* 212-byte string literal not displayed */
const AiWorkflowsUpdateWorkflowMutation = `` /* 896-byte string literal not displayed */
Variables ¶
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", }
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", }
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 // ServiceNow official NewRelic app Configuration type SERVICE_NOW_APP AiWorkflowsDestinationType // Slack Destination Configuration type SLACK AiWorkflowsDestinationType // Slack legacy Destination Configuration type SLACK_LEGACY 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", SERVICE_NOW_APP: "SERVICE_NOW_APP", SLACK: "SLACK", SLACK_LEGACY: "SLACK_LEGACY", WEBHOOK: "WEBHOOK", }
var AiWorkflowsEnrichmentTypeTypes = struct { // NRQL Enrichment type NRQL AiWorkflowsEnrichmentType }{ NRQL: "NRQL", }
var AiWorkflowsFilterTypeTypes = struct { // Standard Filter type FILTER AiWorkflowsFilterType // View Filter type VIEW AiWorkflowsFilterType }{ FILTER: "FILTER", VIEW: "VIEW", }
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", }
var AiWorkflowsNotificationTriggerTypes = struct { // Send a notification when the issue is acknowledged ACKNOWLEDGED AiWorkflowsNotificationTrigger // Send a notification when the issue is activated ACTIVATED AiWorkflowsNotificationTrigger // Send a notification when the issue is closed CLOSED AiWorkflowsNotificationTrigger // Sends notification when the issue has other updates OTHER_UPDATES AiWorkflowsNotificationTrigger // Send a notification when the issue's priority has changed PRIORITY_CHANGED AiWorkflowsNotificationTrigger }{ ACKNOWLEDGED: "ACKNOWLEDGED", ACTIVATED: "ACTIVATED", CLOSED: "CLOSED", OTHER_UPDATES: "OTHER_UPDATES", PRIORITY_CHANGED: "PRIORITY_CHANGED", }
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", }
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", }
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"` // enrichments Enrichments *AiWorkflowsEnrichmentsInput `json:"enrichments,omitempty"` // enrichmentsEnabled EnrichmentsEnabled bool `json:"enrichmentsEnabled"` // issuesFilter IssuesFilter AiWorkflowsFilterInput `json:"issuesFilter,omitempty"` // mutingRulesHandling MutingRulesHandling AiWorkflowsMutingRulesHandling `json:"mutingRulesHandling"` // name Name string `json:"name"` // workflowEnabled WorkflowEnabled bool `json:"workflowEnabled"` }
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"` // Notification triggers of the Destination Configuration NotificationTriggers []AiWorkflowsNotificationTrigger `json:"notificationTriggers"` // Type of the Destination Configuration Type AiWorkflowsDestinationType `json:"type"` // Update original notification message (Slack channels only) UpdateOriginalMessage *bool `json:"updateOriginalMessage,omitempty"` }
AiWorkflowsDestinationConfiguration - Destination Configuration Object
type AiWorkflowsDestinationConfigurationInput ¶
type AiWorkflowsDestinationConfigurationInput struct { // channelId ChannelId string `json:"channelId"` // notificationTriggers NotificationTriggers []AiWorkflowsNotificationTrigger `json:"notificationTriggers"` // updateOriginalMessage UpdateOriginalMessage *bool `json:"updateOriginalMessage,omitempty"` }
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"` // guid GUID EntityGUID `json:"guid,omitempty"` // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // nameLike NameLike string `json:"nameLike,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 AiWorkflowsNotificationTrigger ¶ added in v2.7.0
type AiWorkflowsNotificationTrigger string
AiWorkflowsNotificationTrigger - Notification Triggers for the Destination Configuration
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"` }
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 this 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"` // Entity Id of the workflow GUID EntityGUID `json:"guid"` // 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 this workflow was 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 (*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, deleteChannels bool, 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, deleteChannels bool, 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, deleteUnusedChannels bool, updateWorkflowData AiWorkflowsUpdateWorkflowInput, ) (*AiWorkflowsUpdateWorkflowResponse, error)
Update Workflow with issues filter, enrichments and destinations
func (*Workflows) AiWorkflowsUpdateWorkflowWithContext ¶
func (a *Workflows) AiWorkflowsUpdateWorkflowWithContext( ctx context.Context, accountID int, deleteUnusedChannels bool, 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