v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=workflow.newrelic.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "workflow.newrelic.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Workflow_Kind             = "Workflow"
	Workflow_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Workflow_Kind}.String()
	Workflow_KindAPIVersion   = Workflow_Kind + "." + CRDGroupVersion.String()
	Workflow_GroupVersionKind = CRDGroupVersion.WithKind(Workflow_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type ConfigurationInitParameters

type ConfigurationInitParameters struct {

	// An NRQL query to run
	// enrichment's NRQL query
	Query *string `json:"query,omitempty" tf:"query,omitempty"`
}

func (*ConfigurationInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationInitParameters.

func (*ConfigurationInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigurationObservation

type ConfigurationObservation struct {

	// An NRQL query to run
	// enrichment's NRQL query
	Query *string `json:"query,omitempty" tf:"query,omitempty"`
}

func (*ConfigurationObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationObservation.

func (*ConfigurationObservation) DeepCopyInto

func (in *ConfigurationObservation) DeepCopyInto(out *ConfigurationObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigurationParameters

type ConfigurationParameters struct {

	// An NRQL query to run
	// enrichment's NRQL query
	// +kubebuilder:validation:Optional
	Query *string `json:"query" tf:"query,omitempty"`
}

func (*ConfigurationParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationParameters.

func (*ConfigurationParameters) DeepCopyInto

func (in *ConfigurationParameters) DeepCopyInto(out *ConfigurationParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DestinationInitParameters

type DestinationInitParameters struct {

	// Id of a notification_channel to use for notifications. Please note that you have to use a
	// notification channel, not an alert_channel.
	// (Required) Destination's channel id.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/crossplane-provider-newrelic/apis/alert/v1alpha1.Channel
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// Reference to a Channel in alert to populate channelId.
	// +kubebuilder:validation:Optional
	ChannelIDRef *v1.Reference `json:"channelIdRef,omitempty" tf:"-"`

	// Selector for a Channel in alert to populate channelId.
	// +kubebuilder:validation:Optional
	ChannelIDSelector *v1.Selector `json:"channelIdSelector,omitempty" tf:"-"`

	// Issue events to notify on. The value is a list of possible issue events. See Notification Triggers below for details.
	// List of triggers to notify about in this destination configuration.
	NotificationTriggers []*string `json:"notificationTriggers,omitempty" tf:"notification_triggers,omitempty"`
}

func (*DestinationInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationInitParameters.

func (*DestinationInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DestinationObservation

type DestinationObservation struct {

	// Id of a notification_channel to use for notifications. Please note that you have to use a
	// notification channel, not an alert_channel.
	// (Required) Destination's channel id.
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// The name of the workflow.
	// (Required) Destination's name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Issue events to notify on. The value is a list of possible issue events. See Notification Triggers below for details.
	// List of triggers to notify about in this destination configuration.
	NotificationTriggers []*string `json:"notificationTriggers,omitempty" tf:"notification_triggers,omitempty"`

	// Type of the filter. Please just set this field to FILTER. The field is likely to be deprecated/removed in the near future.
	// (Required) The type of the destination. One of: (EMAIL, EVENT_BRIDGE, PAGERDUTY_ACCOUNT_INTEGRATION, PAGERDUTY_SERVICE_INTEGRATION, SERVICE_NOW, WEBHOOK, MOBILE_PUSH, SLACK, JIRA).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*DestinationObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationObservation.

func (*DestinationObservation) DeepCopyInto

func (in *DestinationObservation) DeepCopyInto(out *DestinationObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DestinationParameters

type DestinationParameters struct {

	// Id of a notification_channel to use for notifications. Please note that you have to use a
	// notification channel, not an alert_channel.
	// (Required) Destination's channel id.
	// +crossplane:generate:reference:type=github.com/crossplane-contrib/crossplane-provider-newrelic/apis/alert/v1alpha1.Channel
	// +kubebuilder:validation:Optional
	ChannelID *string `json:"channelId,omitempty" tf:"channel_id,omitempty"`

	// Reference to a Channel in alert to populate channelId.
	// +kubebuilder:validation:Optional
	ChannelIDRef *v1.Reference `json:"channelIdRef,omitempty" tf:"-"`

	// Selector for a Channel in alert to populate channelId.
	// +kubebuilder:validation:Optional
	ChannelIDSelector *v1.Selector `json:"channelIdSelector,omitempty" tf:"-"`

	// Issue events to notify on. The value is a list of possible issue events. See Notification Triggers below for details.
	// List of triggers to notify about in this destination configuration.
	// +kubebuilder:validation:Optional
	NotificationTriggers []*string `json:"notificationTriggers,omitempty" tf:"notification_triggers,omitempty"`
}

func (*DestinationParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationParameters.

func (*DestinationParameters) DeepCopyInto

func (in *DestinationParameters) DeepCopyInto(out *DestinationParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnrichmentsInitParameters

type EnrichmentsInitParameters struct {

	// a wrapper block
	// (Required) Nrql type Enrichments.
	Nrql []NrqlInitParameters `json:"nrql,omitempty" tf:"nrql,omitempty"`
}

func (*EnrichmentsInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnrichmentsInitParameters.

func (*EnrichmentsInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnrichmentsObservation

type EnrichmentsObservation struct {

	// a wrapper block
	// (Required) Nrql type Enrichments.
	Nrql []NrqlObservation `json:"nrql,omitempty" tf:"nrql,omitempty"`
}

func (*EnrichmentsObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnrichmentsObservation.

func (*EnrichmentsObservation) DeepCopyInto

func (in *EnrichmentsObservation) DeepCopyInto(out *EnrichmentsObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EnrichmentsParameters

type EnrichmentsParameters struct {

	// a wrapper block
	// (Required) Nrql type Enrichments.
	// +kubebuilder:validation:Optional
	Nrql []NrqlParameters `json:"nrql" tf:"nrql,omitempty"`
}

func (*EnrichmentsParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnrichmentsParameters.

func (*EnrichmentsParameters) DeepCopyInto

func (in *EnrichmentsParameters) DeepCopyInto(out *EnrichmentsParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IssuesFilterInitParameters

type IssuesFilterInitParameters struct {

	// The name of the filter. It can't be empty.
	// (Required) Filter's name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// A condition an issue event should satisfy to be processed by the workflow
	Predicate []PredicateInitParameters `json:"predicate,omitempty" tf:"predicate,omitempty"`

	// Type of the filter. Please just set this field to FILTER. The field is likely to be deprecated/removed in the near future.
	// (Required) The type of the filter. One of: (FILTER, VIEW).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*IssuesFilterInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuesFilterInitParameters.

func (*IssuesFilterInitParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IssuesFilterObservation

type IssuesFilterObservation struct {

	// The ID of the workflow.
	// filter id.
	FilterID *string `json:"filterId,omitempty" tf:"filter_id,omitempty"`

	// The name of the filter. It can't be empty.
	// (Required) Filter's name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// A condition an issue event should satisfy to be processed by the workflow
	Predicate []PredicateObservation `json:"predicate,omitempty" tf:"predicate,omitempty"`

	// Type of the filter. Please just set this field to FILTER. The field is likely to be deprecated/removed in the near future.
	// (Required) The type of the filter. One of: (FILTER, VIEW).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*IssuesFilterObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuesFilterObservation.

func (*IssuesFilterObservation) DeepCopyInto

func (in *IssuesFilterObservation) DeepCopyInto(out *IssuesFilterObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IssuesFilterParameters

type IssuesFilterParameters struct {

	// The name of the filter. It can't be empty.
	// (Required) Filter's name.
	// +kubebuilder:validation:Optional
	Name *string `json:"name" tf:"name,omitempty"`

	// A condition an issue event should satisfy to be processed by the workflow
	// +kubebuilder:validation:Optional
	Predicate []PredicateParameters `json:"predicate,omitempty" tf:"predicate,omitempty"`

	// Type of the filter. Please just set this field to FILTER. The field is likely to be deprecated/removed in the near future.
	// (Required) The type of the filter. One of: (FILTER, VIEW).
	// +kubebuilder:validation:Optional
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*IssuesFilterParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuesFilterParameters.

func (*IssuesFilterParameters) DeepCopyInto

func (in *IssuesFilterParameters) DeepCopyInto(out *IssuesFilterParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NrqlInitParameters

type NrqlInitParameters struct {

	// Another wrapper block
	// A set of key-value pairs to represent a enrichment configuration.
	Configuration []ConfigurationInitParameters `json:"configuration,omitempty" tf:"configuration,omitempty"`

	// The name of the workflow.
	// (Required) Enrichment's name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*NrqlInitParameters) DeepCopy

func (in *NrqlInitParameters) DeepCopy() *NrqlInitParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlInitParameters.

func (*NrqlInitParameters) DeepCopyInto

func (in *NrqlInitParameters) DeepCopyInto(out *NrqlInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NrqlObservation

type NrqlObservation struct {

	// Determines the New Relic account in which the workflow is created. Defaults to the account defined in the provider section.
	// The account id of the enrichment.
	AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Another wrapper block
	// A set of key-value pairs to represent a enrichment configuration.
	Configuration []ConfigurationObservation `json:"configuration,omitempty" tf:"configuration,omitempty"`

	// The ID of the workflow.
	// Enrichment's id.
	EnrichmentID *string `json:"enrichmentId,omitempty" tf:"enrichment_id,omitempty"`

	// The name of the workflow.
	// (Required) Enrichment's name.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Type of the filter. Please just set this field to FILTER. The field is likely to be deprecated/removed in the near future.
	// The type of the enrichment. One of: (NRQL).
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*NrqlObservation) DeepCopy

func (in *NrqlObservation) DeepCopy() *NrqlObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlObservation.

func (*NrqlObservation) DeepCopyInto

func (in *NrqlObservation) DeepCopyInto(out *NrqlObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NrqlParameters

type NrqlParameters struct {

	// Another wrapper block
	// A set of key-value pairs to represent a enrichment configuration.
	// +kubebuilder:validation:Optional
	Configuration []ConfigurationParameters `json:"configuration" tf:"configuration,omitempty"`

	// The name of the workflow.
	// (Required) Enrichment's name.
	// +kubebuilder:validation:Optional
	Name *string `json:"name" tf:"name,omitempty"`
}

func (*NrqlParameters) DeepCopy

func (in *NrqlParameters) DeepCopy() *NrqlParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlParameters.

func (*NrqlParameters) DeepCopyInto

func (in *NrqlParameters) DeepCopyInto(out *NrqlParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PredicateInitParameters

type PredicateInitParameters struct {

	// Issue event attribute to check
	// (Required) predicate's attribute.
	Attribute *string `json:"attribute,omitempty" tf:"attribute,omitempty"`

	// An operator to use to compare the attribute with the provided values, see supported operators below
	// The type of the operator. One of: (CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_EXACTLY_MATCH, ENDS_WITH, EQUAL, EXACTLY_MATCHES, GREATER_OR_EQUAL, GREATER_THAN, IS, IS_NOT, LESS_OR_EQUAL, LESS_THAN, STARTS_WITH).
	Operator *string `json:"operator,omitempty" tf:"operator,omitempty"`

	// The attribute must match any of the values in this list
	// List of predicate values.
	Values []*string `json:"values,omitempty" tf:"values,omitempty"`
}

func (*PredicateInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredicateInitParameters.

func (*PredicateInitParameters) DeepCopyInto

func (in *PredicateInitParameters) DeepCopyInto(out *PredicateInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PredicateObservation

type PredicateObservation struct {

	// Issue event attribute to check
	// (Required) predicate's attribute.
	Attribute *string `json:"attribute,omitempty" tf:"attribute,omitempty"`

	// An operator to use to compare the attribute with the provided values, see supported operators below
	// The type of the operator. One of: (CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_EXACTLY_MATCH, ENDS_WITH, EQUAL, EXACTLY_MATCHES, GREATER_OR_EQUAL, GREATER_THAN, IS, IS_NOT, LESS_OR_EQUAL, LESS_THAN, STARTS_WITH).
	Operator *string `json:"operator,omitempty" tf:"operator,omitempty"`

	// The attribute must match any of the values in this list
	// List of predicate values.
	Values []*string `json:"values,omitempty" tf:"values,omitempty"`
}

func (*PredicateObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredicateObservation.

func (*PredicateObservation) DeepCopyInto

func (in *PredicateObservation) DeepCopyInto(out *PredicateObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PredicateParameters

type PredicateParameters struct {

	// Issue event attribute to check
	// (Required) predicate's attribute.
	// +kubebuilder:validation:Optional
	Attribute *string `json:"attribute" tf:"attribute,omitempty"`

	// An operator to use to compare the attribute with the provided values, see supported operators below
	// The type of the operator. One of: (CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, DOES_NOT_EXACTLY_MATCH, ENDS_WITH, EQUAL, EXACTLY_MATCHES, GREATER_OR_EQUAL, GREATER_THAN, IS, IS_NOT, LESS_OR_EQUAL, LESS_THAN, STARTS_WITH).
	// +kubebuilder:validation:Optional
	Operator *string `json:"operator" tf:"operator,omitempty"`

	// The attribute must match any of the values in this list
	// List of predicate values.
	// +kubebuilder:validation:Optional
	Values []*string `json:"values" tf:"values,omitempty"`
}

func (*PredicateParameters) DeepCopy

func (in *PredicateParameters) DeepCopy() *PredicateParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredicateParameters.

func (*PredicateParameters) DeepCopyInto

func (in *PredicateParameters) DeepCopyInto(out *PredicateParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Workflow

type Workflow struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.issuesFilter) || (has(self.initProvider) && has(self.initProvider.issuesFilter))",message="spec.forProvider.issuesFilter is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.mutingRulesHandling) || (has(self.initProvider) && has(self.initProvider.mutingRulesHandling))",message="spec.forProvider.mutingRulesHandling is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   WorkflowSpec   `json:"spec"`
	Status WorkflowStatus `json:"status,omitempty"`
}

Workflow is the Schema for the Workflows API. Create and manage a workflow in New Relic. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,newrelic}

func (*Workflow) DeepCopy

func (in *Workflow) DeepCopy() *Workflow

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.

func (*Workflow) DeepCopyInto

func (in *Workflow) DeepCopyInto(out *Workflow)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Workflow) DeepCopyObject

func (in *Workflow) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Workflow) GetCondition

func (mg *Workflow) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Workflow.

func (*Workflow) GetConnectionDetailsMapping

func (tr *Workflow) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Workflow

func (*Workflow) GetDeletionPolicy

func (mg *Workflow) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Workflow.

func (*Workflow) GetID

func (tr *Workflow) GetID() string

GetID returns ID of underlying Terraform resource of this Workflow

func (*Workflow) GetInitParameters

func (tr *Workflow) GetInitParameters() (map[string]any, error)

GetInitParameters of this Workflow

func (*Workflow) GetManagementPolicies

func (mg *Workflow) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Workflow.

func (*Workflow) GetMergedParameters

func (tr *Workflow) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Workflow

func (*Workflow) GetObservation

func (tr *Workflow) GetObservation() (map[string]any, error)

GetObservation of this Workflow

func (*Workflow) GetParameters

func (tr *Workflow) GetParameters() (map[string]any, error)

GetParameters of this Workflow

func (*Workflow) GetProviderConfigReference

func (mg *Workflow) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Workflow.

func (*Workflow) GetPublishConnectionDetailsTo

func (mg *Workflow) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Workflow.

func (*Workflow) GetTerraformResourceType

func (mg *Workflow) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Workflow

func (*Workflow) GetTerraformSchemaVersion

func (tr *Workflow) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Workflow) GetWriteConnectionSecretToReference

func (mg *Workflow) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Workflow.

func (*Workflow) Hub added in v0.1.1

func (tr *Workflow) Hub()

Hub marks this type as a conversion hub.

func (*Workflow) LateInitialize

func (tr *Workflow) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Workflow using its observed tfState. returns True if there are any spec changes for the resource.

func (*Workflow) ResolveReferences

func (mg *Workflow) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Workflow.

func (*Workflow) SetConditions

func (mg *Workflow) SetConditions(c ...xpv1.Condition)

SetConditions of this Workflow.

func (*Workflow) SetDeletionPolicy

func (mg *Workflow) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Workflow.

func (*Workflow) SetManagementPolicies

func (mg *Workflow) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Workflow.

func (*Workflow) SetObservation

func (tr *Workflow) SetObservation(obs map[string]any) error

SetObservation for this Workflow

func (*Workflow) SetParameters

func (tr *Workflow) SetParameters(params map[string]any) error

SetParameters for this Workflow

func (*Workflow) SetProviderConfigReference

func (mg *Workflow) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Workflow.

func (*Workflow) SetPublishConnectionDetailsTo

func (mg *Workflow) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Workflow.

func (*Workflow) SetWriteConnectionSecretToReference

func (mg *Workflow) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Workflow.

type WorkflowInitParameters

type WorkflowInitParameters struct {

	// Determines the New Relic account in which the workflow is created. Defaults to the account defined in the provider section.
	// The account id of the workflow.
	AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Notification configuration. See Nested destination blocks below for details.
	// Workflow's destination configuration.
	Destination []DestinationInitParameters `json:"destination,omitempty" tf:"destination,omitempty"`

	// DEPRECATED Whether destinations are enabled. Please use enabled instead:
	// these two are different flags, but they are functionally identical. Defaults to true.
	// Indicates whether the destinations are enabled.
	DestinationsEnabled *bool `json:"destinationsEnabled,omitempty" tf:"destinations_enabled,omitempty"`

	// Whether workflow is enabled. Defaults to true.
	// Indicates whether the workflow is enabled.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// Workflow's enrichments. See Nested enrichments blocks below for details.
	// Enrichments can give additional context on alert notifications by adding NRQL query results to them.
	Enrichments []EnrichmentsInitParameters `json:"enrichments,omitempty" tf:"enrichments,omitempty"`

	// Whether enrichments are enabled. Defaults to true.
	// Indicates whether the enrichments are enabled.
	EnrichmentsEnabled *bool `json:"enrichmentsEnabled,omitempty" tf:"enrichments_enabled,omitempty"`

	// A filter used to identify issues handled by this workflow. See Nested issues_filter blocks below for details.
	IssuesFilter []IssuesFilterInitParameters `json:"issuesFilter,omitempty" tf:"issues_filter,omitempty"`

	// How to handle muted issues. See Muting Rules below for details.
	// The type of the muting rule handling. One of: (NOTIFY_ALL_ISSUES, DONT_NOTIFY_FULLY_MUTED_ISSUES, DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES).
	MutingRulesHandling *string `json:"mutingRulesHandling,omitempty" tf:"muting_rules_handling,omitempty"`

	// The name of the workflow.
	// (Required) The name of the workflow.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*WorkflowInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowInitParameters.

func (*WorkflowInitParameters) DeepCopyInto

func (in *WorkflowInitParameters) DeepCopyInto(out *WorkflowInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowList

type WorkflowList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Workflow `json:"items"`
}

WorkflowList contains a list of Workflows

func (*WorkflowList) DeepCopy

func (in *WorkflowList) DeepCopy() *WorkflowList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowList.

func (*WorkflowList) DeepCopyInto

func (in *WorkflowList) DeepCopyInto(out *WorkflowList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkflowList) DeepCopyObject

func (in *WorkflowList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*WorkflowList) GetItems

func (l *WorkflowList) GetItems() []resource.Managed

GetItems of this WorkflowList.

type WorkflowObservation

type WorkflowObservation struct {

	// Determines the New Relic account in which the workflow is created. Defaults to the account defined in the provider section.
	// The account id of the workflow.
	AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Notification configuration. See Nested destination blocks below for details.
	// Workflow's destination configuration.
	Destination []DestinationObservation `json:"destination,omitempty" tf:"destination,omitempty"`

	// DEPRECATED Whether destinations are enabled. Please use enabled instead:
	// these two are different flags, but they are functionally identical. Defaults to true.
	// Indicates whether the destinations are enabled.
	DestinationsEnabled *bool `json:"destinationsEnabled,omitempty" tf:"destinations_enabled,omitempty"`

	// Whether workflow is enabled. Defaults to true.
	// Indicates whether the workflow is enabled.
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// Workflow's enrichments. See Nested enrichments blocks below for details.
	// Enrichments can give additional context on alert notifications by adding NRQL query results to them.
	Enrichments []EnrichmentsObservation `json:"enrichments,omitempty" tf:"enrichments,omitempty"`

	// Whether enrichments are enabled. Defaults to true.
	// Indicates whether the enrichments are enabled.
	EnrichmentsEnabled *bool `json:"enrichmentsEnabled,omitempty" tf:"enrichments_enabled,omitempty"`

	// The ID of the workflow.
	// Workflow entity GUID
	GUID *string `json:"guid,omitempty" tf:"guid,omitempty"`

	// The ID of the workflow.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A filter used to identify issues handled by this workflow. See Nested issues_filter blocks below for details.
	IssuesFilter []IssuesFilterObservation `json:"issuesFilter,omitempty" tf:"issues_filter,omitempty"`

	// The last time notification was sent for this workflow.
	LastRun *string `json:"lastRun,omitempty" tf:"last_run,omitempty"`

	// How to handle muted issues. See Muting Rules below for details.
	// The type of the muting rule handling. One of: (NOTIFY_ALL_ISSUES, DONT_NOTIFY_FULLY_MUTED_ISSUES, DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES).
	MutingRulesHandling *string `json:"mutingRulesHandling,omitempty" tf:"muting_rules_handling,omitempty"`

	// The name of the workflow.
	// (Required) The name of the workflow.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The ID of the workflow.
	// The id of the workflow.
	WorkflowID *string `json:"workflowId,omitempty" tf:"workflow_id,omitempty"`
}

func (*WorkflowObservation) DeepCopy

func (in *WorkflowObservation) DeepCopy() *WorkflowObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowObservation.

func (*WorkflowObservation) DeepCopyInto

func (in *WorkflowObservation) DeepCopyInto(out *WorkflowObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowParameters

type WorkflowParameters struct {

	// Determines the New Relic account in which the workflow is created. Defaults to the account defined in the provider section.
	// The account id of the workflow.
	// +kubebuilder:validation:Optional
	AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Notification configuration. See Nested destination blocks below for details.
	// Workflow's destination configuration.
	// +kubebuilder:validation:Optional
	Destination []DestinationParameters `json:"destination,omitempty" tf:"destination,omitempty"`

	// DEPRECATED Whether destinations are enabled. Please use enabled instead:
	// these two are different flags, but they are functionally identical. Defaults to true.
	// Indicates whether the destinations are enabled.
	// +kubebuilder:validation:Optional
	DestinationsEnabled *bool `json:"destinationsEnabled,omitempty" tf:"destinations_enabled,omitempty"`

	// Whether workflow is enabled. Defaults to true.
	// Indicates whether the workflow is enabled.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// Workflow's enrichments. See Nested enrichments blocks below for details.
	// Enrichments can give additional context on alert notifications by adding NRQL query results to them.
	// +kubebuilder:validation:Optional
	Enrichments []EnrichmentsParameters `json:"enrichments,omitempty" tf:"enrichments,omitempty"`

	// Whether enrichments are enabled. Defaults to true.
	// Indicates whether the enrichments are enabled.
	// +kubebuilder:validation:Optional
	EnrichmentsEnabled *bool `json:"enrichmentsEnabled,omitempty" tf:"enrichments_enabled,omitempty"`

	// A filter used to identify issues handled by this workflow. See Nested issues_filter blocks below for details.
	// +kubebuilder:validation:Optional
	IssuesFilter []IssuesFilterParameters `json:"issuesFilter,omitempty" tf:"issues_filter,omitempty"`

	// How to handle muted issues. See Muting Rules below for details.
	// The type of the muting rule handling. One of: (NOTIFY_ALL_ISSUES, DONT_NOTIFY_FULLY_MUTED_ISSUES, DONT_NOTIFY_FULLY_OR_PARTIALLY_MUTED_ISSUES).
	// +kubebuilder:validation:Optional
	MutingRulesHandling *string `json:"mutingRulesHandling,omitempty" tf:"muting_rules_handling,omitempty"`

	// The name of the workflow.
	// (Required) The name of the workflow.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*WorkflowParameters) DeepCopy

func (in *WorkflowParameters) DeepCopy() *WorkflowParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowParameters.

func (*WorkflowParameters) DeepCopyInto

func (in *WorkflowParameters) DeepCopyInto(out *WorkflowParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowSpec

type WorkflowSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     WorkflowParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider WorkflowInitParameters `json:"initProvider,omitempty"`
}

WorkflowSpec defines the desired state of Workflow

func (*WorkflowSpec) DeepCopy

func (in *WorkflowSpec) DeepCopy() *WorkflowSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowSpec.

func (*WorkflowSpec) DeepCopyInto

func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkflowStatus

type WorkflowStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        WorkflowObservation `json:"atProvider,omitempty"`
}

WorkflowStatus defines the observed state of Workflow.

func (*WorkflowStatus) DeepCopy

func (in *WorkflowStatus) DeepCopy() *WorkflowStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStatus.

func (*WorkflowStatus) DeepCopyInto

func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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