comparison

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ALL_MATCH_NO_CAPTURING_GROUP = `(?<!\()\.[\*\+](?![\)\+\?])`

Please do not use a greedy all match

View Source
const CHARACTER_CLASS_WITH_GREEDY_OR_LAZY_QUANTIFIER = `(?<!\\)(?:\\\\)*](?>\*|\+)(?!\+)`

Greedy or lazy character classes are not allowed, please use a possessive quantifier instead

View Source
const QUANTIFIERS_WITHIN_CAPTURING_GROUP = `(?<!\\)(?:\\\\)*([^\*\+]*[\+\*](?![\+\?]).*(?<!\\)(?:\\\\)*)`

Please use possessive or lazy quantifiers within your capture group

Variables

View Source
var ComparisonBasicTypes = struct {
	ApplicationType       ComparisonBasicType
	AzureComputeMode      ComparisonBasicType
	AzureSku              ComparisonBasicType
	Bitness               ComparisonBasicType
	CloudType             ComparisonBasicType
	CustomApplicationType ComparisonBasicType
	DatabaseTopology      ComparisonBasicType
	DCRumDecoderType      ComparisonBasicType
	EntityID              ComparisonBasicType
	HypervisorType        ComparisonBasicType
	IndexedName           ComparisonBasicType
	IndexedString         ComparisonBasicType
	IndexedTag            ComparisonBasicType
	Integer               ComparisonBasicType
	IPAddress             ComparisonBasicType
	MobilePlatform        ComparisonBasicType
	OSArchitecture        ComparisonBasicType
	OSType                ComparisonBasicType
	PaasType              ComparisonBasicType
	ServiceTopology       ComparisonBasicType
	ServiceType           ComparisonBasicType
	SimpleHostTech        ComparisonBasicType
	SimpleTech            ComparisonBasicType
	String                ComparisonBasicType
	SyntheticEngineType   ComparisonBasicType
	Tag                   ComparisonBasicType
}{
	"APPLICATION_TYPE",
	"AZURE_COMPUTE_MODE",
	"AZURE_SKU",
	"BITNESS",
	"CLOUD_TYPE",
	"CUSTOM_APPLICATION_TYPE",
	"DATABASE_TOPOLOGY",
	"DCRUM_DECODER_TYPE",
	"ENTITY_ID",
	"HYPERVISOR_TYPE",
	"INDEXED_NAME",
	"INDEXED_STRING",
	"INDEXED_TAG",
	"INTEGER",
	"IP_ADDRESS",
	"MOBILE_PLATFORM",
	"OS_ARCHITECTURE",
	"OS_TYPE",
	"PAAS_TYPE",
	"SERVICE_TOPOLOGY",
	"SERVICE_TYPE",
	"SIMPLE_HOST_TECH",
	"SIMPLE_TECH",
	"STRING",
	"SYNTHETIC_ENGINE_TYPE",
	"TAG",
}

ComparisonBasicTypes offers the known enum values

Functions

func RegexCheck added in v1.18.1

func RegexCheck(s string) ([]string, error)

Types

type ApplicationType

type ApplicationType struct {
	BaseComparison
	Operator application_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *application_type.Value   `json:"value,omitempty"` // The value to compare to.
}

ApplicationType Comparison for `APPLICATION_TYPE` attributes.

func (*ApplicationType) GetType

func (atc *ApplicationType) GetType() ComparisonBasicType

func (*ApplicationType) MarshalHCL

func (atc *ApplicationType) MarshalHCL(properties hcl.Properties) error

func (*ApplicationType) MarshalJSON

func (atc *ApplicationType) MarshalJSON() ([]byte, error)

func (*ApplicationType) Schema

func (atc *ApplicationType) Schema() map[string]*schema.Schema

func (*ApplicationType) UnmarshalHCL

func (atc *ApplicationType) UnmarshalHCL(decoder hcl.Decoder) error

func (*ApplicationType) UnmarshalJSON

func (atc *ApplicationType) UnmarshalJSON(data []byte) error

type AzureComputeMode

type AzureComputeMode struct {
	BaseComparison
	Value    *azure_compute_mode.Value   `json:"value,omitempty"` // The value to compare to.
	Operator azure_compute_mode.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

AzureComputeMode Comparison for `AZURE_COMPUTE_MODE` attributes.

func (*AzureComputeMode) GetType

func (acmc *AzureComputeMode) GetType() ComparisonBasicType

func (*AzureComputeMode) MarshalHCL

func (acmc *AzureComputeMode) MarshalHCL(properties hcl.Properties) error

func (*AzureComputeMode) MarshalJSON

func (acmc *AzureComputeMode) MarshalJSON() ([]byte, error)

func (*AzureComputeMode) Schema

func (acmc *AzureComputeMode) Schema() map[string]*schema.Schema

func (*AzureComputeMode) UnmarshalHCL

func (acmc *AzureComputeMode) UnmarshalHCL(decoder hcl.Decoder) error

func (*AzureComputeMode) UnmarshalJSON

func (acmc *AzureComputeMode) UnmarshalJSON(data []byte) error

type AzureSku

type AzureSku struct {
	BaseComparison
	Value    *azure_sku.Value   `json:"value,omitempty"` // The value to compare to.
	Operator azure_sku.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

AzureSku Comparison for `AZURE_SKU` attributes.

func (*AzureSku) GetType

func (asc *AzureSku) GetType() ComparisonBasicType

func (*AzureSku) MarshalHCL

func (asc *AzureSku) MarshalHCL(properties hcl.Properties) error

func (*AzureSku) MarshalJSON

func (asc *AzureSku) MarshalJSON() ([]byte, error)

func (*AzureSku) Schema

func (asc *AzureSku) Schema() map[string]*schema.Schema

func (*AzureSku) UnmarshalHCL

func (asc *AzureSku) UnmarshalHCL(decoder hcl.Decoder) error

func (*AzureSku) UnmarshalJSON

func (asc *AzureSku) UnmarshalJSON(data []byte) error

type BaseComparison

type BaseComparison struct {
	Type     ComparisonBasicType        `json:"type"`   // Defines the actual set of fields depending on the value. See one of the following objects:  * `STRING` -> StringComparison  * `INDEXED_NAME` -> IndexedNameComparison  * `INDEXED_STRING` -> IndexedStringComparison  * `INTEGER` -> IntegerComparison  * `SERVICE_TYPE` -> ServiceTypeComparison  * `PAAS_TYPE` -> PaasTypeComparison  * `CLOUD_TYPE` -> CloudTypeComparison  * `AZURE_SKU` -> AzureSkuComparision  * `AZURE_COMPUTE_MODE` -> AzureComputeModeComparison  * `ENTITY_ID` -> EntityIdComparison  * `SIMPLE_TECH` -> SimpleTechComparison  * `SIMPLE_HOST_TECH` -> SimpleHostTechComparison  * `SERVICE_TOPOLOGY` -> ServiceTopologyComparison  * `DATABASE_TOPOLOGY` -> DatabaseTopologyComparison  * `OS_TYPE` -> OsTypeComparison  * `HYPERVISOR_TYPE` -> HypervisorTypeComparision  * `IP_ADDRESS` -> IpAddressComparison  * `OS_ARCHITECTURE` -> OsArchitectureComparison  * `BITNESS` -> BitnessComparision  * `APPLICATION_TYPE` -> ApplicationTypeComparison  * `MOBILE_PLATFORM` -> MobilePlatformComparison  * `CUSTOM_APPLICATION_TYPE` -> CustomApplicationTypeComparison  * `DCRUM_DECODER_TYPE` -> DcrumDecoderComparison  * `SYNTHETIC_ENGINE_TYPE` -> SyntheticEngineTypeComparison  * `TAG` -> TagComparison  * `INDEXED_TAG` -> IndexedTagComparison
	Negate   bool                       `json:"negate"` // Reverses the comparison **operator**. For example it turns the **begins with** into **does not begin with**.
	Unknowns map[string]json.RawMessage `json:"-"`
}

BaseComparison Defines how the matching is actually performed: what and how are we comparing. The actual set of fields and possible values of the **operator** field depend on the **type** of the comparison. \n\nFind the list of actual models in the description of the **type** field and check the description of the model you need.

func (*BaseComparison) GetType

func (bcb *BaseComparison) GetType() ComparisonBasicType

func (*BaseComparison) IsNegated

func (bcb *BaseComparison) IsNegated() bool

func (*BaseComparison) MarshalHCL

func (bcb *BaseComparison) MarshalHCL(properties hcl.Properties) error

func (*BaseComparison) MarshalJSON

func (bcb *BaseComparison) MarshalJSON() ([]byte, error)

func (*BaseComparison) Schema

func (bcb *BaseComparison) Schema() map[string]*schema.Schema

func (*BaseComparison) UnmarshalHCL

func (bcb *BaseComparison) UnmarshalHCL(decoder hcl.Decoder) error

func (*BaseComparison) UnmarshalJSON

func (bcb *BaseComparison) UnmarshalJSON(data []byte) error

type Bitness

type Bitness struct {
	BaseComparison
	Operator bitness.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *bitness.Value   `json:"value,omitempty"` // The value to compare to.
}

Bitness Comparison for `BITNESS` attributes.

func (*Bitness) GetType

func (bc *Bitness) GetType() ComparisonBasicType

func (*Bitness) MarshalHCL

func (bc *Bitness) MarshalHCL(properties hcl.Properties) error

func (*Bitness) MarshalJSON

func (bc *Bitness) MarshalJSON() ([]byte, error)

func (*Bitness) Schema

func (bc *Bitness) Schema() map[string]*schema.Schema

func (*Bitness) UnmarshalHCL

func (bc *Bitness) UnmarshalHCL(decoder hcl.Decoder) error

func (*Bitness) UnmarshalJSON

func (bc *Bitness) UnmarshalJSON(data []byte) error

type CloudType

type CloudType struct {
	BaseComparison
	Operator cloud_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *cloud_type.Value   `json:"value,omitempty"` // The value to compare to.
}

CloudType Comparison for `CLOUD_TYPE` attributes.

func (*CloudType) GetType

func (ctc *CloudType) GetType() ComparisonBasicType

func (*CloudType) MarshalHCL

func (ctc *CloudType) MarshalHCL(properties hcl.Properties) error

func (*CloudType) MarshalJSON

func (ctc *CloudType) MarshalJSON() ([]byte, error)

func (*CloudType) Schema

func (ctc *CloudType) Schema() map[string]*schema.Schema

func (*CloudType) UnmarshalHCL

func (ctc *CloudType) UnmarshalHCL(decoder hcl.Decoder) error

func (*CloudType) UnmarshalJSON

func (ctc *CloudType) UnmarshalJSON(data []byte) error

type Comparison

type Comparison interface {
	MarshalHCL(hcl.Properties) error
	UnmarshalHCL(decoder hcl.Decoder) error
	MarshalJSON() ([]byte, error)
	UnmarshalJSON(data []byte) error
	Schema() map[string]*schema.Schema
	IsNegated() bool
	GetType() ComparisonBasicType
}

Comparison Defines how the matching is actually performed: what and how are we comparing. The actual set of fields and possible values of the **operator** field depend on the **type** of the comparison. \n\nFind the list of actual models in the description of the **type** field and check the description of the model you need.

type ComparisonBasicType

type ComparisonBasicType string

ComparisonBasicType Defines the actual set of fields depending on the value. See one of the following objects: * `STRING` -> StringComparison * `INDEXED_NAME` -> IndexedNameComparison * `INDEXED_STRING` -> IndexedStringComparison * `INTEGER` -> IntegerComparison * `SERVICE_TYPE` -> ServiceTypeComparison * `PAAS_TYPE` -> PaasTypeComparison * `CLOUD_TYPE` -> CloudTypeComparison * `AZURE_SKU` -> AzureSkuComparision * `AZURE_COMPUTE_MODE` -> AzureComputeModeComparison * `ENTITY_ID` -> EntityIdComparison * `SIMPLE_TECH` -> SimpleTechComparison * `SIMPLE_HOST_TECH` -> SimpleHostTechComparison * `SERVICE_TOPOLOGY` -> ServiceTopologyComparison * `DATABASE_TOPOLOGY` -> DatabaseTopologyComparison * `OS_TYPE` -> OsTypeComparison * `HYPERVISOR_TYPE` -> HypervisorTypeComparision * `IP_ADDRESS` -> IpAddressComparison * `OS_ARCHITECTURE` -> OsArchitectureComparison * `BITNESS` -> BitnessComparision * `APPLICATION_TYPE` -> ApplicationTypeComparison * `MOBILE_PLATFORM` -> MobilePlatformComparison * `CUSTOM_APPLICATION_TYPE` -> CustomApplicationTypeComparison * `DCRUM_DECODER_TYPE` -> DcrumDecoderComparison * `SYNTHETIC_ENGINE_TYPE` -> SyntheticEngineTypeComparison * `TAG` -> TagComparison * `INDEXED_TAG` -> IndexedTagComparison

type CustomApplicationType

type CustomApplicationType struct {
	BaseComparison
	Operator custom_application_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *custom_application_type.Value   `json:"value,omitempty"` // The value to compare to.
}

CustomApplicationType Comparison for `CUSTOM_APPLICATION_TYPE` attributes.

func (*CustomApplicationType) GetType

func (*CustomApplicationType) MarshalHCL

func (catc *CustomApplicationType) MarshalHCL(properties hcl.Properties) error

func (*CustomApplicationType) MarshalJSON

func (catc *CustomApplicationType) MarshalJSON() ([]byte, error)

func (*CustomApplicationType) Schema

func (catc *CustomApplicationType) Schema() map[string]*schema.Schema

func (*CustomApplicationType) UnmarshalHCL

func (catc *CustomApplicationType) UnmarshalHCL(decoder hcl.Decoder) error

func (*CustomApplicationType) UnmarshalJSON

func (catc *CustomApplicationType) UnmarshalJSON(data []byte) error

type DCRumDecoder

type DCRumDecoder struct {
	BaseComparison
	Operator dcrum_decoder.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *dcrum_decoder.Value   `json:"value,omitempty"` // The value to compare to.
}

DCRumDecoder Comparison for `DCRUM_DECODER_TYPE` attributes.

func (*DCRumDecoder) GetType

func (ddc *DCRumDecoder) GetType() ComparisonBasicType

func (*DCRumDecoder) MarshalHCL

func (ddc *DCRumDecoder) MarshalHCL(properties hcl.Properties) error

func (*DCRumDecoder) MarshalJSON

func (ddc *DCRumDecoder) MarshalJSON() ([]byte, error)

func (*DCRumDecoder) Schema

func (ddc *DCRumDecoder) Schema() map[string]*schema.Schema

func (*DCRumDecoder) UnmarshalHCL

func (ddc *DCRumDecoder) UnmarshalHCL(decoder hcl.Decoder) error

func (*DCRumDecoder) UnmarshalJSON

func (ddc *DCRumDecoder) UnmarshalJSON(data []byte) error

type DatabaseTopology

type DatabaseTopology struct {
	BaseComparison
	Operator database_topology.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *database_topology.Value   `json:"value,omitempty"` // The value to compare to.
}

DatabaseTopology Comparison for `DATABASE_TOPOLOGY` attributes.

func (*DatabaseTopology) GetType

func (dtc *DatabaseTopology) GetType() ComparisonBasicType

func (*DatabaseTopology) MarshalHCL

func (dtc *DatabaseTopology) MarshalHCL(properties hcl.Properties) error

func (*DatabaseTopology) MarshalJSON

func (dtc *DatabaseTopology) MarshalJSON() ([]byte, error)

func (*DatabaseTopology) Schema

func (dtc *DatabaseTopology) Schema() map[string]*schema.Schema

func (*DatabaseTopology) UnmarshalHCL

func (dtc *DatabaseTopology) UnmarshalHCL(decoder hcl.Decoder) error

func (*DatabaseTopology) UnmarshalJSON

func (dtc *DatabaseTopology) UnmarshalJSON(data []byte) error

type EntityID

type EntityID struct {
	BaseComparison
	Value    *string            `json:"value,omitempty"` // The value to compare to.
	Operator entity_id.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

EntityID Comparison for `ENTITY_ID` attributes.

func (*EntityID) GetType

func (eic *EntityID) GetType() ComparisonBasicType

func (*EntityID) MarshalHCL

func (eic *EntityID) MarshalHCL(properties hcl.Properties) error

func (*EntityID) MarshalJSON

func (eic *EntityID) MarshalJSON() ([]byte, error)

func (*EntityID) Schema

func (eic *EntityID) Schema() map[string]*schema.Schema

func (*EntityID) UnmarshalHCL

func (eic *EntityID) UnmarshalHCL(decoder hcl.Decoder) error

func (*EntityID) UnmarshalJSON

func (eic *EntityID) UnmarshalJSON(data []byte) error

type HypervisorType

type HypervisorType struct {
	BaseComparison
	Operator hypervisor_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *hypervisor_type.Value   `json:"value,omitempty"` // The value to compare to.
}

HypervisorType Comparison for `HYPERVISOR_TYPE` attributes.

func (*HypervisorType) GetType

func (htc *HypervisorType) GetType() ComparisonBasicType

func (*HypervisorType) MarshalHCL

func (htc *HypervisorType) MarshalHCL(properties hcl.Properties) error

func (*HypervisorType) MarshalJSON

func (htc *HypervisorType) MarshalJSON() ([]byte, error)

func (*HypervisorType) Schema

func (htc *HypervisorType) Schema() map[string]*schema.Schema

func (*HypervisorType) UnmarshalHCL

func (htc *HypervisorType) UnmarshalHCL(decoder hcl.Decoder) error

func (*HypervisorType) UnmarshalJSON

func (htc *HypervisorType) UnmarshalJSON(data []byte) error

type IPAddress

type IPAddress struct {
	BaseComparison
	CaseSensitive *bool               `json:"caseSensitive,omitempty"` // The comparison is case-sensitive (`true`) or insensitive (`false`).
	Operator      ip_address.Operator `json:"operator"`                // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value         *string             `json:"value,omitempty"`         // The value to compare to.
}

IPAddress Comparison for `IP_ADDRESS` attributes.

func (*IPAddress) GetType

func (iac *IPAddress) GetType() ComparisonBasicType

func (*IPAddress) MarshalHCL

func (iac *IPAddress) MarshalHCL(properties hcl.Properties) error

func (*IPAddress) MarshalJSON

func (iac *IPAddress) MarshalJSON() ([]byte, error)

func (*IPAddress) Schema

func (iac *IPAddress) Schema() map[string]*schema.Schema

func (*IPAddress) UnmarshalHCL

func (iac *IPAddress) UnmarshalHCL(decoder hcl.Decoder) error

func (*IPAddress) UnmarshalJSON

func (iac *IPAddress) UnmarshalJSON(data []byte) error

type IndexedName

type IndexedName struct {
	BaseComparison
	Operator indexed_name.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *string               `json:"value,omitempty"` // The value to compare to.
}

IndexedName Comparison for `INDEXED_NAME` attributes.

func (*IndexedName) GetType

func (inc *IndexedName) GetType() ComparisonBasicType

func (*IndexedName) MarshalHCL

func (inc *IndexedName) MarshalHCL(properties hcl.Properties) error

func (*IndexedName) MarshalJSON

func (inc *IndexedName) MarshalJSON() ([]byte, error)

func (*IndexedName) Schema

func (inc *IndexedName) Schema() map[string]*schema.Schema

func (*IndexedName) UnmarshalHCL

func (inc *IndexedName) UnmarshalHCL(decoder hcl.Decoder) error

func (*IndexedName) UnmarshalJSON

func (inc *IndexedName) UnmarshalJSON(data []byte) error

type IndexedString

type IndexedString struct {
	BaseComparison
	Operator indexed_string.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *string                 `json:"value,omitempty"` // The value to compare to.
}

IndexedString Comparison for `INDEXED_STRING` attributes.

func (*IndexedString) GetType

func (isc *IndexedString) GetType() ComparisonBasicType

func (*IndexedString) MarshalHCL

func (isc *IndexedString) MarshalHCL(properties hcl.Properties) error

func (*IndexedString) MarshalJSON

func (isc *IndexedString) MarshalJSON() ([]byte, error)

func (*IndexedString) Schema

func (isc *IndexedString) Schema() map[string]*schema.Schema

func (*IndexedString) UnmarshalHCL

func (isc *IndexedString) UnmarshalHCL(decoder hcl.Decoder) error

func (*IndexedString) UnmarshalJSON

func (isc *IndexedString) UnmarshalJSON(data []byte) error

type IndexedTag

type IndexedTag struct {
	BaseComparison
	Operator indexed_tag.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *tag.Info            `json:"value,omitempty"` // Tag of a Dynatrace entity.
}

IndexedTag Comparison for `INDEXED_TAG` attributes.

func (*IndexedTag) GetType

func (itc *IndexedTag) GetType() ComparisonBasicType

func (*IndexedTag) MarshalHCL

func (itc *IndexedTag) MarshalHCL(properties hcl.Properties) error

func (*IndexedTag) MarshalJSON

func (itc *IndexedTag) MarshalJSON() ([]byte, error)

func (*IndexedTag) Schema

func (itc *IndexedTag) Schema() map[string]*schema.Schema

func (*IndexedTag) UnmarshalHCL

func (itc *IndexedTag) UnmarshalHCL(decoder hcl.Decoder) error

func (*IndexedTag) UnmarshalJSON

func (itc *IndexedTag) UnmarshalJSON(data []byte) error

type Integer

type Integer struct {
	BaseComparison
	Operator integer.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *int32           `json:"value,omitempty"` // The value to compare to.
}

Integer Comparison for `INTEGER` attributes.

func (*Integer) GetType

func (ic *Integer) GetType() ComparisonBasicType

func (*Integer) MarshalHCL

func (ic *Integer) MarshalHCL(properties hcl.Properties) error

func (*Integer) MarshalJSON

func (ic *Integer) MarshalJSON() ([]byte, error)

func (*Integer) Schema

func (ic *Integer) Schema() map[string]*schema.Schema

func (*Integer) UnmarshalHCL

func (ic *Integer) UnmarshalHCL(decoder hcl.Decoder) error

func (*Integer) UnmarshalJSON

func (ic *Integer) UnmarshalJSON(data []byte) error

type MobilePlatform

type MobilePlatform struct {
	BaseComparison
	Operator mobile_platform.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *mobile_platform.Value   `json:"value,omitempty"` // The value to compare to.
}

MobilePlatform Comparison for `MOBILE_PLATFORM` attributes.

func (*MobilePlatform) GetType

func (mpc *MobilePlatform) GetType() ComparisonBasicType

func (*MobilePlatform) MarshalHCL

func (mpc *MobilePlatform) MarshalHCL(properties hcl.Properties) error

func (*MobilePlatform) MarshalJSON

func (mpc *MobilePlatform) MarshalJSON() ([]byte, error)

func (*MobilePlatform) Schema

func (mpc *MobilePlatform) Schema() map[string]*schema.Schema

func (*MobilePlatform) UnmarshalHCL

func (mpc *MobilePlatform) UnmarshalHCL(decoder hcl.Decoder) error

func (*MobilePlatform) UnmarshalJSON

func (mpc *MobilePlatform) UnmarshalJSON(data []byte) error

type OSArchitecture

type OSArchitecture struct {
	BaseComparison
	Value    *osarch.Value   `json:"value,omitempty"` // The value to compare to.
	Operator osarch.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

OSArchitecture Comparison for `OS_ARCHITECTURE` attributes.

func (*OSArchitecture) GetType

func (oac *OSArchitecture) GetType() ComparisonBasicType

func (*OSArchitecture) MarshalHCL

func (oac *OSArchitecture) MarshalHCL(properties hcl.Properties) error

func (*OSArchitecture) MarshalJSON

func (oac *OSArchitecture) MarshalJSON() ([]byte, error)

func (*OSArchitecture) Schema

func (oac *OSArchitecture) Schema() map[string]*schema.Schema

func (*OSArchitecture) UnmarshalHCL

func (oac *OSArchitecture) UnmarshalHCL(decoder hcl.Decoder) error

func (*OSArchitecture) UnmarshalJSON

func (oac *OSArchitecture) UnmarshalJSON(data []byte) error

type OSType

type OSType struct {
	BaseComparison
	Operator ostype.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *ostype.Value   `json:"value,omitempty"` // The value to compare to.
}

OSType Comparison for `OS_TYPE` attributes.

func (*OSType) GetType

func (otc *OSType) GetType() ComparisonBasicType

func (*OSType) MarshalHCL

func (otc *OSType) MarshalHCL(properties hcl.Properties) error

func (*OSType) MarshalJSON

func (otc *OSType) MarshalJSON() ([]byte, error)

func (*OSType) Schema

func (otc *OSType) Schema() map[string]*schema.Schema

func (*OSType) UnmarshalHCL

func (otc *OSType) UnmarshalHCL(decoder hcl.Decoder) error

func (*OSType) UnmarshalJSON

func (otc *OSType) UnmarshalJSON(data []byte) error

type PaasType

type PaasType struct {
	BaseComparison
	Operator paastype.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *paastype.Value   `json:"value,omitempty"` // The value to compare to.
}

PaasType Comparison for `PAAS_TYPE` attributes.

func (*PaasType) GetType

func (ptc *PaasType) GetType() ComparisonBasicType

func (*PaasType) MarshalHCL

func (ptc *PaasType) MarshalHCL(properties hcl.Properties) error

func (*PaasType) MarshalJSON

func (ptc *PaasType) MarshalJSON() ([]byte, error)

func (*PaasType) Schema

func (ptc *PaasType) Schema() map[string]*schema.Schema

func (*PaasType) UnmarshalHCL

func (ptc *PaasType) UnmarshalHCL(decoder hcl.Decoder) error

func (*PaasType) UnmarshalJSON

func (ptc *PaasType) UnmarshalJSON(data []byte) error

type ServiceTopology

type ServiceTopology struct {
	BaseComparison
	Value    *service_topology.Value   `json:"value,omitempty"` // The value to compare to.
	Operator service_topology.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

ServiceTopology Comparison for `SERVICE_TOPOLOGY` attributes.

func (*ServiceTopology) GetType

func (stc *ServiceTopology) GetType() ComparisonBasicType

func (*ServiceTopology) MarshalHCL

func (stc *ServiceTopology) MarshalHCL(properties hcl.Properties) error

func (*ServiceTopology) MarshalJSON

func (stc *ServiceTopology) MarshalJSON() ([]byte, error)

func (*ServiceTopology) Schema

func (stc *ServiceTopology) Schema() map[string]*schema.Schema

func (*ServiceTopology) UnmarshalHCL

func (stc *ServiceTopology) UnmarshalHCL(decoder hcl.Decoder) error

func (*ServiceTopology) UnmarshalJSON

func (stc *ServiceTopology) UnmarshalJSON(data []byte) error

type ServiceType

type ServiceType struct {
	BaseComparison
	Operator service_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *service_type.Value   `json:"value,omitempty"` // The value to compare to.
}

ServiceType Comparison for `SERVICE_TYPE` attributes.

func (*ServiceType) GetType

func (stc *ServiceType) GetType() ComparisonBasicType

func (*ServiceType) MarshalHCL

func (stc *ServiceType) MarshalHCL(properties hcl.Properties) error

func (*ServiceType) MarshalJSON

func (stc *ServiceType) MarshalJSON() ([]byte, error)

func (*ServiceType) Schema

func (stc *ServiceType) Schema() map[string]*schema.Schema

func (*ServiceType) UnmarshalHCL

func (stc *ServiceType) UnmarshalHCL(decoder hcl.Decoder) error

func (*ServiceType) UnmarshalJSON

func (stc *ServiceType) UnmarshalJSON(data []byte) error

type SimpleHostTech

type SimpleHostTech struct {
	BaseComparison
	Value    *tech.Host        `json:"value,omitempty"` // The value to compare to.
	Operator tech.HostOperator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

SimpleHostTech Comparison for `SIMPLE_HOST_TECH` attributes.

func (*SimpleHostTech) GetType

func (shtc *SimpleHostTech) GetType() ComparisonBasicType

func (*SimpleHostTech) MarshalHCL

func (shtc *SimpleHostTech) MarshalHCL(properties hcl.Properties) error

func (*SimpleHostTech) MarshalJSON

func (shtc *SimpleHostTech) MarshalJSON() ([]byte, error)

func (*SimpleHostTech) Schema

func (shtc *SimpleHostTech) Schema() map[string]*schema.Schema

func (*SimpleHostTech) UnmarshalHCL

func (shtc *SimpleHostTech) UnmarshalHCL(decoder hcl.Decoder) error

func (*SimpleHostTech) UnmarshalJSON

func (shtc *SimpleHostTech) UnmarshalJSON(data []byte) error

type SimpleTech

type SimpleTech struct {
	BaseComparison
	Operator tech.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *tech.Simple  `json:"value,omitempty"` // The value to compare to.
}

SimpleTech Comparison for `SIMPLE_TECH` attributes.

func (*SimpleTech) GetType

func (stc *SimpleTech) GetType() ComparisonBasicType

func (*SimpleTech) MarshalHCL

func (stc *SimpleTech) MarshalHCL(properties hcl.Properties) error

func (*SimpleTech) MarshalJSON

func (stc *SimpleTech) MarshalJSON() ([]byte, error)

func (*SimpleTech) Schema

func (stc *SimpleTech) Schema() map[string]*schema.Schema

func (*SimpleTech) UnmarshalHCL

func (stc *SimpleTech) UnmarshalHCL(decoder hcl.Decoder) error

func (*SimpleTech) UnmarshalJSON

func (stc *SimpleTech) UnmarshalJSON(data []byte) error

type String

type String struct {
	BaseComparison
	CaseSensitive bool             `json:"caseSensitive,omitempty"` // The comparison is case-sensitive (`true`) or insensitive (`false`).
	Operator      stringc.Operator `json:"operator"`                // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value         *string          `json:"value,omitempty"`         // The value to compare to.
}

String Comparison for `STRING` attributes.

func (*String) GetType

func (sc *String) GetType() ComparisonBasicType

func (*String) MarshalHCL

func (sc *String) MarshalHCL(properties hcl.Properties) error

func (*String) MarshalJSON

func (sc *String) MarshalJSON() ([]byte, error)

func (*String) Schema

func (sc *String) Schema() map[string]*schema.Schema

func (*String) UnmarshalHCL

func (sc *String) UnmarshalHCL(decoder hcl.Decoder) error

func (*String) UnmarshalJSON

func (sc *String) UnmarshalJSON(data []byte) error

func (*String) Validate

func (sc *String) Validate() []string

type SyntheticEngineType

type SyntheticEngineType struct {
	BaseComparison
	Operator synthetic_engine_type.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
	Value    *synthetic_engine_type.Value   `json:"value,omitempty"` // The value to compare to.
}

SyntheticEngineType Comparison for `SYNTHETIC_ENGINE_TYPE` attributes.

func (*SyntheticEngineType) GetType

func (setc *SyntheticEngineType) GetType() ComparisonBasicType

func (*SyntheticEngineType) MarshalHCL

func (setc *SyntheticEngineType) MarshalHCL(properties hcl.Properties) error

func (*SyntheticEngineType) MarshalJSON

func (setc *SyntheticEngineType) MarshalJSON() ([]byte, error)

func (*SyntheticEngineType) Schema

func (setc *SyntheticEngineType) Schema() map[string]*schema.Schema

func (*SyntheticEngineType) UnmarshalHCL

func (setc *SyntheticEngineType) UnmarshalHCL(decoder hcl.Decoder) error

func (*SyntheticEngineType) UnmarshalJSON

func (setc *SyntheticEngineType) UnmarshalJSON(data []byte) error

type Tag

type Tag struct {
	BaseComparison
	Value    *tag.Info    `json:"value,omitempty"` // Tag of a Dynatrace entity.
	Operator tag.Operator `json:"operator"`        // Operator of the comparison. You can reverse it by setting **negate** to `true`.  Possible values depend on the **type** of the comparison. Find the list of actual models in the description of the **type** field and check the description of the model you need.
}

Tag Comparison for `TAG` attributes.

func (*Tag) GetType

func (tc *Tag) GetType() ComparisonBasicType

func (*Tag) MarshalHCL

func (tc *Tag) MarshalHCL(properties hcl.Properties) error

func (*Tag) MarshalJSON

func (tc *Tag) MarshalJSON() ([]byte, error)

func (*Tag) Schema

func (tc *Tag) Schema() map[string]*schema.Schema

func (*Tag) UnmarshalHCL

func (tc *Tag) UnmarshalHCL(decoder hcl.Decoder) error

func (*Tag) UnmarshalJSON

func (tc *Tag) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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