Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=log.newrelic.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type ParsingRule
- func (in *ParsingRule) DeepCopy() *ParsingRule
- func (in *ParsingRule) DeepCopyInto(out *ParsingRule)
- func (in *ParsingRule) DeepCopyObject() runtime.Object
- func (mg *ParsingRule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *ParsingRule) GetConnectionDetailsMapping() map[string]string
- func (mg *ParsingRule) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *ParsingRule) GetID() string
- func (tr *ParsingRule) GetInitParameters() (map[string]any, error)
- func (mg *ParsingRule) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *ParsingRule) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *ParsingRule) GetObservation() (map[string]any, error)
- func (tr *ParsingRule) GetParameters() (map[string]any, error)
- func (mg *ParsingRule) GetProviderConfigReference() *xpv1.Reference
- func (mg *ParsingRule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *ParsingRule) GetTerraformResourceType() string
- func (tr *ParsingRule) GetTerraformSchemaVersion() int
- func (mg *ParsingRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *ParsingRule) LateInitialize(attrs []byte) (bool, error)
- func (mg *ParsingRule) SetConditions(c ...xpv1.Condition)
- func (mg *ParsingRule) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *ParsingRule) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *ParsingRule) SetObservation(obs map[string]any) error
- func (tr *ParsingRule) SetParameters(params map[string]any) error
- func (mg *ParsingRule) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *ParsingRule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *ParsingRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ParsingRuleInitParameters
- type ParsingRuleList
- type ParsingRuleObservation
- type ParsingRuleParameters
- type ParsingRuleSpec
- type ParsingRuleStatus
Constants ¶
const ( CRDGroup = "log.newrelic.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( ParsingRule_Kind = "ParsingRule" ParsingRule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ParsingRule_Kind}.String() ParsingRule_KindAPIVersion = ParsingRule_Kind + "." + CRDGroupVersion.String() ParsingRule_GroupVersionKind = CRDGroupVersion.WithKind(ParsingRule_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type ParsingRule ¶
type ParsingRule 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.enabled) || (has(self.initProvider) && has(self.initProvider.enabled))",message="spec.forProvider.enabled is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.grok) || (has(self.initProvider) && has(self.initProvider.grok))",message="spec.forProvider.grok is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.lucene) || (has(self.initProvider) && has(self.initProvider.lucene))",message="spec.forProvider.lucene 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" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.nrql) || (has(self.initProvider) && has(self.initProvider.nrql))",message="spec.forProvider.nrql is a required parameter" Spec ParsingRuleSpec `json:"spec"` Status ParsingRuleStatus `json:"status,omitempty"` }
ParsingRule is the Schema for the ParsingRules API. Create and manage Log Parsing Rule. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,newrelic}
func (*ParsingRule) DeepCopy ¶
func (in *ParsingRule) DeepCopy() *ParsingRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRule.
func (*ParsingRule) DeepCopyInto ¶
func (in *ParsingRule) DeepCopyInto(out *ParsingRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ParsingRule) DeepCopyObject ¶
func (in *ParsingRule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ParsingRule) GetCondition ¶
func (mg *ParsingRule) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this ParsingRule.
func (*ParsingRule) GetConnectionDetailsMapping ¶
func (tr *ParsingRule) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this ParsingRule
func (*ParsingRule) GetDeletionPolicy ¶
func (mg *ParsingRule) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this ParsingRule.
func (*ParsingRule) GetID ¶
func (tr *ParsingRule) GetID() string
GetID returns ID of underlying Terraform resource of this ParsingRule
func (*ParsingRule) GetInitParameters ¶
func (tr *ParsingRule) GetInitParameters() (map[string]any, error)
GetInitParameters of this ParsingRule
func (*ParsingRule) GetManagementPolicies ¶
func (mg *ParsingRule) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this ParsingRule.
func (*ParsingRule) GetMergedParameters ¶
func (tr *ParsingRule) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this ParsingRule
func (*ParsingRule) GetObservation ¶
func (tr *ParsingRule) GetObservation() (map[string]any, error)
GetObservation of this ParsingRule
func (*ParsingRule) GetParameters ¶
func (tr *ParsingRule) GetParameters() (map[string]any, error)
GetParameters of this ParsingRule
func (*ParsingRule) GetProviderConfigReference ¶
func (mg *ParsingRule) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this ParsingRule.
func (*ParsingRule) GetPublishConnectionDetailsTo ¶
func (mg *ParsingRule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this ParsingRule.
func (*ParsingRule) GetTerraformResourceType ¶
func (mg *ParsingRule) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this ParsingRule
func (*ParsingRule) GetTerraformSchemaVersion ¶
func (tr *ParsingRule) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*ParsingRule) GetWriteConnectionSecretToReference ¶
func (mg *ParsingRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this ParsingRule.
func (*ParsingRule) LateInitialize ¶
func (tr *ParsingRule) LateInitialize(attrs []byte) (bool, error)
LateInitialize this ParsingRule using its observed tfState. returns True if there are any spec changes for the resource.
func (*ParsingRule) SetConditions ¶
func (mg *ParsingRule) SetConditions(c ...xpv1.Condition)
SetConditions of this ParsingRule.
func (*ParsingRule) SetDeletionPolicy ¶
func (mg *ParsingRule) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this ParsingRule.
func (*ParsingRule) SetManagementPolicies ¶
func (mg *ParsingRule) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this ParsingRule.
func (*ParsingRule) SetObservation ¶
func (tr *ParsingRule) SetObservation(obs map[string]any) error
SetObservation for this ParsingRule
func (*ParsingRule) SetParameters ¶
func (tr *ParsingRule) SetParameters(params map[string]any) error
SetParameters for this ParsingRule
func (*ParsingRule) SetProviderConfigReference ¶
func (mg *ParsingRule) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this ParsingRule.
func (*ParsingRule) SetPublishConnectionDetailsTo ¶
func (mg *ParsingRule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this ParsingRule.
func (*ParsingRule) SetWriteConnectionSecretToReference ¶
func (mg *ParsingRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this ParsingRule.
type ParsingRuleInitParameters ¶
type ParsingRuleInitParameters struct { // The account id associated with the obfuscation rule. // The account id associated with the obfuscation expression. AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"` // The parsing rule will apply to value of this attribute. If field is not provided, value will default to message. Attribute *string `json:"attribute,omitempty" tf:"attribute,omitempty"` // Whether the rule should be applied or not to incoming data. // Whether or not this rule is enabled. Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"` // The Grok of what to parse. // The Grok of what to parse. Grok *string `json:"grok,omitempty" tf:"grok,omitempty"` // The Lucene to match events to the parsing rule. // The Lucene to match events to the parsing rule. Lucene *string `json:"lucene,omitempty" tf:"lucene,omitempty"` // Whether the Grok pattern matched. // Whether the Grok pattern matched. Matched *bool `json:"matched,omitempty" tf:"matched,omitempty"` // Name of rule. // A description of what this parsing rule represents. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The NRQL to match events to the parsing rule. // The NRQL to match events to the parsing rule. Nrql *string `json:"nrql,omitempty" tf:"nrql,omitempty"` }
func (*ParsingRuleInitParameters) DeepCopy ¶
func (in *ParsingRuleInitParameters) DeepCopy() *ParsingRuleInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleInitParameters.
func (*ParsingRuleInitParameters) DeepCopyInto ¶
func (in *ParsingRuleInitParameters) DeepCopyInto(out *ParsingRuleInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParsingRuleList ¶
type ParsingRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ParsingRule `json:"items"` }
ParsingRuleList contains a list of ParsingRules
func (*ParsingRuleList) DeepCopy ¶
func (in *ParsingRuleList) DeepCopy() *ParsingRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleList.
func (*ParsingRuleList) DeepCopyInto ¶
func (in *ParsingRuleList) DeepCopyInto(out *ParsingRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ParsingRuleList) DeepCopyObject ¶
func (in *ParsingRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ParsingRuleList) GetItems ¶
func (l *ParsingRuleList) GetItems() []resource.Managed
GetItems of this ParsingRuleList.
type ParsingRuleObservation ¶
type ParsingRuleObservation struct { // The account id associated with the obfuscation rule. // The account id associated with the obfuscation expression. AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"` // The parsing rule will apply to value of this attribute. If field is not provided, value will default to message. Attribute *string `json:"attribute,omitempty" tf:"attribute,omitempty"` // Whether or not this rule is deleted. Deleted *bool `json:"deleted,omitempty" tf:"deleted,omitempty"` // Whether the rule should be applied or not to incoming data. // Whether or not this rule is enabled. Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"` // The Grok of what to parse. // The Grok of what to parse. Grok *string `json:"grok,omitempty" tf:"grok,omitempty"` // The id of the log parsing rule. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The Lucene to match events to the parsing rule. // The Lucene to match events to the parsing rule. Lucene *string `json:"lucene,omitempty" tf:"lucene,omitempty"` // Whether the Grok pattern matched. // Whether the Grok pattern matched. Matched *bool `json:"matched,omitempty" tf:"matched,omitempty"` // Name of rule. // A description of what this parsing rule represents. Name *string `json:"name,omitempty" tf:"name,omitempty"` // The NRQL to match events to the parsing rule. // The NRQL to match events to the parsing rule. Nrql *string `json:"nrql,omitempty" tf:"nrql,omitempty"` }
func (*ParsingRuleObservation) DeepCopy ¶
func (in *ParsingRuleObservation) DeepCopy() *ParsingRuleObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleObservation.
func (*ParsingRuleObservation) DeepCopyInto ¶
func (in *ParsingRuleObservation) DeepCopyInto(out *ParsingRuleObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParsingRuleParameters ¶
type ParsingRuleParameters struct { // The account id associated with the obfuscation rule. // The account id associated with the obfuscation expression. // +kubebuilder:validation:Optional AccountID *float64 `json:"accountId,omitempty" tf:"account_id,omitempty"` // The parsing rule will apply to value of this attribute. If field is not provided, value will default to message. // +kubebuilder:validation:Optional Attribute *string `json:"attribute,omitempty" tf:"attribute,omitempty"` // Whether the rule should be applied or not to incoming data. // Whether or not this rule is enabled. // +kubebuilder:validation:Optional Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"` // The Grok of what to parse. // The Grok of what to parse. // +kubebuilder:validation:Optional Grok *string `json:"grok,omitempty" tf:"grok,omitempty"` // The Lucene to match events to the parsing rule. // The Lucene to match events to the parsing rule. // +kubebuilder:validation:Optional Lucene *string `json:"lucene,omitempty" tf:"lucene,omitempty"` // Whether the Grok pattern matched. // Whether the Grok pattern matched. // +kubebuilder:validation:Optional Matched *bool `json:"matched,omitempty" tf:"matched,omitempty"` // Name of rule. // A description of what this parsing rule represents. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The NRQL to match events to the parsing rule. // The NRQL to match events to the parsing rule. // +kubebuilder:validation:Optional Nrql *string `json:"nrql,omitempty" tf:"nrql,omitempty"` }
func (*ParsingRuleParameters) DeepCopy ¶
func (in *ParsingRuleParameters) DeepCopy() *ParsingRuleParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleParameters.
func (*ParsingRuleParameters) DeepCopyInto ¶
func (in *ParsingRuleParameters) DeepCopyInto(out *ParsingRuleParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParsingRuleSpec ¶
type ParsingRuleSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ParsingRuleParameters `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 ParsingRuleInitParameters `json:"initProvider,omitempty"` }
ParsingRuleSpec defines the desired state of ParsingRule
func (*ParsingRuleSpec) DeepCopy ¶
func (in *ParsingRuleSpec) DeepCopy() *ParsingRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleSpec.
func (*ParsingRuleSpec) DeepCopyInto ¶
func (in *ParsingRuleSpec) DeepCopyInto(out *ParsingRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParsingRuleStatus ¶
type ParsingRuleStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ParsingRuleObservation `json:"atProvider,omitempty"` }
ParsingRuleStatus defines the observed state of ParsingRule.
func (*ParsingRuleStatus) DeepCopy ¶
func (in *ParsingRuleStatus) DeepCopy() *ParsingRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParsingRuleStatus.
func (*ParsingRuleStatus) DeepCopyInto ¶
func (in *ParsingRuleStatus) DeepCopyInto(out *ParsingRuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.