Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContributionTypeWithOverrides = struct { Originalvalue ContributionTypeWithOverride Overridevalue ContributionTypeWithOverride Transformvalue ContributionTypeWithOverride }{ "OriginalValue", "OverrideValue", "TransformValue", }
View Source
var FrameworkTypes = struct { Axis FrameworkType Cxf FrameworkType Hessian FrameworkType JaxWsRi FrameworkType Jboss FrameworkType Jersey FrameworkType Progress FrameworkType Resteasy FrameworkType Restlet FrameworkType Spring FrameworkType Tibco FrameworkType Weblogic FrameworkType Webmethods FrameworkType Websphere FrameworkType Wink FrameworkType }{ "AXIS", "CXF", "HESSIAN", "JAX_WS_RI", "JBOSS", "JERSEY", "PROGRESS", "RESTEASY", "RESTLET", "SPRING", "TIBCO", "WEBLOGIC", "WEBMETHODS", "WEBSPHERE", "WINK", }
View Source
var TransformationTypes = struct { After TransformationType Before TransformationType Between TransformationType RemoveCreditCards TransformationType RemoveIbans TransformationType RemoveIps TransformationType RemoveNumbers TransformationType ReplaceBetween TransformationType SplitSelect TransformationType TakeSegments TransformationType }{ "AFTER", "BEFORE", "BETWEEN", "REMOVE_CREDIT_CARDS", "REMOVE_IBANS", "REMOVE_IPS", "REMOVE_NUMBERS", "REPLACE_BETWEEN", "SPLIT_SELECT", "TAKE_SEGMENTS", }
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Attribute string `json:"attribute"` // Take the value of this attribute CompareOperationType string `json:"compareOperationType"` // Apply this operation Framework []FrameworkType `json:"framework,omitempty"` // Technology IgnoreCase *bool `json:"ignoreCase,omitempty"` // Ignore case sensitivity for texts. IntValue *int `json:"intValue,omitempty"` // Value IntValues []int `json:"intValues,omitempty"` // Values IpRangeFrom *string `json:"ipRangeFrom,omitempty"` // From IpRangeTo *string `json:"ipRangeTo,omitempty"` // To TagValues []string `json:"tagValues,omitempty"` // If multiple values are specified, at least one of them must match for the condition to match TextValues []string `json:"textValues,omitempty"` // If multiple values are specified, at least one of them must match for the condition to match }
func (*Condition) HandlePreconditions ¶ added in v1.33.0
func (*Condition) MarshalHCL ¶
func (me *Condition) MarshalHCL(properties hcl.Properties) error
type Conditions ¶
type Conditions []*Condition
func (Conditions) MarshalHCL ¶
func (me Conditions) MarshalHCL(properties hcl.Properties) error
func (*Conditions) UnmarshalHCL ¶
func (me *Conditions) UnmarshalHCL(decoder hcl.Decoder) error
type ContributionTypeWithOverride ¶
type ContributionTypeWithOverride string
type FrameworkType ¶
type FrameworkType string
type IdContributorsType ¶
type IdContributorsType struct { DetectAsWebRequestService bool `json:"detectAsWebRequestService"` // Detect the matching requests as web request services instead of web services.\n\nThis prevents detecting of matching requests as opaque web services. An opaque web request service is created instead. If you need to further modify the resulting web request service, you need to create a separate [Opaque/external web request rule](builtin:service-detection.full-web-request). PortForServiceID *bool `json:"portForServiceId,omitempty"` // Let the port contribute to the Service Id UrlPath *ServiceIdContributor `json:"urlPath,omitempty"` // URL path }
func (*IdContributorsType) HandlePreconditions ¶ added in v1.33.0
func (me *IdContributorsType) HandlePreconditions() error
func (*IdContributorsType) MarshalHCL ¶
func (me *IdContributorsType) MarshalHCL(properties hcl.Properties) error
func (*IdContributorsType) Schema ¶
func (me *IdContributorsType) Schema() map[string]*schema.Schema
func (*IdContributorsType) UnmarshalHCL ¶
func (me *IdContributorsType) UnmarshalHCL(decoder hcl.Decoder) error
type ServiceIdContributor ¶
type ServiceIdContributor struct { EnableIdContributor bool `json:"enableIdContributor"` // Transform this value before letting it contribute to the Service Id ServiceIdContributor *TransformationSet `json:"serviceIdContributor,omitempty"` }
func (*ServiceIdContributor) HandlePreconditions ¶ added in v1.33.0
func (me *ServiceIdContributor) HandlePreconditions() error
func (*ServiceIdContributor) MarshalHCL ¶
func (me *ServiceIdContributor) MarshalHCL(properties hcl.Properties) error
func (*ServiceIdContributor) Schema ¶
func (me *ServiceIdContributor) Schema() map[string]*schema.Schema
func (*ServiceIdContributor) UnmarshalHCL ¶
func (me *ServiceIdContributor) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { Conditions Conditions `json:"conditions,omitempty"` // A list of conditions necessary for the rule to take effect. If multiple conditions are specified, they must **all** match a Request for the rule to apply. If there is no condition at all, the rule is always applied. Conditions are evaluated against attributes, but do not modify them. Description *string `json:"description,omitempty"` // Description Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`) IdContributors *IdContributorsType `json:"idContributors"` // Contributors to the Service Identifier calculation. URL path is always applied as an Id Contributor. You can exclude the port contribution by disabling the switch. ManagementZones []string `json:"managementZones,omitempty"` // Define a management zone of the process group for which this service detection rule should be created. Note: in case of external requests/services the PG might not always be known. See [here](https://dt-url.net/9i03b79) Name string `json:"name"` // Rule name InsertAfter string `json:"-"` }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
type Transformation ¶
type Transformation struct { IncludeHexNumbers *bool `json:"includeHexNumbers,omitempty"` // include hexadecimal numbers MinDigitCount *int `json:"minDigitCount,omitempty"` // min digit count Prefix *string `json:"prefix,omitempty"` ReplacementValue *string `json:"replacementValue,omitempty"` // replacement SegmentCount *int `json:"segmentCount,omitempty"` // How many segments should be taken. SelectIndex *int `json:"selectIndex,omitempty"` // select index SplitDelimiter *string `json:"splitDelimiter,omitempty"` // split by Suffix *string `json:"suffix,omitempty"` TakeFromEnd *bool `json:"takeFromEnd,omitempty"` // take from end TransformationType TransformationType `json:"transformationType"` // Possible Values: `AFTER`, `BEFORE`, `BETWEEN`, `REMOVE_CREDIT_CARDS`, `REMOVE_IBANS`, `REMOVE_IPS`, `REMOVE_NUMBERS`, `REPLACE_BETWEEN`, `SPLIT_SELECT`, `TAKE_SEGMENTS` }
func (*Transformation) HandlePreconditions ¶ added in v1.33.0
func (me *Transformation) HandlePreconditions() error
func (*Transformation) MarshalHCL ¶
func (me *Transformation) MarshalHCL(properties hcl.Properties) error
func (*Transformation) UnmarshalHCL ¶
func (me *Transformation) UnmarshalHCL(decoder hcl.Decoder) error
type TransformationSet ¶
type TransformationSet struct { ContributionType ContributionTypeWithOverride `json:"contributionType"` // Possible Values: `OriginalValue`, `OverrideValue`, `TransformValue` Transformations Transformations `json:"transformations,omitempty"` // Choose how to transform a value before it contributes to the Service Id. Note that all of the Transformations are always applied. Transformations are applied in the order they are specified, and the output of the previous transformation is the input for the next one. The resulting value contributes to the Service Id and can be found on the **Service overview page** under **Properties and tags**. ValueOverride *ValueOverride `json:"valueOverride,omitempty"` // The value to be used instead of the detected value. }
func (*TransformationSet) HandlePreconditions ¶ added in v1.33.0
func (me *TransformationSet) HandlePreconditions() error
func (*TransformationSet) MarshalHCL ¶
func (me *TransformationSet) MarshalHCL(properties hcl.Properties) error
func (*TransformationSet) UnmarshalHCL ¶
func (me *TransformationSet) UnmarshalHCL(decoder hcl.Decoder) error
type TransformationType ¶
type TransformationType string
type Transformations ¶
type Transformations []*Transformation
func (Transformations) MarshalHCL ¶
func (me Transformations) MarshalHCL(properties hcl.Properties) error
func (*Transformations) UnmarshalHCL ¶
func (me *Transformations) UnmarshalHCL(decoder hcl.Decoder) error
type ValueOverride ¶
type ValueOverride struct {
Value string `json:"value"`
}
func (*ValueOverride) MarshalHCL ¶
func (me *ValueOverride) MarshalHCL(properties hcl.Properties) error
func (*ValueOverride) UnmarshalHCL ¶
func (me *ValueOverride) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.