Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AggregationType = newEnum("AggregationType", []value[configv1.Configv1AggregationType]{ { isDefault: true, }, { v1: configv1.Configv1AggregationTypeLAST, alias: "LAST", }, { v1: configv1.Configv1AggregationTypeMIN, alias: "MIN", }, { v1: configv1.Configv1AggregationTypeMAX, alias: "MAX", }, { v1: configv1.Configv1AggregationTypeMEAN, alias: "MEAN", }, { v1: configv1.Configv1AggregationTypeMEDIAN, alias: "MEDIAN", }, { v1: configv1.Configv1AggregationTypeCOUNT, alias: "COUNT", }, { v1: configv1.Configv1AggregationTypeCOUNTSAMPLES, alias: "COUNT_SAMPLES", }, { v1: configv1.Configv1AggregationTypeSUM, alias: "SUM", }, { v1: configv1.Configv1AggregationTypeSUMSQ, alias: "SUMSQ", }, { v1: configv1.Configv1AggregationTypeSTDEV, alias: "STDEV", }, { v1: configv1.Configv1AggregationTypeP10, alias: "P10", }, { v1: configv1.Configv1AggregationTypeP20, alias: "P20", }, { v1: configv1.Configv1AggregationTypeP25, alias: "P25", }, { v1: configv1.Configv1AggregationTypeP30, alias: "P30", }, { v1: configv1.Configv1AggregationTypeP40, alias: "P40", }, { v1: configv1.Configv1AggregationTypeP50, alias: "P50", }, { v1: configv1.Configv1AggregationTypeP60, alias: "P60", }, { v1: configv1.Configv1AggregationTypeP70, alias: "P70", }, { v1: configv1.Configv1AggregationTypeP75, alias: "P75", }, { v1: configv1.Configv1AggregationTypeP80, alias: "P80", }, { v1: configv1.Configv1AggregationTypeP90, alias: "P90", }, { v1: configv1.Configv1AggregationTypeP95, alias: "P95", }, { v1: configv1.Configv1AggregationTypeP99, alias: "P99", }, { v1: configv1.Configv1AggregationTypeP999, alias: "P999", }, { v1: configv1.Configv1AggregationTypeP9999, alias: "P9999", }, { v1: configv1.Configv1AggregationTypeHISTOGRAM, alias: "HISTOGRAM", }, })
AggregationType is an enum.
var ConditionOp = newEnum("ConditionOp", []value[configv1.ConditionOp]{ { isDefault: true, legacyAlias: "INVALID", }, { v1: configv1.ConditionOpGEQ, alias: "GEQ", }, { v1: configv1.ConditionOpGT, alias: "GT", }, { v1: configv1.ConditionOpLEQ, alias: "LEQ", }, { v1: configv1.ConditionOpLT, alias: "LT", }, { v1: configv1.ConditionOpEQ, alias: "EQ", }, { v1: configv1.ConditionOpNEQ, alias: "NEQ", }, { v1: configv1.ConditionOpEXISTS, alias: "EXISTS", }, { v1: configv1.ConditionOpNOTEXISTS, alias: "NOT_EXISTS", }, })
ConditionOp is an enum.
var LabelPolicy = newEnum("LabelPolicy", []value[configv1.Configv1DerivedLabelLabelPolicy]{ { v1: configv1.Configv1DerivedLabelLabelPolicyKEEP, alias: "KEEP", }, { v1: configv1.Configv1DerivedLabelLabelPolicyOVERRIDE, alias: "OVERRIDE", }, })
LabelPolicy is an enum.
var LogScalePagerDutyActionSeverity = newEnum("LogScaleActionPagerDutyActionSeverity", []value[models.PagerDutyActionSeverity]{ { v1: "INVALID", isDefault: true, }, { v1: models.PagerDutyActionSeverityCRITICAL, alias: "CRITICAL", }, { v1: models.PagerDutyActionSeverityERROR, alias: "ERROR", }, { v1: models.PagerDutyActionSeverityWARNING, alias: "WARNING", }, { v1: models.PagerDutyActionSeverityINFO, alias: "INFO", }, })
LogScalePagerDutyActionSeverity is an enum.
var LogScaleWebhookActionHTTPMethod = newEnum("LogScaleWebhookActionHTTPMethod", []value[models.WebhookActionHTTPMethod]{ { v1: "INVALID", isDefault: true, }, { v1: models.WebhookActionHTTPMethodGET, alias: "GET", }, { v1: models.WebhookActionHTTPMethodPOST, alias: "POST", }, { v1: models.WebhookActionHTTPMethodPUT, alias: "PUT", }, { v1: models.WebhookActionHTTPMethodPATCH, alias: "PATCH", }, { v1: models.WebhookActionHTTPMethodDELETE, alias: "DELETE", }, { v1: models.WebhookActionHTTPMethodHEAD, alias: "HEAD", }, { v1: models.WebhookActionHTTPMethodOPTIONS, alias: "OPTIONS", }, })
LogScaleWebhookActionHTTPMethod is an enum.
var LogscaleAlertType = newEnum("LogScaleAlertAlertType", []value[models.LogScaleAlertAlertType]{ { v1: "INVALID", isDefault: true, }, { v1: models.LogScaleAlertAlertTypeSTANDARD, alias: "STANDARD", }, { v1: models.LogScaleAlertAlertTypeFILTER, alias: "FILTER", }, })
LogscaleAlertType is an enum.
var MappingModeType = newEnum("MappingModeType", []value[configv1.Configv1MappingRuleMode]{ { v1: configv1.Configv1MappingRuleModeENABLED, isDefault: true, }, { v1: configv1.Configv1MappingRuleModePREVIEW, alias: "PREVIEW", }, })
MappingModeType is an enum.
var MatcherType = newEnum("MatcherType", []value[configv1.Configv1LabelMatcherMatcherType]{ { isDefault: true, legacyAlias: "INVALID_MATCHER_TYPE", }, { v1: configv1.Configv1LabelMatcherMatcherTypeEXACT, legacyAlias: "EXACT_MATCHER_TYPE", alias: "EXACT", }, { v1: configv1.Configv1LabelMatcherMatcherTypeREGEX, legacyAlias: "REGEXP_MATCHER_TYPE", alias: "REGEX", }, })
MatcherType is an enum.
var MetricType = newEnum("MetricType", []value[configv1.RollupRuleMetricType]{ { isDefault: true, legacyAlias: "UNKNOWN_MT", }, { v1: configv1.RollupRuleMetricTypeCOUNTER, alias: "COUNTER", }, { v1: configv1.RollupRuleMetricTypeGAUGE, alias: "GAUGE", }, { v1: configv1.RollupRuleMetricTypeDELTA, alias: "DELTA", }, { v1: configv1.RollupRuleMetricTypeDISTRIBUTION, alias: "DISTRIBUTION", }, { v1: configv1.RollupRuleMetricTypeCUMULATIVEEXPONENTIALHISTOGRAM, alias: "CUMULATIVE_EXPONENTIAL_HISTOGRAM", }, { v1: configv1.RollupRuleMetricTypeMEASUREMENT, alias: "MEASUREMENT", }, { v1: configv1.RollupRuleMetricTypeCUMULATIVECOUNTER, alias: "CUMULATIVE_COUNTER", }, { v1: configv1.RollupRuleMetricTypeDELTACOUNTER, alias: "DELTA_COUNTER", }, { v1: configv1.RollupRuleMetricTypeDELTAEXPONENTIALHISTOGRAM, alias: "DELTA_EXPONENTIAL_HISTOGRAM", }, })
MetricType is an enum.
var NumericFilterComparisonType = newEnum("NumericFilterComparisonType", []value[configv1.NumericFilterComparisonType]{ { v1: configv1.NumericFilterComparisonTypeEQUAL, alias: "EQUAL", }, { v1: configv1.NumericFilterComparisonTypeNOTEQUAL, alias: "NOT_EQUAL", }, { v1: configv1.NumericFilterComparisonTypeGREATERTHAN, alias: "GREATER_THAN", }, { v1: configv1.NumericFilterComparisonTypeGREATERTHANOREQUAL, alias: "GREATER_THAN_OR_EQUAL", }, { v1: configv1.NumericFilterComparisonTypeLESSTHAN, alias: "LESS_THAN", }, { v1: configv1.NumericFilterComparisonTypeLESSTHANOREQUAL, alias: "LESS_THAN_OR_EQUAL", }, })
NumericFilterComparisonType is an enum.
var OpsgenieResponderType = newEnum("OpsgenieResponderType", []value[configv1.ResponderResponderType]{ { isDefault: true, legacyAlias: "UNKNOWN_RESPONSE_TYPE", }, { v1: configv1.ResponderResponderTypeTEAM, alias: "TEAM", }, { v1: configv1.ResponderResponderTypeUSER, alias: "USER", }, { v1: configv1.ResponderResponderTypeESCALATION, alias: "ESCALATION", }, { v1: configv1.ResponderResponderTypeSCHEDULE, alias: "SCHEDULE", }, })
var Permission = newEnum("Permission", []value[configv1.MetricsRestrictionPermission]{ { isDefault: true, legacyAlias: "UNKNOWN_PERMISSION", }, { v1: configv1.MetricsRestrictionPermissionREAD, legacyAlias: "READ_PERMISSION", alias: "READ_ONLY", }, { v1: configv1.MetricsRestrictionPermissionWRITE, legacyAlias: "WRITE_PERMISSION", alias: "WRITE_ONLY", }, { v1: configv1.MetricsRestrictionPermissionREADWRITE, legacyAlias: "READWRITE_PERMISSION", alias: "READ_AND_WRITE", }, })
Permission represents a mapping between the external API permissions and the v1 version
var ResourceAttributesFilterMode = newEnum("ResourceAttributesFilterMode", []value[models.ResourceAttributesFilterMode]{ { v1: models.ResourceAttributesFilterModeAPPENDDEFAULTEXCLUDEKEYS, alias: "APPEND_DEFAULT_EXCLUDE_KEYS", }, { v1: models.ResourceAttributesFilterModeCUSTOMEXCLUDEKEYS, alias: "CUSTOM_EXCLUDE_KEYS", }, })
ResourceAttributesFilterMode is an enum.
var ResourceAttributesFlattenMode = newEnum("ResourceAttributesFlattenMode", []value[models.ResourceAttributesFlattenMode]{ { v1: models.ResourceAttributesFlattenModeMERGE, alias: "MERGE", }, { v1: models.ResourceAttributesFlattenModeOVERWRITE, alias: "OVERWRITE", }, { v1: models.ResourceAttributesFlattenModeIGNORE, alias: "IGNORE", }, })
ResourceAttributesFlattenMode is an enum.
var RollupModeType = newEnum("RollupModeType", []value[configv1.Configv1RollupRuleMode]{ { v1: configv1.Configv1RollupRuleModeENABLED, isDefault: true, }, { v1: configv1.Configv1RollupRuleModePREVIEW, alias: "PREVIEW", }, })
RollupModeType is an enum.
var TraceMetricsRuleGroupByType = newEnum("TraceMetricsRuleGroupByType", []value[models.GroupByKeyGroupByKeyType]{ { v1: models.GroupByKeyGroupByKeyTypeTAG, alias: "TAG", }, { v1: models.GroupByKeyGroupByKeyTypeOPERATION, alias: "OPERATION", }, { v1: models.GroupByKeyGroupByKeyTypeSERVICE, alias: "SERVICE", }, })
TraceMetricsRuleGroupByType is an enum.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum[V1 swaggerEnum] interface { // Name returns the type name of the enum. Name() string // V1 resolves into the enum's V1 value. If it is not // registered, it is simply propagated as an L type. V1(s string) V1 // Validate implements schema.ValidateDiagFunc. Validate(v interface{}, _ cty.Path) diag.Diagnostics }
Enum defines a set of enum values, where a single logical value has multiple accepted values: v1, an alias, and an optional legacy alias.
Note that Enum will simply parrot back unknown values to ensure forwards compatibilty, for example if an unknown value was read from the server. However, we still rely on schema validation to prevent users from configuring unknown values in their Terraform files.
Source Files ¶
- aggregation_type.go
- condition_op.go
- enum.go
- label_policy.go
- logscale_alert_type.go
- logscale_pagerduty_action_severity.go
- logscale_webhook_action_http_method.go
- matcher_type.go
- metric_type.go
- mode_type.go
- numeric_filter_comparison_type.go
- opsgenie_responder_type.go
- permission.go
- resource_attributes.go
- trace_metrics_rule_group_by_type.go