From ed152a19ca4fab72b8b1be85417a1cad433fd5a6 Mon Sep 17 00:00:00 2001 From: Claus Matzinger Date: Wed, 8 Jan 2025 11:34:02 +0100 Subject: [PATCH] chore: regenerated docs, fixed examples --- CHANGELOG.md | 5 + coralogix/clientset/clientset.go | 2 +- docs/data-sources/alert.md | 1073 ++++++-- docs/data-sources/api_key.md | 2 +- docs/data-sources/custom_role.md | 4 +- docs/data-sources/dashboard.md | 100 +- docs/data-sources/events2metric.md | 4 +- docs/data-sources/rules_group.md | 2 +- docs/data-sources/slo.md | 6 +- docs/data-sources/tco_policies_logs.md | 4 +- docs/data-sources/webhook.md | 6 +- docs/guides/api-keys.md | 266 -- docs/guides/v1-v2-migration-guide.md | 135 - docs/index.md | 4 +- docs/resources/action.md | 2 +- docs/resources/alert.md | 2332 ++++++++++++----- docs/resources/alerts_scheduler.md | 2 +- docs/resources/api_key.md | 4 +- docs/resources/archive_logs.md | 4 +- docs/resources/archive_metrics.md | 2 +- docs/resources/archive_retentions.md | 2 +- docs/resources/custom_role.md | 6 +- docs/resources/dashboard.md | 102 +- docs/resources/dashboards_folder.md | 2 +- docs/resources/data_set.md | 2 +- docs/resources/enrichment.md | 2 +- docs/resources/events2metric.md | 6 +- docs/resources/group.md | 2 +- docs/resources/hosted_dashboard.md | 2 +- docs/resources/integration.md | 2 +- docs/resources/recording_rules_groups_set.md | 2 +- docs/resources/rules_group.md | 8 +- docs/resources/scope.md | 2 +- docs/resources/slo.md | 8 +- docs/resources/tco_policies_logs.md | 6 +- docs/resources/tco_policies_traces.md | 2 +- docs/resources/team.md | 2 +- docs/resources/user.md | 2 +- docs/resources/webhook.md | 11 +- examples/provider/provider.tf | 2 +- .../resources/coralogix_action/resource.tf | 2 +- examples/resources/coralogix_alert/import.sh | 2 +- .../resources/coralogix_alert/resource.tf | 748 +++--- .../coralogix_alerts_scheduler/resource.tf | 2 +- .../resources/coralogix_api_key/resource.tf | 2 +- .../coralogix_archive_logs/resource.tf | 2 +- .../coralogix_archive_metrics/resource.tf | 2 +- .../coralogix_archive_retentions/resource.tf | 2 +- .../coralogix_custom_role/resource.tf | 2 +- .../resources/coralogix_dashboard/resource.tf | 2 +- .../coralogix_dashboards_folder/resource.tf | 2 +- .../resources/coralogix_data_set/resource.tf | 2 +- .../coralogix_enrichment/resource.tf | 2 +- .../coralogix_events2metric/resource.tf | 2 +- .../resources/coralogix_group/resource.tf | 2 +- .../coralogix_hosted_dashboard/resource.tf | 2 +- .../coralogix_integration/resource.tf | 2 +- .../resource.tf | 2 +- .../coralogix_rules_group/resource.tf | 2 +- .../resources/coralogix_scope/resource.tf | 2 +- examples/resources/coralogix_slo/resource.tf | 2 +- .../coralogix_tco_policies_logs/resource.tf | 2 +- .../coralogix_tco_policies_traces/resource.tf | 2 +- examples/resources/coralogix_team/resource.tf | 2 +- examples/resources/coralogix_user/resource.tf | 2 +- .../resources/coralogix_webhook/resource.tf | 2 +- examples/resources/dashboard/resource.tf | 2 +- go.mod | 2 +- go.sum | 2 + 69 files changed, 3091 insertions(+), 1845 deletions(-) delete mode 100644 docs/guides/api-keys.md delete mode 100644 docs/guides/v1-v2-migration-guide.md diff --git a/CHANGELOG.md b/CHANGELOG.md index edaca7b9..fce132a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -729,6 +729,11 @@ Fix: * SLO issue when using variables +# Release 1.18.16 + +Feature: + +* Add analytics header to requests # Release 2.0.0 diff --git a/coralogix/clientset/clientset.go b/coralogix/clientset/clientset.go index 2a0c583e..9a4e6c6e 100644 --- a/coralogix/clientset/clientset.go +++ b/coralogix/clientset/clientset.go @@ -144,7 +144,7 @@ func (c *ClientSet) Integrations() *cxsdk.IntegrationsClient { } func NewClientSet(region string, apiKey string, targetUrl string) *ClientSet { - apiKeySdk := cxsdk.NewCallPropertiesCreatorTerraformOperator(strings.ToLower(region), cxsdk.NewAuthContext(apiKey, apiKey), TF_PROVIDER_VERSION) + apiKeySdk := cxsdk.NewCallPropertiesCreatorTerraform(strings.ToLower(region), cxsdk.NewAuthContext(apiKey, apiKey), TF_PROVIDER_VERSION) apikeyCPC := NewCallPropertiesCreator(targetUrl, apiKey) return &ClientSet{ diff --git a/docs/data-sources/alert.md b/docs/data-sources/alert.md index b5ff3849..2a7c2fec 100644 --- a/docs/data-sources/alert.md +++ b/docs/data-sources/alert.md @@ -3,467 +3,1026 @@ page_title: "coralogix_alert Data Source - terraform-provider-coralogix" subcategory: "" description: |- - + Coralogix Alert. For more info please review - https://coralogix.com/docs/getting-started-with-coralogix-alerts/. --- # coralogix_alert (Data Source) - +Coralogix Alert. For more info please review - https://coralogix.com/docs/getting-started-with-coralogix-alerts/. ## Schema +### Required + +- `id` (String) Alert ID. + ### Read-Only +- `deleted` (Boolean) - `description` (String) Alert description. -- `enabled` (Boolean) Determines whether the alert will be active. True by default. -- `expiration_date` (List of Object) The expiration date of the alert (if declared). (see [below for nested schema](#nestedatt--expiration_date)) -- `flow` (List of Object) Alert based on a combination of alerts in a specific timeframe. (see [below for nested schema](#nestedatt--flow)) -- `id` (String) The ID of this resource. -- `incident_settings` (List of Object) (see [below for nested schema](#nestedatt--incident_settings)) -- `meta_labels` (Map of String) Labels allow you to easily filter by alert type and create views. Insert a new label or use an existing one. You can nest a label using key:value. -- `metric` (List of Object) Alert based on arithmetic operators for metrics. (see [below for nested schema](#nestedatt--metric)) +- `enabled` (Boolean) Alert enabled status. True by default. +- `group_by` (Set of String) Group by fields. +- `incidents_settings` (Attributes) (see [below for nested schema](#nestedatt--incidents_settings)) +- `labels` (Map of String) - `name` (String) Alert name. -- `new_value` (List of Object) Alert on never before seen log value. (see [below for nested schema](#nestedatt--new_value)) -- `notifications_group` (Set of Object) Defines notifications settings over list of group-by keys (or on empty list). (see [below for nested schema](#nestedatt--notifications_group)) -- `payload_filters` (Set of String) A list of log fields out of the log example which will be included with the alert notification. -- `ratio` (List of Object) Alert based on the ratio between queries. (see [below for nested schema](#nestedatt--ratio)) -- `scheduling` (List of Object) Limit the triggering of this alert to specific time frames. Active always by default. (see [below for nested schema](#nestedatt--scheduling)) -- `severity` (String) Determines the alert's severity. Can be one of ["Warning" "Critical" "Error" "Low" "Info"] -- `standard` (List of Object) Alert based on number of log occurrences. (see [below for nested schema](#nestedatt--standard)) -- `time_relative` (List of Object) Alert based on ratio between timeframes. (see [below for nested schema](#nestedatt--time_relative)) -- `tracing` (List of Object) Alert based on tracing latency. (see [below for nested schema](#nestedatt--tracing)) -- `unique_count` (List of Object) Alert based on unique value count per key. (see [below for nested schema](#nestedatt--unique_count)) +- `notification_group` (Attributes) (see [below for nested schema](#nestedatt--notification_group)) +- `phantom_mode` (Boolean) +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. +- `schedule` (Attributes) Alert schedule. Will be activated all the time if not specified. (see [below for nested schema](#nestedatt--schedule)) +- `type_definition` (Attributes) Alert type definition. Exactly one of the following must be specified: logs_immediate, logs_threshold, logs_anomaly, logs_ratio_threshold, logs_new_value, logs_unique_count, logs_time_relative_threshold, metric_threshold, metric_anomaly, tracing_immediate, tracing_threshold flow. (see [below for nested schema](#nestedatt--type_definition)) + + +### Nested Schema for `incidents_settings` + +Read-Only: - -### Nested Schema for `expiration_date` +- `notify_on` (String) Notify on. Valid values: ["Triggered Only" "Triggered and Resolved"]. +- `retriggering_period` (Attributes) (see [below for nested schema](#nestedatt--incidents_settings--retriggering_period)) + + +### Nested Schema for `incidents_settings.retriggering_period` Read-Only: -- `day` (Number) -- `month` (Number) -- `year` (Number) +- `minutes` (Number) + + + + +### Nested Schema for `notification_group` + +Read-Only: +- `group_by_keys` (Set of String) +- `webhooks_settings` (Attributes Set) (see [below for nested schema](#nestedatt--notification_group--webhooks_settings)) - -### Nested Schema for `flow` + +### Nested Schema for `notification_group.webhooks_settings` Read-Only: -- `group_by` (List of String) -- `stage` (List of Object) (see [below for nested schema](#nestedobjatt--flow--stage)) +- `integration_id` (String) +- `notify_on` (String) Notify on. Valid values: ["Triggered Only" "Triggered and Resolved"]. Triggered Only by default. +- `recipients` (Set of String) +- `retriggering_period` (Attributes) Retriggering period in minutes. 10 minutes by default. (see [below for nested schema](#nestedatt--notification_group--webhooks_settings--retriggering_period)) - -### Nested Schema for `flow.stage` + +### Nested Schema for `notification_group.webhooks_settings.retriggering_period` Read-Only: -- `group` (List of Object) (see [below for nested schema](#nestedobjatt--flow--stage--group)) -- `time_window` (List of Object) (see [below for nested schema](#nestedobjatt--flow--stage--time_window)) +- `minutes` (Number) + + + - -### Nested Schema for `flow.stage.group` + +### Nested Schema for `schedule` Read-Only: -- `next_operator` (String) -- `sub_alerts` (List of Object) (see [below for nested schema](#nestedobjatt--flow--stage--group--sub_alerts)) +- `active_on` (Attributes) (see [below for nested schema](#nestedatt--schedule--active_on)) - -### Nested Schema for `flow.stage.group.sub_alerts` + +### Nested Schema for `schedule.active_on` Read-Only: -- `flow_alert` (List of Object) (see [below for nested schema](#nestedobjatt--flow--stage--group--sub_alerts--flow_alert)) -- `operator` (String) +- `days_of_week` (Set of String) Days of the week. Valid values: ["Friday" "Monday" "Saturday" "Sunday" "Thursday" "Tuesday" "Wednesday"]. +- `end_time` (String) +- `start_time` (String) +- `utc_offset` (String) + - -### Nested Schema for `flow.stage.group.sub_alerts.flow_alert` + + +### Nested Schema for `type_definition` Read-Only: +- `flow` (Attributes) (see [below for nested schema](#nestedatt--type_definition--flow)) +- `logs_anomaly` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly)) +- `logs_immediate` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate)) +- `logs_new_value` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value)) +- `logs_ratio_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold)) +- `logs_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold)) +- `logs_time_relative_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold)) +- `logs_unique_count` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count)) +- `metric_anomaly` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly)) +- `metric_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold)) +- `tracing_immediate` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate)) +- `tracing_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold)) + + +### Nested Schema for `type_definition.flow` + +Read-Only: + +- `enforce_suppression` (Boolean) +- `stages` (Attributes List) (see [below for nested schema](#nestedatt--type_definition--flow--stages)) + + +### Nested Schema for `type_definition.flow.stages` + +Read-Only: + +- `flow_stages_groups` (Attributes List) (see [below for nested schema](#nestedatt--type_definition--flow--stages--flow_stages_groups)) +- `timeframe_ms` (Number) +- `timeframe_type` (String) + + +### Nested Schema for `type_definition.flow.stages.flow_stages_groups` + +Read-Only: + +- `alert_defs` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--flow--stages--flow_stages_groups--alert_defs)) +- `alerts_op` (String) Alerts operation. Valid values: ["AND" "OR"]. +- `next_op` (String) Next operation. Valid values: ["AND" "OR"]. + + +### Nested Schema for `type_definition.flow.stages.flow_stages_groups.alert_defs` + +Read-Only: + +- `id` (String) - `not` (Boolean) -- `user_alert_id` (String) - -### Nested Schema for `flow.stage.time_window` + + +### Nested Schema for `type_definition.logs_anomaly` Read-Only: -- `hours` (Number) -- `minutes` (Number) -- `seconds` (Number) +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter)) +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--rules)) + + +### Nested Schema for `type_definition.logs_anomaly.logs_filter` + +Read-Only: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter` + +Read-Only: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters` +Read-Only: +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `incident_settings` + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters.application_name` Read-Only: -- `notify_on` (String) -- `retriggering_period_minutes` (Number) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) - -### Nested Schema for `metric` + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters.subsystem_name` Read-Only: -- `lucene` (List of Object) (see [below for nested schema](#nestedobjatt--metric--lucene)) -- `promql` (List of Object) (see [below for nested schema](#nestedobjatt--metric--promql)) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + - -### Nested Schema for `metric.lucene` + + + +### Nested Schema for `type_definition.logs_anomaly.rules` Read-Only: -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--metric--lucene--condition)) -- `search_query` (String) +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--rules--condition)) - -### Nested Schema for `metric.lucene.condition` + +### Nested Schema for `type_definition.logs_anomaly.rules.condition` Read-Only: -- `arithmetic_operator` (String) -- `arithmetic_operator_modifier` (Number) -- `group_by` (List of String) -- `less_than` (Boolean) -- `manage_undetected_values` (List of Object) (see [below for nested schema](#nestedobjatt--metric--lucene--condition--manage_undetected_values)) -- `metric_field` (String) -- `min_non_null_values_percentage` (Number) -- `more_than` (Boolean) -- `replace_missing_value_with_zero` (Boolean) -- `sample_threshold_percentage` (Number) -- `threshold` (Number) +- `condition_type` (String) +- `minimum_threshold` (Number) - `time_window` (String) - -### Nested Schema for `metric.lucene.condition.manage_undetected_values` + + + + +### Nested Schema for `type_definition.logs_immediate` Read-Only: -- `auto_retire_ratio` (String) -- `enable_triggering_on_undetected_values` (Boolean) +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter)) +- `notification_payload_filter` (Set of String) + +### Nested Schema for `type_definition.logs_immediate.logs_filter` +Read-Only: +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter)) - -### Nested Schema for `metric.promql` + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter` Read-Only: -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--metric--promql--condition)) -- `search_query` (String) +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) - -### Nested Schema for `metric.promql.condition` + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters` Read-Only: -- `less_than` (Boolean) -- `less_than_or_equal` (Boolean) -- `less_than_usual` (Boolean) -- `manage_undetected_values` (List of Object) (see [below for nested schema](#nestedobjatt--metric--promql--condition--manage_undetected_values)) -- `min_non_null_values_percentage` (Number) -- `more_than` (Boolean) -- `more_than_or_equal` (Boolean) -- `more_than_usual` (Boolean) -- `replace_missing_value_with_zero` (Boolean) -- `sample_threshold_percentage` (Number) -- `threshold` (Number) -- `time_window` (String) +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters.subsystem_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + + + + + +### Nested Schema for `type_definition.logs_new_value` + +Read-Only: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter)) +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--rules)) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter` + +Read-Only: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter` + +Read-Only: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + - -### Nested Schema for `metric.promql.condition.manage_undetected_values` + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters.subsystem_name` Read-Only: -- `auto_retire_ratio` (String) -- `enable_triggering_on_undetected_values` (Boolean) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) - -### Nested Schema for `new_value` + +### Nested Schema for `type_definition.logs_new_value.rules` Read-Only: -- `applications` (Set of String) -- `categories` (Set of String) -- `classes` (Set of String) -- `computers` (Set of String) -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--new_value--condition)) -- `ip_addresses` (Set of String) -- `methods` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--rules--condition)) - -### Nested Schema for `new_value.condition` + +### Nested Schema for `type_definition.logs_new_value.rules.condition` Read-Only: -- `key_to_track` (String) +- `keypath_to_track` (String) - `time_window` (String) - -### Nested Schema for `notifications_group` + + +### Nested Schema for `type_definition.logs_ratio_threshold` Read-Only: -- `group_by_fields` (List of String) -- `notification` (Set of Object) (see [below for nested schema](#nestedobjatt--notifications_group--notification)) +- `denominator` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator)) +- `denominator_alias` (String) +- `group_by_for` (String) Group by for. Valid values: ["Both" "Denominator Only" "Numerator Only"]. 'Both' by default. +- `notification_payload_filter` (Set of String) +- `numerator` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator)) +- `numerator_alias` (String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules)) - -### Nested Schema for `notifications_group.notification` + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator` Read-Only: -- `email_recipients` (Set of String) -- `integration_id` (String) -- `notify_on` (String) -- `retriggering_period_minutes` (Number) +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter` + +Read-Only: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters.subsystem_name` + +Read-Only: +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) - -### Nested Schema for `ratio` + + + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator` Read-Only: -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--ratio--condition)) -- `query_1` (List of Object) (see [below for nested schema](#nestedobjatt--ratio--query_1)) -- `query_2` (List of Object) (see [below for nested schema](#nestedobjatt--ratio--query_2)) +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter)) - -### Nested Schema for `ratio.condition` + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter` Read-Only: -- `group_by` (List of String) -- `group_by_both` (Boolean) -- `group_by_q1` (Boolean) -- `group_by_q2` (Boolean) -- `ignore_infinity` (Boolean) -- `less_than` (Boolean) -- `manage_undetected_values` (List of Object) (see [below for nested schema](#nestedobjatt--ratio--condition--manage_undetected_values)) -- `more_than` (Boolean) -- `ratio_threshold` (Number) +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters.subsystem_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + + + + +### Nested Schema for `type_definition.logs_ratio_threshold.rules` + +Read-Only: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules--override)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.rules.condition` + +Read-Only: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. +- `threshold` (Number) - `time_window` (String) - -### Nested Schema for `ratio.condition.manage_undetected_values` + + +### Nested Schema for `type_definition.logs_ratio_threshold.rules.override` Read-Only: -- `auto_retire_ratio` (String) -- `enable_triggering_on_undetected_values` (Boolean) +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + - -### Nested Schema for `ratio.query_1` + +### Nested Schema for `type_definition.logs_threshold` Read-Only: -- `alias` (String) -- `applications` (Set of String) -- `categories` (Set of String) -- `classes` (Set of String) -- `computers` (Set of String) -- `ip_addresses` (Set of String) -- `methods` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter)) +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules)) +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.logs_threshold.logs_filter` +Read-Only: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter)) - -### Nested Schema for `ratio.query_2` + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter` Read-Only: -- `alias` (String) -- `applications` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters` +Read-Only: +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `scheduling` + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters.application_name` Read-Only: -- `time_frame` (Set of Object) (see [below for nested schema](#nestedobjatt--scheduling--time_frame)) -- `time_zone` (String) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + - -### Nested Schema for `scheduling.time_frame` + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters.subsystem_name` Read-Only: -- `days_enabled` (Set of String) -- `end_time` (String) -- `start_time` (String) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + - -### Nested Schema for `standard` + +### Nested Schema for `type_definition.logs_threshold.rules` Read-Only: -- `applications` (Set of String) -- `categories` (Set of String) -- `classes` (Set of String) -- `computers` (Set of String) -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--standard--condition)) -- `ip_addresses` (Set of String) -- `methods` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules--override)) - -### Nested Schema for `standard.condition` + +### Nested Schema for `type_definition.logs_threshold.rules.condition` Read-Only: -- `evaluation_window` (String) -- `group_by` (List of String) -- `group_by_key` (String) -- `immediately` (Boolean) -- `less_than` (Boolean) -- `manage_undetected_values` (List of Object) (see [below for nested schema](#nestedobjatt--standard--condition--manage_undetected_values)) -- `more_than` (Boolean) -- `more_than_usual` (Boolean) +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. - `threshold` (Number) - `time_window` (String) - -### Nested Schema for `standard.condition.manage_undetected_values` + + +### Nested Schema for `type_definition.logs_threshold.rules.override` + +Read-Only: + +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + + + + +### Nested Schema for `type_definition.logs_threshold.undetected_values_management` + +Read-Only: + +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) + + + + +### Nested Schema for `type_definition.logs_time_relative_threshold` + +Read-Only: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter)) +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules)) +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter` Read-Only: -- `auto_retire_ratio` (String) -- `enable_triggering_on_undetected_values` (Boolean) +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter)) + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter` +Read-Only: +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) - -### Nested Schema for `time_relative` + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters` Read-Only: -- `applications` (Set of String) -- `categories` (Set of String) -- `classes` (Set of String) -- `computers` (Set of String) -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--time_relative--condition)) -- `ip_addresses` (Set of String) -- `methods` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `time_relative.condition` + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters.application_name` Read-Only: -- `group_by` (List of String) -- `ignore_infinity` (Boolean) -- `less_than` (Boolean) -- `manage_undetected_values` (List of Object) (see [below for nested schema](#nestedobjatt--time_relative--condition--manage_undetected_values)) -- `more_than` (Boolean) -- `ratio_threshold` (Number) -- `relative_time_window` (String) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + - -### Nested Schema for `time_relative.condition.manage_undetected_values` + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters.subsystem_name` Read-Only: -- `auto_retire_ratio` (String) -- `enable_triggering_on_undetected_values` (Boolean) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + - -### Nested Schema for `tracing` + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules` Read-Only: -- `applications` (Set of String) -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--tracing--condition)) -- `latency_threshold_milliseconds` (Number) -- `services` (Set of String) -- `subsystems` (Set of String) -- `tag_filter` (Set of Object) (see [below for nested schema](#nestedobjatt--tracing--tag_filter)) +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules--override)) - -### Nested Schema for `tracing.condition` + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules.condition` Read-Only: -- `group_by` (List of String) -- `immediately` (Boolean) -- `more_than` (Boolean) +- `compared_to` (String) Compared to a different time frame. Valid values: ["Previous Hour" "Same Day Last Month" "Same Day Last Week" "Same Hour Last Week" "Same Hour Yesterday" "Yesterday"]. +- `condition_type` (String) Condition . Valid values: ["LESS_THAN" "MORE_THAN"]. - `threshold` (Number) + + + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules.override` + +Read-Only: + +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + + + + +### Nested Schema for `type_definition.logs_time_relative_threshold.undetected_values_management` + +Read-Only: + +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) + + + + +### Nested Schema for `type_definition.logs_unique_count` + +Read-Only: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter)) +- `max_unique_count_per_group_by_key` (Number) +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--rules)) +- `unique_count_keypath` (String) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter` + +Read-Only: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter` + +Read-Only: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters.subsystem_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. +- `value` (String) + + + + + + +### Nested Schema for `type_definition.logs_unique_count.rules` + +Read-Only: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--rules--condition)) + + +### Nested Schema for `type_definition.logs_unique_count.rules.condition` + +Read-Only: + +- `max_unique_count` (Number) - `time_window` (String) - -### Nested Schema for `tracing.tag_filter` + + + +### Nested Schema for `type_definition.metric_anomaly` + +Read-Only: + +- `metric_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--metric_filter)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--rules)) + + +### Nested Schema for `type_definition.metric_anomaly.metric_filter` + +Read-Only: + +- `promql` (String) + + + +### Nested Schema for `type_definition.metric_anomaly.rules` + +Read-Only: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--rules--condition)) + + +### Nested Schema for `type_definition.metric_anomaly.rules.condition` + +Read-Only: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. +- `for_over_pct` (Number) +- `min_non_null_values_pct` (Number) +- `of_the_last` (String) Time window to evaluate the threshold with. Valid values: ["10_MINUTES" "12_HOURS" "15_MINUTES" "1_HOUR" "1_MINUTE" "20_MINUTES" "24_HOURS" "2_HOURS" "30_MINUTES" "36_HOURS" "4_HOURS" "5_MINUTES" "6_HOURS"]. +- `threshold` (Number) + + + + + +### Nested Schema for `type_definition.metric_threshold` + +Read-Only: + +- `metric_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--metric_filter)) +- `missing_values` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--missing_values)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules)) +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.metric_threshold.metric_filter` + +Read-Only: + +- `promql` (String) + + + +### Nested Schema for `type_definition.metric_threshold.missing_values` + +Read-Only: + +- `min_non_null_values_pct` (Number) +- `replace_with_zero` (Boolean) + + + +### Nested Schema for `type_definition.metric_threshold.rules` + +Read-Only: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules--override)) + + +### Nested Schema for `type_definition.metric_threshold.rules.condition` + +Read-Only: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "LESS_THAN_OR_EQUALS" "MORE_THAN" "MORE_THAN_OR_EQUALS"]. +- `for_over_pct` (Number) +- `of_the_last` (String) Time window to evaluate the threshold with. Valid values: ["10_MINUTES" "12_HOURS" "15_MINUTES" "1_HOUR" "1_MINUTE" "20_MINUTES" "24_HOURS" "2_HOURS" "30_MINUTES" "36_HOURS" "4_HOURS" "5_MINUTES" "6_HOURS"]. +- `threshold` (Number) + + + +### Nested Schema for `type_definition.metric_threshold.rules.override` + +Read-Only: + +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + + + + +### Nested Schema for `type_definition.metric_threshold.undetected_values_management` + +Read-Only: + +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) + + + + +### Nested Schema for `type_definition.tracing_immediate` + +Read-Only: + +- `notification_payload_filter` (Set of String) +- `tracing_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter` + +Read-Only: + +- `latency_threshold_ms` (Number) +- `tracing_label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--application_name)) +- `operation_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--operation_name)) +- `service_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--service_name)) +- `span_fields` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--span_fields)) +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.application_name` Read-Only: -- `field` (String) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. - `values` (Set of String) + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.operation_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + - -### Nested Schema for `unique_count` + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.service_name` Read-Only: -- `applications` (Set of String) -- `categories` (Set of String) -- `classes` (Set of String) -- `computers` (Set of String) -- `condition` (List of Object) (see [below for nested schema](#nestedobjatt--unique_count--condition)) -- `ip_addresses` (Set of String) -- `methods` (Set of String) -- `search_query` (String) -- `severities` (Set of String) -- `subsystems` (Set of String) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + - -### Nested Schema for `unique_count.condition` + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.span_fields` Read-Only: -- `group_by_key` (String) -- `max_unique_values` (Number) -- `max_unique_values_for_group_by` (Number) +- `filter_type` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--span_fields--filter_type)) +- `key` (String) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.span_fields.filter_type` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.subsystem_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + + + + +### Nested Schema for `type_definition.tracing_threshold` + +Read-Only: + +- `notification_payload_filter` (Set of String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--rules)) +- `tracing_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter)) + + +### Nested Schema for `type_definition.tracing_threshold.rules` + +Read-Only: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--rules--condition)) + + +### Nested Schema for `type_definition.tracing_threshold.rules.condition` + +Read-Only: + +- `condition_type` (String) +- `span_amount` (Number) - `time_window` (String) -- `unique_count_key` (String) + + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter` + +Read-Only: + +- `latency_threshold_ms` (Number) +- `tracing_label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters)) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters` + +Read-Only: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--application_name)) +- `operation_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--operation_name)) +- `service_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--service_name)) +- `span_fields` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--span_fields)) +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.application_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.operation_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.service_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.span_fields` + +Read-Only: + +- `filter_type` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--span_fields--filter_type)) +- `key` (String) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.span_fields.filter_type` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) + + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.subsystem_name` + +Read-Only: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. +- `values` (Set of String) diff --git a/docs/data-sources/api_key.md b/docs/data-sources/api_key.md index 6f339d13..ba45949f 100644 --- a/docs/data-sources/api_key.md +++ b/docs/data-sources/api_key.md @@ -30,7 +30,7 @@ data "coralogix_api_key" "same_key_by_id" { - `active` (Boolean) Api Key Is Active. - `hashed` (Boolean) Api Key Is Hashed. - `name` (String) Api Key name. -- `owner` (Attributes) Api Key Owner.It can either be a team_id or a user_id (see [below for nested schema](#nestedatt--owner)) +- `owner` (Attributes) Api Key Owner. It can either be a team_id or a user_id (see [below for nested schema](#nestedatt--owner)) - `permissions` (Set of String) Api Key Permissions - `presets` (Set of String) Api Key Presets - `value` (String) Api Key value. diff --git a/docs/data-sources/custom_role.md b/docs/data-sources/custom_role.md index f60af1ed..c1065d33 100644 --- a/docs/data-sources/custom_role.md +++ b/docs/data-sources/custom_role.md @@ -3,12 +3,12 @@ page_title: "coralogix_custom_role Data Source - terraform-provider-coralogix" subcategory: "" description: |- - Coralogix Custom roles. + Coralogix Custom cxsdk. --- # coralogix_custom_role (Data Source) -Coralogix Custom roles. +Coralogix Custom cxsdk. diff --git a/docs/data-sources/dashboard.md b/docs/data-sources/dashboard.md index ac2a5d76..0073fb9e 100644 --- a/docs/data-sources/dashboard.md +++ b/docs/data-sources/dashboard.md @@ -365,7 +365,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -461,9 +461,9 @@ Read-Only: - `max_bars_per_chart` (Number) - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--query)) - `scale_type` (String) -- `sort_by` (String) The field to sort by. Can be one of unspecified, value, name. +- `sort_by` (String) The field to sort by. Can be one of name, unspecified, value. - `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--stack_definition)) -- `unit` (String) The unit of the chart. Can be one of unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit of the chart. Can be one of bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. - `xaxis` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--xaxis)) @@ -556,7 +556,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -697,8 +697,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -716,7 +716,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -735,7 +735,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -744,7 +744,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -787,11 +787,11 @@ Read-Only: Read-Only: - `columns` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--columns)) -- `data_mode_type` (String) The data mode type. Can be one of ["unspecified" "archive"]. +- `data_mode_type` (String) The data mode type. Can be one of ["archive" "unspecified"]. - `order_by` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--order_by)) - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--query)) - `results_per_page` (Number) The number of results to display per page. -- `row_style` (String) The style of the rows. Can be one of ["condensed" "json" "one_line" "two_line"]. +- `row_style` (String) The style of the rows. Can be one of ["condensed" "json" "list" "one_line" "two_line" "unspecified"]. ### Nested Schema for `layout.sections.rows.widgets.definition.data_table.columns` @@ -808,7 +808,7 @@ Read-Only: Read-Only: - `field` (String) -- `order_direction` (String) The order direction. Can be one of ["desc" "asc"]. +- `order_direction` (String) The order direction. Can be one of ["asc" "desc" "unspecified"]. @@ -899,7 +899,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1053,7 +1053,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1089,8 +1089,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1101,7 +1101,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1113,15 +1113,15 @@ Read-Only: Read-Only: -- `data_mode_type` (String) The data mode type. Can be one of ["unspecified" "archive"]. +- `data_mode_type` (String) The data mode type. Can be one of ["archive" "unspecified"]. - `max` (Number) - `min` (Number) - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--query)) - `show_inner_arc` (Boolean) - `show_outer_arc` (Boolean) -- `threshold_by` (String) The threshold by. Can be one of ["value" "background" "unspecified"]. +- `threshold_by` (String) The threshold by. Can be one of ["background" "unspecified" "value"]. - `thresholds` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--thresholds)) -- `unit` (String) The unit of the gauge. Can be one of ["usd" "milliseconds" "mbytes" "bytes_iec" "mibytes" "none" "kbytes" "seconds" "gbytes" "kibytes" "euro" "euro_cents" "usd_cents" "percent" "microseconds" "bytes" "gibytes"]. +- `unit` (String) The unit of the gauge. Can be one of ["bytes" "bytes_iec" "custom" "euro" "euro_cents" "gbytes" "gibytes" "kbytes" "kibytes" "mbytes" "mibytes" "microseconds" "milliseconds" "nanoseconds" "none" "percent" "percent01" "percent100" "seconds" "unspecified" "usd" "usd_cents"]. ### Nested Schema for `layout.sections.rows.widgets.definition.gauge.query` @@ -1211,7 +1211,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1289,7 +1289,7 @@ Read-Only: Read-Only: -- `aggregation` (String) The type of aggregation. Can be one of ["unspecified" "last" "min" "max" "avg" "sum"]. +- `aggregation` (String) The type of aggregation. Can be one of ["avg" "last" "max" "min" "sum" "unspecified"]. - `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--query--metrics--filters)) - `promql_query` (String) @@ -1336,7 +1336,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1354,8 +1354,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1386,7 +1386,7 @@ Read-Only: - `scale_type` (String) - `sort_by` (String) - `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--horizontal_bar_chart--stack_definition)) -- `unit` (String) The unit of the chart. Can be one of unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit of the chart. Can be one of bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. - `y_axis_view_by` (String) @@ -1524,8 +1524,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1543,7 +1543,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1562,7 +1562,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1571,7 +1571,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1600,10 +1600,10 @@ Read-Only: Read-Only: -- `columns` (List of String) The columns to display in the legend. Valid values are: avg, last, unspecified, min, max, sum. +- `columns` (List of String) The columns to display in the legend. Valid values are: avg, last, max, min, name, sum, unspecified. - `group_by_query` (Boolean) - `is_visible` (Boolean) Whether to display the legend. False by default. -- `placement` (String) The placement of the legend. Valid values are: auto, bottom, side, hidden, unspecified. +- `placement` (String) The placement of the legend. Valid values are: auto, bottom, hidden, side, unspecified. @@ -1618,10 +1618,10 @@ Read-Only: - `name` (String) - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--line_chart--query_definitions--query)) - `resolution` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--line_chart--query_definitions--resolution)) -- `scale_type` (String) The scale type. Valid values are: unspecified, linear, logarithmic. +- `scale_type` (String) The scale type. Valid values are: linear, logarithmic, unspecified. - `series_count_limit` (Number) - `series_name_template` (String) -- `unit` (String) The unit. Valid values are: unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit. Valid values are: bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. ### Nested Schema for `layout.sections.rows.widgets.definition.line_chart.query_definitions.query` @@ -1734,8 +1734,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1753,7 +1753,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1772,7 +1772,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1793,7 +1793,7 @@ Read-Only: Read-Only: - `show_labels` (Boolean) -- `type` (String) The tooltip type. Valid values are: unspecified, all, single. +- `type` (String) The tooltip type. Valid values are: all, single, unspecified. @@ -1828,7 +1828,7 @@ Read-Only: Read-Only: - `is_visible` (Boolean) -- `label_source` (String) The source of the label. Valid values are: unspecified, inner, stack +- `label_source` (String) The source of the label. Valid values are: inner, stack, unspecified - `show_name` (Boolean) - `show_percentage` (Boolean) - `show_value` (Boolean) @@ -1924,7 +1924,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2065,8 +2065,8 @@ Read-Only: Read-Only: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -2084,7 +2084,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2103,7 +2103,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2112,7 +2112,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2182,7 +2182,7 @@ Read-Only: - `selected_values` (List of String) - `source` (Attributes) (see [below for nested schema](#nestedatt--variables--definition--multi_select--source)) -- `values_order_direction` (String) The order direction of the values. Can be one of `desc`, `asc`. +- `values_order_direction` (String) The order direction of the values. Can be one of `asc`, `desc`, `unspecified`. ### Nested Schema for `variables.definition.multi_select.source` @@ -2378,7 +2378,7 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2399,4 +2399,4 @@ Read-Only: Read-Only: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] diff --git a/docs/data-sources/events2metric.md b/docs/data-sources/events2metric.md index 71b52aa7..553079b4 100644 --- a/docs/data-sources/events2metric.md +++ b/docs/data-sources/events2metric.md @@ -39,7 +39,7 @@ Read-Only: - `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx - `lucene` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of severities that we interested in. Can be one of ["Critical" "Unspecified" "Debug" "Verbose" "Info" "Warning" "Error"] +- `severities` (Set of String) An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"] - `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx @@ -117,7 +117,7 @@ Read-Only: - `enable` (Boolean) - `target_metric_name` (String) -- `type` (String) Can be one of ["Min" "Max"]. +- `type` (String) Can be one of ["Max" "Min"]. diff --git a/docs/data-sources/rules_group.md b/docs/data-sources/rules_group.md index 59b6929f..2d96e5ff 100644 --- a/docs/data-sources/rules_group.md +++ b/docs/data-sources/rules_group.md @@ -32,7 +32,7 @@ data "coralogix_rules_group" "imported_rules_group_example" { - `name` (String) Rule-group name - `order` (Number) Determines the index of the rule-group between the other rule-groups. By default, will be added last. (1 based indexing). - `rule_subgroups` (List of Object) List of rule-subgroups. Every rule-subgroup is list of rules with 'or' (||) operation between. (see [below for nested schema](#nestedatt--rule_subgroups)) -- `severities` (Set of String) Rules will execute on logs that match the following severities. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] +- `severities` (Set of String) Rules will execute on logs that match the following severities. Can be one of ["Critical" "Debug" "Error" "Info" "Verbose" "Warning"] - `subsystems` (Set of String) Rules will execute on logs that match the following subsystems. diff --git a/docs/data-sources/slo.md b/docs/data-sources/slo.md index 82171f33..e7d131b6 100644 --- a/docs/data-sources/slo.md +++ b/docs/data-sources/slo.md @@ -24,13 +24,13 @@ Coralogix SLO. - `description` (String) Optional SLO description. - `filters` (Attributes Set) (see [below for nested schema](#nestedatt--filters)) - `name` (String) SLO name. -- `period` (String) Period. This is the period of the SLO. Valid values are: ["unspecified" "7_days" "14_days" "30_days"] +- `period` (String) Period. This is the period of the SLO. Valid values are: ["14_days" "30_days" "7_days" "unspecified"] - `remaining_error_budget_percentage` (Number) - `service_name` (String) Service name. This is the name of the service that the SLO is associated with. - `status` (String) - `target_percentage` (Number) Target percentage. This is the target percentage of the SLO. - `threshold_microseconds` (Number) Threshold in microseconds. Required when `type` is `latency`. -- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["greater" "greater_or_equal" "less" "less_or_equal" "equal"] +- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["equal" "greater" "greater_or_equal" "less" "less_or_equal"] - `type` (String) Type. This is the type of the SLO. Valid values are: "error", "latency". @@ -38,6 +38,6 @@ Coralogix SLO. Read-Only: -- `compare_type` (String) Compare type. This is the compare type of the SLO. Valid values are: ["starts_with" "ends_with" "includes" "unspecified" "is"] +- `compare_type` (String) Compare type. This is the compare type of the SLO. Valid values are: ["ends_with" "includes" "is" "starts_with" "unspecified"] - `field` (String) - `field_values` (Set of String) diff --git a/docs/data-sources/tco_policies_logs.md b/docs/data-sources/tco_policies_logs.md index f3023800..d991fad3 100644 --- a/docs/data-sources/tco_policies_logs.md +++ b/docs/data-sources/tco_policies_logs.md @@ -39,7 +39,7 @@ Read-Only: - `name` (String) tco-policy name. - `order` (Number) The policy's order between the other policies. - `priority` (String) The policy priority. Can be one of ["block" "high" "low" "medium"]. -- `severities` (Set of String) The severities to apply the policy on. Can be few of ["debug" "verbose" "info" "warning" "error" "critical"]. +- `severities` (Set of String) The severities to apply the policy on. Can be few of ["critical" "debug" "error" "info" "verbose" "warning"]. - `subsystems` (Attributes) The subsystems to apply the policy on. Applies the policy on all the subsystems by default. (see [below for nested schema](#nestedatt--policies--subsystems)) @@ -48,7 +48,7 @@ Read-Only: Read-Only: - `names` (Set of String) -- `rule_type` (String) The rule type. Can be one of ["is" "is_not" "starts_with" "includes"]. +- `rule_type` (String) The rule type. Can be one of ["includes" "is" "is_not" "starts_with" "unspecified"]. diff --git a/docs/data-sources/webhook.md b/docs/data-sources/webhook.md index d976c380..01df09de 100644 --- a/docs/data-sources/webhook.md +++ b/docs/data-sources/webhook.md @@ -80,7 +80,7 @@ Read-Only: Read-Only: -- `detail` (String) +- `detail` (String) Event bridge message. JSON string. More details about the token ["here"](https://coralogix.com/docs/user-guides/alerting/outbound-webhooks/generic-outbound-webhooks-alert-webhooks/#placeholders) - `detail_type` (String) Free text to be included in the event. - `event_bus_arn` (String) Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish. - `role_name` (String) Corresponds to the AWS IAM role that will be created in your account. @@ -146,7 +146,7 @@ Read-Only: Read-Only: - `attachments` (Attributes List) Slack attachments. (see [below for nested schema](#nestedatt--slack--attachments)) -- `notify_on` (Set of String) Slack notifications. can be one of: error_and_critical_logs, flow_anomalies, spike_anomalies, data_usage +- `notify_on` (Set of String) Slack notifications. can be one of: data_usage, error_and_critical_logs, flow_anomalies, spike_anomalies - `url` (String) Slack URL. @@ -155,4 +155,4 @@ Read-Only: Read-Only: - `active` (Boolean) Determines if the attachment is active. Default is true. -- `type` (String) Slack attachment type. can be one of: logs, empty, metric_snapshot +- `type` (String) Slack attachment type. can be one of: empty, logs, metric_snapshot diff --git a/docs/guides/api-keys.md b/docs/guides/api-keys.md deleted file mode 100644 index 65be927d..00000000 --- a/docs/guides/api-keys.md +++ /dev/null @@ -1,266 +0,0 @@ -# Upgrading API Keys (from < 1.16) - -With version 1.16, the API Keys resource has been upgraded to the latest available version of the GRPC API which replaces "roles" with "presets" and "permissions". Read more [https://coralogix.com/docs/api-keys/](). This document is the guide on how you can update your existing Terraform files. - -## Legacy And New API Keys - -The change in the underlying permission model created two types of API keys with the old one being described as "legacy keys". Internally all keys have been transitioned to the new model, however there are two key differences: - -1. Legacy keys are "Custom" keys that have a custom set of permissions, instead of a preset -2. Legacy key permissions cannot be updated - -Therefore legacy keys can remain in use as long as no changes to the associated permissions are required. - -### Mapping Roles to Permissions - -Internally, existing roles are mapped to the following set of custom permissions: - - -| Role | Permissions | -|------------------------|------------------------------------------------------------------------------------------------------------| -| RUM Ingress | - rum-ingress:SendData | -| Send Data | - cloud-metadata-ingress:SendData
- logs.data-ingress:SendData
- metrics.data-ingress:SendData
- spans.data-ingress:SendData | -| Coralogix CLI | - data-usage:Read
- org-quota:Manage
- org-quota:Read
- org-teams:Manage
- org-teams:ReadConfig
- team-members:Manage
- team-members:ReadConfig
- team-scim:Manage
- team-scim:ReadConfig
- team-sso:Manage
- team-sso:ReadConfig
- team-quota:Manage
- team-quota:Read | -| SCIM | - team-groups:Manage
- team-groups:ReadConfig
- team-members:Manage
- team-members:ReadConfig
- team-roles:ReadConfig | -| Role Management | - team-roles:Manage
- team-roles:ReadConfig | -| Trigger Webhook | - contextual-data:SendData | -| Legacy Api Key | - alerts:ReadConfig
- alerts:UpdateConfig
- cloud-metadata-enrichment:ReadConfig
- cloud-metadata-enrichment:UpdateConfig
- data-usage:Read
- geo-enrichment:ReadConfig
- geo-enrichment:UpdateConfig
- grafana:Read
- grafana:Update
- logs.data-setup#low:ReadConfig
- logs.data-setup#low:UpdateConfig
- logs.events2metrics:ReadConfig
- logs.events2metrics:UpdateConfig
- logs.tco:ReadPolicies
- logs.tco:UpdatePolicies
- metrics.data-analytics#high:Read
- metrics.data-analytics#low:Read
- metrics.data-setup#high:ReadConfig
- metrics.data-setup#high:UpdateConfig
- metrics.data-setup#low:ReadConfig
- metrics.data-setup#low:UpdateConfig
- metrics.recording-rules:ReadConfig
- metrics.recording-rules:UpdateConfig
- metrics.tco:ReadPolicies
- metrics.tco:UpdatePolicies
- outbound-webhooks:ReadConfig
- outbound-webhooks:UpdateConfig
- parsing-rules:ReadConfig
- parsing-rules:UpdateConfig
- security-enrichment:ReadConfig
- security-enrichment:UpdateConfig
- serverless:Read
- service-catalog:ReadDimensionsConfig
- service-catalog:ReadSLIConfig
- service-catalog:UpdateDimensionsConfig
- service-catalog:UpdateSLIConfig
- service-map:Read
- source-mapping:UploadMapping
- spans.data-api#high:ReadData
- spans.data-api#low:ReadData
- spans.data-setup#low:ReadConfig
- spans.data-setup#low:UpdateConfig
- spans.events2metrics:ReadConfig
- spans.events2metrics:UpdateConfig
- spans.tco:ReadPolicies
- spans.tco:UpdatePolicies
- team-actions:ReadConfig
- team-actions:UpdateConfig
- team-api-keys-security-settings:Manage
- team-api-keys-security-settings:ReadConfig
- team-api-keys:Manage
- team-api-keys:ReadConfig
- team-custom-enrichment:ReadConfig
- team-custom-enrichment:ReadData
- team-custom-enrichment:UpdateConfig
- team-custom-enrichment:UpdateData
- team-dashboards:Read
- team-dashboards:Update
- user-actions:ReadConfig
- user-actions:UpdateConfig
- user-dashboards:Read
- user-dashboards:Update
- version-benchmark-tags:Read
- logs.alerts:ReadConfig
- logs.alerts:UpdateConfig
- spans.alerts:ReadConfig
- spans.alerts:UpdateConfig
- metrics.alerts:ReadConfig
- metrics.alerts:UpdateConfig
- livetail:Read
- service-catalog:Read
- version-benchmark-tags:Update
- service-catalog:ReadApdexConfig
- service-catalog:UpdateApdexConfig
- service-catalog:Update
- team-quota:Manage
- team-quota:Read | -| Query Data Legacy | - logs.data-api#high:ReadData
- logs.data-api#low:ReadData
- metrics.data-api#high:ReadData
- metrics.data-api#low:ReadData
- opensearch-dashboards:Read
- opensearch-dashboards:Update
- snowbit.cspm:Read
- snowbit.sspm:Read
- spans.data-api#high:ReadData
- spans.data-api#low:ReadData
- livetail:Read | - -If an API key had multiple roles, the permissions are merged. - -## Upgrade Procedure - -The new provider version upgrades the state automatically, however the `.tf` files need to reflect those updates as well - anything else would be considered a change by terraform. Here is a step by step upgrade guide: - -0. Upgrade the provider -1. Run `terraform refresh` -2. Locate the `coralogix_api_key` resources and create a property `permissions` corresponding to the roles in `roles`. Use the table above or examples below. -3. Add a property `presets = []` and remove the `roles` property -4. Run `terraform plan`, there should be no changes to the API keys requested - -## Examples - -**1.15.x:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My SCIM KEY" - owner = { - team_id : "5633574" - } - active = true - roles = ["SCIM", "Legacy Api Key", "Role Management", "Send Data"] -} -``` - -**>1.16:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My SCIM KEY" - owner = { - team_id : "5633574" - } - active = true - permissions = [ - "alerts:ReadConfig", - "alerts:UpdateConfig", - "cloud-metadata-enrichment:ReadConfig", - "cloud-metadata-enrichment:UpdateConfig", - "cloud-metadata-ingress:SendData", - "data-usage:Read", - "geo-enrichment:ReadConfig", - "geo-enrichment:UpdateConfig", - "grafana:Read", - "grafana:Update", - "incidents:Acknowledge", - "incidents:Assign", - "incidents:Close", - "incidents:Read", - "incidents:Snooze", - "livetail:Read", - "logs.alerts:ReadConfig", - "logs.alerts:UpdateConfig", - "logs.data-ingress:SendData", - "logs.data-setup#low:ReadConfig", - "logs.data-setup#low:UpdateConfig", - "logs.events2metrics:ReadConfig", - "logs.events2metrics:UpdateConfig", - "logs.tco:ReadPolicies", - "logs.tco:UpdatePolicies", - "metrics.alerts:ReadConfig", - "metrics.alerts:UpdateConfig", - "metrics.data-analytics#high:Read", - "metrics.data-analytics#low:Read", - "metrics.data-ingress:SendData", - "metrics.data-setup#high:ReadConfig", - "metrics.data-setup#high:UpdateConfig", - "metrics.data-setup#low:ReadConfig", - "metrics.data-setup#low:UpdateConfig", - "metrics.recording-rules:ReadConfig", - "metrics.recording-rules:UpdateConfig", - "metrics.tco:ReadPolicies", - "metrics.tco:UpdatePolicies", - "outbound-webhooks:ReadConfig", - "outbound-webhooks:UpdateConfig", - "parsing-rules:ReadConfig", - "parsing-rules:UpdateConfig", - "security-enrichment:ReadConfig", - "security-enrichment:UpdateConfig", - "serverless:Read", - "service-catalog:Read", - "service-catalog:ReadApdexConfig", - "service-catalog:ReadDimensionsConfig", - "service-catalog:ReadSLIConfig", - "service-catalog:Update", - "service-catalog:UpdateApdexConfig", - "service-catalog:UpdateDimensionsConfig", - "service-catalog:UpdateSLIConfig", - "service-map:Read", - "source-mapping:UploadMapping", - "spans.alerts:ReadConfig", - "spans.alerts:UpdateConfig", - "spans.data-api#high:ReadData", - "spans.data-api#low:ReadData", - "spans.data-ingress:SendData", - "spans.data-setup#low:ReadConfig", - "spans.data-setup#low:UpdateConfig", - "spans.events2metrics:ReadConfig", - "spans.events2metrics:UpdateConfig", - "spans.tco:ReadPolicies", - "spans.tco:UpdatePolicies", - "suppression-rules:ReadConfig", - "suppression-rules:UpdateConfig", - "team-actions:ReadConfig", - "team-actions:UpdateConfig", - "team-api-keys-security-settings:Manage", - "team-api-keys-security-settings:ReadConfig", - "team-api-keys:Manage", - "team-api-keys:ReadConfig", - "team-custom-enrichment:ReadConfig", - "team-custom-enrichment:ReadData", - "team-custom-enrichment:UpdateConfig", - "team-custom-enrichment:UpdateData", - "team-dashboards:Read", - "team-dashboards:Update", - "team-groups:Manage", - "team-groups:ReadConfig", - "team-members:Manage", - "team-members:ReadConfig", - "team-quota:Manage", - "team-quota:Read", - "team-roles:Manage", - "team-roles:ReadConfig", - "user-actions:ReadConfig", - "user-actions:UpdateConfig", - "user-dashboards:Read", - "user-dashboards:Update", - "version-benchmark-tags:Read", - "version-benchmark-tags:Update" - ] - presets = [] -} -``` - ---- - -**1.15.x:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My RUM KEY" - owner = { - team_id : "5633574" - } - active = true - roles = ["RUM Ingress"] -} -``` - -**>1.16:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My RUM KEY" - owner = { - team_id : "5633574" - } - active = true - permissions = [ - "rum-ingress:SendData" - ] - presets = [] -} -``` ---- - -**1.15.x:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My WH KEY" - owner = { - team_id : "5633574" - } - active = true - roles = ["Trigger Webhook"] -} -``` - -**>1.16:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My WH KEY" - owner = { - team_id : "5633574" - } - active = true - permissions = [ - "contextual-data:SendData" - ] - presets = [] -} -``` - ---- - -**1.15.x:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My RBAC KEY" - owner = { - team_id : "5633574" - } - active = true - roles = ["SCIM", "Role Management"] -} -``` - -**>1.16:** - -```hcl -resource "coralogix_api_key" "example" { - name = "My RBAC KEY" - owner = { - team_id : "5633574" - } - active = true - permissions = [ - "team-roles:Manage", - "team-roles:ReadConfig", - "team-groups:Manage", - "team-groups:ReadConfig", - "team-members:Manage", - "team-members:ReadConfig" - ] - presets = [] -} -``` - -## Limitations - -- Encrypted (hashed) keys are unsupported in this provider, therefore all keys are created in plain text - diff --git a/docs/guides/v1-v2-migration-guide.md b/docs/guides/v1-v2-migration-guide.md deleted file mode 100644 index 1341b18a..00000000 --- a/docs/guides/v1-v2-migration-guide.md +++ /dev/null @@ -1,135 +0,0 @@ -# **Guide to Using the Terraform Migration Script** - -This guide provides step-by-step instructions on how to use the Terraform migration scripts effectively. - ---- - -## **Prerequisites** -0. **Get the scripts**: - - Download from [https://github.com/coralogix/coralogix-management-sdk/tree/master/tools/terraform-importer]() -1. **Terraform Installed**: - - Ensure you have Terraform installed. You can download it [here](https://www.terraform.io/downloads). -2. **Go Installed**: - - Install Go from [golang.org](https://golang.org/dl/). -3. **Python Installed**: - - The script uses Python 3 for JSON processing, so make sure you have Python 3 installed. -4. **`hcl2json` Installed**: - - Install the `hcl2json` utility. You can find it [here](https://github.com/tmccombs/hcl2json). - ---- - -## **Usage** - -### **1. Script Purpose** -The script allows you to: -- Migrate Terraform configurations based on: - - A folder containing a `terraform.tfstate` file. - - A specific resource type (e.g., `alert`, `dashboard`). -- Generate a migration folder with cleaned and updated configurations. -- Specify the provider version interactively during the process. - ---- - -### **2. Running the Script** -Before running the script, ensure you defined the required environment variables - -`CORALOGIX_API_KEY` and `CORALOGIX_ENV` or `CORALOGIX_DOMAIN`. - -Use the script as follows: -```bash -./generate_and_migrate.sh -``` - ---- - -### **3. Interactive Steps** - -#### **Step 1: Select Migration Type** -You will be prompted to choose the migration type: -- **Option 1**: Migrate based on a folder containing a `terraform.tfstate` file. - - Provide the path to the folder. - - The script ensures that the folder contains a valid `terraform.tfstate` file. -- **Option 2**: Migrate based on a specific resource type. - - A list of resource types will be displayed. Choose from options like: - - `alert`, `dashboard`, `archive_logs`, `events2metrics`, etc. - - Select the desired resource type from the list. - -#### **Step 2: Specify Provider Version** -After selecting the migration type, you will be prompted to specify the Terraform provider version: -- Example: `~>1.19.0`. -- The script will default to `>=2.0.0` if no input is provided. - ---- - -### **4. What Happens Next** - -#### **Step 3: Generate Migration Folder** -- The script creates a new migration folder based on your input: - - For a folder, it appends `_migration` to the folder name. - - For a resource type, it creates a folder like `./_migration`. - -#### **Step 4: Run `generate_imports.go`** -- The script runs a Go program (`generate_imports.go`) to generate an `imports.tf` file inside the migration folder. - -#### **Step 5: Generate `provider.tf`** -- A `provider.tf` file is generated in the migration folder with the specified provider version. - -#### **Step 6: Run `terraform init`** -- The script initializes Terraform inside the migration folder using `terraform init`. - -#### **Step 7: Run `terraform plan`** -- The script runs `terraform plan` with the `-generate-config-out` flag to generate a new configuration file (`generated.tf`). - -#### **Step 8: Remove Null Values** -- Python is used to clean the JSON file by removing null values, generating a cleaned JSON file (`cleaned_config.json`). - -#### **Step 9: Apply the Configuration** -- The script applies the cleaned configuration using `terraform apply`. -**Note**: The script will prompt you to confirm the apply action and will override your existing resources with the new configuration. -If you choose not to apply, the script will exit. - -#### **Step 10: Cleanup** -- Temporary files are deleted. - ---- - -### **5. Example Outputs** - -#### **Migration Type Selection** -```plaintext -[INFO] Select the migration type: -[INFO] 1) Migrate based on a folder containing terraform.tfstate -[INFO] 2) Migrate based on a specific resource name -Enter your choice (1 or 2): 2 -``` - -#### **Provider Version Prompt** -```plaintext -Enter the Terraform provider version to migrate to (e.g., ~>1.19.0): >=2.0.0 -``` - -#### **Logs During Execution** -```plaintext -2024-12-01 15:45:22 [INFO] Creating migration folder: ./alert_migration -2024-12-01 15:45:22 [INFO] Running generate_imports.go with -type... -2024-12-01 15:45:22 [INFO] Successfully generated imports.tf at ./alert_migration. -2024-12-01 15:45:22 [INFO] Generating provider configuration in ./alert_migration/provider.tf... -2024-12-01 15:45:22 [INFO] Provider configuration generated in ./alert_migration/provider.tf. -2024-12-01 15:45:22 [INFO] Initializing Terraform in ./alert_migration... -2024-12-01 15:45:22 [INFO] Running terraform plan in ./alert_migration... -... -2024-12-01 15:45:22 [INFO] Terraform apply completed. -2024-12-01 15:45:22 [INFO] Cleanup completed. -2024-12-01 15:45:22 [INFO] Script completed successfully. -``` - ---- - -### **6. Notes** -- **Customization**: - - Update the resource types in the script if new ones are added. - - Adjust the default provider version if needed. -- **Error Handling**: - - The script will exit if any step fails (`set -e`). - - Logs are color-coded for better visibility (`INFO`, `ERROR`, `WARNING`, etc.). - ---- \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 72158b92..5f259940 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -35,4 +35,4 @@ provider "coralogix" { - `api_key` (String, Sensitive) A key for using coralogix APIs (Auto Generated), appropriate for the defined environment. environment variable 'CORALOGIX_API_KEY' can be defined instead. - `domain` (String) The Coralogix domain. Conflict With 'env'. environment variable 'CORALOGIX_DOMAIN' can be defined instead. -- `env` (String) The Coralogix API environment. can be one of ["USA2" "US2" "AP2" "APAC3" "EUROPE1" "EU1" "EU2" "US1" "APAC1" "AP1" "EUROPE2" "APAC2" "AP3" "USA1"]. environment variable 'CORALOGIX_ENV' can be defined instead. +- `env` (String) The Coralogix API environment. can be one of ["US2" "AP2" "APAC3" "AP3" "EUROPE1" "APAC1" "AP1" "US1" "APAC2" "EUROPE2" "EU2" "EU1" "USA1" "USA2"]. environment variable 'CORALOGIX_ENV' can be defined instead. diff --git a/docs/resources/action.md b/docs/resources/action.md index f71e4e92..74b62b9f 100644 --- a/docs/resources/action.md +++ b/docs/resources/action.md @@ -16,7 +16,7 @@ Coralogix action. For more info please review - https://coralogix.com/docs/coral terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/alert.md b/docs/resources/alert.md index 5057ed29..e8bad33d 100644 --- a/docs/resources/alert.md +++ b/docs/resources/alert.md @@ -3,12 +3,12 @@ page_title: "coralogix_alert Resource - terraform-provider-coralogix" subcategory: "" description: |- - Coralogix alert. More info: https://coralogix.com/docs/alerts-api/ . + Coralogix Alert. For more info please review - https://coralogix.com/docs/getting-started-with-coralogix-alerts/. --- # coralogix_alert (Resource) -Coralogix alert. More info: https://coralogix.com/docs/alerts-api/ . +Coralogix Alert. For more info please review - https://coralogix.com/docs/getting-started-with-coralogix-alerts/. ## Example Usage @@ -16,7 +16,7 @@ Coralogix alert. More info: https://coralogix.com/docs/alerts-api/ . terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -27,451 +27,473 @@ provider "coralogix" { #env = "" } -resource "coralogix_alert" "standard_alert" { - name = "Standard alert example" - description = "Example of standard alert from terraform" - severity = "Critical" +resource "coralogix_alert" "test" { + name = "logs_immediate alert" + description = "Example of logs_immediate alert from terraform" + priority = "P2" - meta_labels = { + labels = { alert_type = "security" security_severity = "high" } - notifications_group { - group_by_fields = ["coralogix.metadata.sdkId", "EventType"] - notification { - integration_id = coralogix_webhook.slack_webhook.external_id + incidents_settings = { + notify_on = "Triggered and Resolved" + retriggering_period = { + minutes = 10 } - notification { - email_recipients = ["example@coralogix.com"] - } - } - notifications_group { - notification { - email_recipients = ["example@coralogix.com"] - } - } - - incident_settings { - notify_on = "Triggered_and_resolved" - retriggering_period_minutes = 60 } - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" + schedule = { + active_on = { + days_of_week = ["Wednesday", "Thursday"] + start_time = "08:30" + end_time = "20:30" } } - - standard { - applications = ["filter:contains:nginx"] //change here for existing applications from your account - subsystems = ["filter:startsWith:subsystem-name"] //change here for existing subsystems from your account - severities = ["Warning", "Info"] - search_query = "remote_addr_enriched:/.*/" - condition { - more_than = true - threshold = 5 - time_window = "30Min" - group_by = ["coralogix.metadata.sdkId", "EventType"] - evaluation_window = "Dynamic" + type_definition = { + logs_immediate = { + logs_filter = { + simple_filter = { + lucene_query = "message:\"error\"" + } + } } } } -data "coralogix_alert" "imported_standard_alert" { - id = coralogix_alert.standard_alert.id -} - -resource "coralogix_alert" "ratio_alert" { - name = "Ratio alert example" - description = "Example of ratio alert from terraform" - severity = "Critical" - - notifications_group { - notification { - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 - notify_on = "Triggered_only" - } - notification { - email_recipients = ["example@coralogix.com"] - retriggering_period_minutes = 1 - notify_on = "Triggered_and_resolved" - } - } +resource "coralogix_alert" "test" { + name = "logs_anomaly alert example" + description = "Example of logs_anomaly alert from terraform" + priority = "P4" - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" - } + labels = { + alert_type = "security" + security_severity = "high" } - ratio { - query_1 { - - } - query_2 { - applications = ["nginx"] //change here for existing applications from your account - subsystems = ["subsystem-name"] //change here for existing subsystems from your account - severities = ["Warning"] - } - condition { - less_than = true - ratio_threshold = 2 - time_window = "10Min" - group_by = ["coralogix.metadata.sdkId"] - group_by_q1 = true - manage_undetected_values { - enable_triggering_on_undetected_values = true - auto_retire_ratio = "5Min" + notification_group = { + webhooks_settings = [{ + retriggering_period = { + minutes = 1 } - } + notify_on = "Triggered and Resolved" + recipients = ["example@coralogix.com"] + }] } -} -resource "coralogix_alert" "new_value_alert" { - name = "New value alert example" - description = "Example of new value alert from terraform" - severity = "Info" - - notifications_group { - notification { - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 - notify_on = "Triggered_only" - } - notification { - email_recipients = ["example@coralogix.com"] - retriggering_period_minutes = 1 - notify_on = "Triggered_and_resolved" + incidents_settings = { + notify_on = "Triggered and Resolved" + retriggering_period = { + minutes = 1 } } - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" + schedule = { + active_on = { + days_of_week = ["Wednesday", "Thursday"] + start_time = "08:30" + end_time = "20:30" } } - new_value { - severities = ["Info"] - condition { - key_to_track = "remote_addr_geoip.country_name" - time_window = "12H" + type_definition = { + logs_anomaly = { + rules = [{ + condition = { + minimum_threshold = 2 + time_window = "10_MINUTES" + } + override = { + priority = "P2" + } + }] + logs_filter = { + simple_filter = { + lucene_query = "message:\"error\"" + label_filters = { + application_name = [{ + operation = "IS" + value = "nginx" + }] + subsystem_name = [{ + operation = "IS" + value = "subsystem-name" + }] + severities = ["Warning"] + } + } + } + notification_payload_filter = [ + "coralogix.metadata.sdkId", "coralogix.metadata.sdkName", "coralogix.metadata.sdkVersion" + ] } } } -resource "coralogix_alert" "time_relative_alert" { - name = "Time relative alert example" - description = "Example of time relative alert from terraform" - severity = "Critical" - - notifications_group { - notification { - integration_id = coralogix_webhook.slack_webhook.external_id - } - notification { - email_recipients = ["example@coralogix.com"] - } - } - - incident_settings { - notify_on = "Triggered_and_resolved" - retriggering_period_minutes = 1 - } +resource "coralogix_alert" "test" { + name = "logs_threshold alert example" + description = "Example of logs_threshold alert example from terraform" + priority = "P2" - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" - } + labels = { + alert_type = "security" + security_severity = "high" } - time_relative { - severities = ["Error"] - condition { - more_than = true - ratio_threshold = 2 - relative_time_window = "Same_hour_last_week" - } + notification_group = { + webhooks_settings = [{ + recipients = ["example@coralogix.com", "example2@coralogix.com"] + }] } -} -resource "coralogix_alert" "metric_lucene_alert" { - name = "Metric lucene alert example" - description = "Example of metric lucene alert from terraform" - severity = "Critical" - - notifications_group { - notification { - integration_id = coralogix_webhook.slack_webhook.external_id - } - notification { - email_recipients = ["example@coralogix.com"] + incidents_settings = { + notify_on = "Triggered and Resolved" + retriggering_period = { + minutes = 1 } } - incident_settings { - notify_on = "Triggered_and_resolved" - retriggering_period_minutes = 60 - } - - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" + schedule = { + active_on = { + days_of_week = ["Wednesday", "Thursday"] + start_time = "10:30" + end_time = "20:30" } } - metric { - lucene { - search_query = "name:\"Frontend transactions\"" - condition { - metric_field = "subsystem" - arithmetic_operator = "Percentile" - arithmetic_operator_modifier = 20 - less_than = true - group_by = ["coralogix.metadata.sdkId"] - threshold = 60 - sample_threshold_percentage = 50 - time_window = "30Min" - manage_undetected_values { - enable_triggering_on_undetected_values = false + type_definition = { + logs_threshold = { + rules = [{ + condition = { + threshold = 2 + time_window = "10_MINUTES" + condition_type = "LESS_THAN" + } + override = { + priority = "P2" + } + }] + logs_filter = { + simple_filter = { + lucene_query = "message:\"error\"" + label_filters = { + application_name = [{ + operation = "NOT" + value = "application_name" + }] + subsystem_name = [{ + operation = "STARTS_WITH" + value = "subsystem-name" + }] + severities = ["Warning", "Error"] + } } } } } } -resource "coralogix_alert" "metric_promql_alert" { - name = "Metric promql alert example" - description = "Example of metric promql alert from terraform" - severity = "Critical" - - notifications_group { - notification { - notify_on = "Triggered_and_resolved" - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 - } - notification { - notify_on = "Triggered_and_resolved" - email_recipients = ["example@coralogix.com"] - retriggering_period_minutes = 24*60 - } - } - - scheduling { - time_zone = "UTC-8" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" +resource "coralogix_alert" "test" { + name = "logs_ratio_threshold alert example" + description = "Example of logs_ratio_threshold alert from terraform" + priority = "P3" + + group_by = ["coralogix.metadata.alert_id", "coralogix.metadata.alert_name"] + type_definition = { + logs_ratio_threshold = { + numerator_alias = "numerator" + denominator_alias = "denominator" + rules = [{ + condition = { + threshold = 2 + time_window = "10_MINUTES" + condition_type = "LESS_THAN" + } + override = { + priority = "P2" + } + }] + group_by_for = "Denominator Only" } } +} - metric { - promql { - search_query = "http_requests_total{status!~\"4..\"}" - condition { - less_than_usual = true - threshold = 3 - sample_threshold_percentage = 50 - time_window = "12H" - replace_missing_value_with_zero = true - } +resource "coralogix_alert" "test" { + name = "logs_new_value alert example" + description = "Example of logs_new_value alert from terraform" + priority = "P2" + + type_definition = { + logs_new_value = { + notification_payload_filter = ["coralogix.metadata.sdkId", "coralogix.metadata.sdkName", "coralogix.metadata.sdkVersion"] + rules = [{ + condition = { + time_window = "24_HOURS" + keypath_to_track = "remote_addr_geoip.country_name" + } + override = { + priority = "P2" + } + }] } } } -resource "coralogix_alert" "unique_count_alert" { - name = "Unique count alert example" - description = "Example of unique count alert from terraform" - severity = "Info" - - notifications_group { - group_by_fields = ["coralogix.metadata.sdkId"] - notification { - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 - notify_on = "Triggered_and_resolved" - } - notification { - email_recipients = ["example@coralogix.com"] - retriggering_period_minutes = 1 - notify_on = "Triggered_and_resolved" +resource "coralogix_alert" "test" { + name = "logs_unique_count alert example" + description = "Example of logs_unique_count alert from terraform" + priority = "P2" + + group_by = ["remote_addr_geoip.city_name"] + type_definition = { + logs_unique_count = { + unique_count_keypath = "remote_addr_geoip.country_name" + max_unique_count_per_group_by_key = 500 + rules = [ { + condition = { + max_unique_count = 2 + time_window = "5_MINUTES" + } + }] } } +} - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" +resource "coralogix_alert" "test" { + name = "logs_time_relative_threshold alert example" + description = "Example of logs_time_relative_threshold alert from terraform" + priority = "P3" + + type_definition = { + logs_time_relative_threshold = { + rules = [{ + condition = { + threshold = 50 + compared_to = "Same Day Last Week" + ignore_infinity = false + condition_type = "LESS_THAN" + } + override = { + priority = "P2" + } + }] + undetected_values_management = { + trigger_undetected_values = true + auto_retire_timeframe = "6_HOURS" + } } } +} - unique_count { - severities = ["Info"] - condition { - unique_count_key = "remote_addr_geoip.country_name" - max_unique_values = 2 - time_window = "10Min" - group_by_key = "coralogix.metadata.sdkId" - max_unique_values_for_group_by = 500 - } +resource "coralogix_alert" "test" { + name = "metric_anomaly alert example" + description = "Example of metric_anomaly alert from terraform" + priority = "P1" + type_definition = { + metric_anomaly = { + metric_filter = { + promql = "sum(rate(http_requests_total{job=\"api-server\"}[5m])) by (status)" + } + rules = [{ + condition = { + threshold = 2 + for_over_pct = 10 + of_the_last = "10_MINUTES" + condition_type = "LESS_THAN" + min_non_null_values_pct = 50 + } + }] + } } } -resource "coralogix_alert" "tracing_alert" { - name = "Tracing alert example" - description = "Example of tracing alert from terraform" - severity = "Info" +resource "coralogix_alert" "test" { + name = "metric_threshold alert example" + description = "Example of metric_threshold alert from terraform" + priority = "P3" - notifications_group { - notification { - notify_on = "Triggered_and_resolved" - email_recipients = ["user@example.com"] - retriggering_period_minutes = 1 - } - notification { - notify_on = "Triggered_and_resolved" - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 + type_definition = { + metric_threshold = { + metric_filter = { + promql = "sum(rate(http_requests_total{job=\"api-server\"}[5m])) by (status)" + } + rules = [{ + condition = { + threshold = 2 + for_over_pct = 10 + of_the_last = "10_MINUTES" + condition_type = "MORE_THAN_OR_EQUALS" + } + override = { + priority = "P2" + } + }] + missing_values = { + replace_with_zero = true + } } } +} - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" +resource "coralogix_alert" "test" { + name = "tracing_immediate alert example" + description = "Example of tracing_immediate alert from terraform" + priority = "P1" + + type_definition = { + tracing_immediate = { + tracing_filter = { + latency_threshold_ms = 100 + tracing_label_filters = { + application_name = [ + { + operation = "IS" + values = ["nginx", "apache"] + }, + { + operation = "STARTS_WITH" + values = ["application-name:"] + } + ] + subsystem_name = [ + { + values = ["subsystem-name"] + } + ] + operation_name = [ + { + values = ["operation-name"] + } + ] + span_fields = [ + { + key = "status" + filter_type = { + values = ["200"] + } + }, + { + key = "status" + filter_type = { + operation = "STARTS_WITH" + values = ["40", "50"] + } + }, + ] + } + } } } +} - tracing { - latency_threshold_milliseconds = 20.5 - applications = [ - "application_name", "filter:contains:application-name2", "filter:endsWith:application-name3", - "filter:startsWith:application-name4" - ] - subsystems = [ - "subsystemName", "filter:notEquals:subsystemName2", "filter:contains:subsystemName", - "filter:endsWith:subsystemName", - "filter:startsWith:subsystemName" - ] - services = [ - "serviceName", "filter:contains:serviceName", "filter:endsWith:serviceName", "filter:startsWith:serviceName" - ] - tag_filter { - field = "status" - values = ["filter:contains:400", "500"] - } - tag_filter { - field = "key" - values = ["value"] - } - condition { - more_than = true - time_window = "5Min" - threshold = 2 +resource "coralogix_alert" "test" { + name = "tracing_threshold alert example" + description = "Example of tracing_threshold alert from terraform" + priority = "P2" + + type_definition = { + tracing_threshold = { + tracing_filter = { + latency_threshold_ms = 100 + tracing_label_filters = { + application_name = [ + { + operation = "IS" + values = ["nginx", "apache"] + }, + { + operation = "STARTS_WITH" + values = ["application-name:"] + } + ] + } + } + rules = [{ + condition = { + time_window = "10_MINUTES" + span_amount = 5 + } + }] } } } -resource "coralogix_alert" "flow_alert" { - name = "Flow alert example" - description = "Example of flow alert from terraform" - severity = "Info" - notifications_group { - notification { - notify_on = "Triggered_and_resolved" - email_recipients = ["user@example.com"] - retriggering_period_minutes = 1 - } - notification { - notify_on = "Triggered_and_resolved" - integration_id = coralogix_webhook.slack_webhook.external_id - retriggering_period_minutes = 1 - } - } - scheduling { - time_zone = "UTC+2" - time_frame { - days_enabled = ["Wednesday", "Thursday"] - start_time = "08:30" - end_time = "20:30" +resource "coralogix_alert" "test_1"{ + name = "logs immediate alert 1" + priority = "P1" + type_definition = { + logs_immediate = { + } } - } +} - flow { - stage { - group { - sub_alerts { - operator = "OR" - flow_alert { - user_alert_id = coralogix_alert.standard_alert.id - } +resource "coralogix_alert" "test_2"{ + name = "logs immediate alert 2" + priority = "P2" + type_definition = { + logs_immediate = { } - next_operator = "OR" - } - group { - sub_alerts { - operator = "AND" - flow_alert { - not = true - user_alert_id = coralogix_alert.unique_count_alert.id - } + } +} + +resource "coralogix_alert" "test_3"{ + name = "logs immediate alert 3" + priority = "P3" + type_definition = { + logs_immediate = { } - next_operator = "AND" - } - time_window { - minutes = 20 - } } - stage { - group { - sub_alerts { - operator = "AND" - flow_alert { - user_alert_id = coralogix_alert.standard_alert.id - } - flow_alert { - not = true - user_alert_id = coralogix_alert.unique_count_alert.id - } +} + +resource "coralogix_alert" "test_4"{ + name = "logs immediate alert 4" + priority = "P4" + type_definition = { + logs_immediate = { } - next_operator = "OR" - } } - group_by = ["coralogix.metadata.sdkId"] - } } -resource "coralogix_webhook" "slack_webhook" { - name = "slack-webhook" - slack = { - notify_on = ["flow_anomalies"] - url = "https://join.slack.com/example" - } +resource "coralogix_alert" "test" { + name = "flow alert example" + description = "Example of flow alert from terraform" + priority = "P3" + type_definition = { + flow = { + enforce_suppression = false + stages = [{ + flow_stages_groups = [{ + alert_defs = [ + { + id = coralogix_alert.test_1.id + }, + { + id = coralogix_alert.test_2.id + }, + ] + next_op = "AND" + alerts_op = "OR" + }, + { + alert_defs = [ + { + id = coralogix_alert.test_3.id + }, + { + id = coralogix_alert.test_4.id + }, + ] + next_op = "OR" + alerts_op = "AND" + },] + timeframe_ms = 10 + timeframe_type = "Up To" + }] + } + } } ``` @@ -481,530 +503,1564 @@ resource "coralogix_webhook" "slack_webhook" { ### Required - `name` (String) Alert name. -- `severity` (String) Determines the alert's severity. Can be one of ["Warning" "Critical" "Error" "Low" "Info"] +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. +- `type_definition` (Attributes) Alert type definition. Exactly one of the following must be specified: logs_immediate, logs_threshold, logs_anomaly, logs_ratio_threshold, logs_new_value, logs_unique_count, logs_time_relative_threshold, metric_threshold, metric_anomaly, tracing_immediate, tracing_threshold flow. (see [below for nested schema](#nestedatt--type_definition)) ### Optional - `description` (String) Alert description. -- `enabled` (Boolean) Determines whether the alert will be active. True by default. -- `expiration_date` (Block List, Max: 1) The expiration date of the alert (if declared). (see [below for nested schema](#nestedblock--expiration_date)) -- `flow` (Block List, Max: 1) Alert based on a combination of alerts in a specific timeframe. (see [below for nested schema](#nestedblock--flow)) -- `incident_settings` (Block List, Max: 1) (see [below for nested schema](#nestedblock--incident_settings)) -- `meta_labels` (Map of String) Labels allow you to easily filter by alert type and create views. Insert a new label or use an existing one. You can nest a label using key:value. -- `metric` (Block List, Max: 1) Alert based on arithmetic operators for metrics. (see [below for nested schema](#nestedblock--metric)) -- `new_value` (Block List, Max: 1) Alert on never before seen log value. (see [below for nested schema](#nestedblock--new_value)) -- `notifications_group` (Block Set) Defines notifications settings over list of group-by keys (or on empty list). (see [below for nested schema](#nestedblock--notifications_group)) -- `payload_filters` (Set of String) A list of log fields out of the log example which will be included with the alert notification. -- `ratio` (Block List, Max: 1) Alert based on the ratio between queries. (see [below for nested schema](#nestedblock--ratio)) -- `scheduling` (Block List, Max: 1) Limit the triggering of this alert to specific time frames. Active always by default. (see [below for nested schema](#nestedblock--scheduling)) -- `standard` (Block List, Max: 1) Alert based on number of log occurrences. (see [below for nested schema](#nestedblock--standard)) -- `time_relative` (Block List, Max: 1) Alert based on ratio between timeframes. (see [below for nested schema](#nestedblock--time_relative)) -- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) -- `tracing` (Block List, Max: 1) Alert based on tracing latency. (see [below for nested schema](#nestedblock--tracing)) -- `unique_count` (Block List, Max: 1) Alert based on unique value count per key. (see [below for nested schema](#nestedblock--unique_count)) +- `enabled` (Boolean) Alert enabled status. True by default. +- `group_by` (Set of String) Group by fields. +- `incidents_settings` (Attributes) (see [below for nested schema](#nestedatt--incidents_settings)) +- `labels` (Map of String) +- `notification_group` (Attributes) (see [below for nested schema](#nestedatt--notification_group)) +- `phantom_mode` (Boolean) +- `schedule` (Attributes) Alert schedule. Will be activated all the time if not specified. (see [below for nested schema](#nestedatt--schedule)) ### Read-Only -- `id` (String) The ID of this resource. +- `deleted` (Boolean) +- `id` (String) Alert ID. - -### Nested Schema for `expiration_date` + +### Nested Schema for `type_definition` + +Optional: + +- `flow` (Attributes) (see [below for nested schema](#nestedatt--type_definition--flow)) +- `logs_anomaly` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly)) +- `logs_immediate` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate)) +- `logs_new_value` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value)) +- `logs_ratio_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold)) +- `logs_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold)) +- `logs_time_relative_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold)) +- `logs_unique_count` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count)) +- `metric_anomaly` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly)) +- `metric_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold)) +- `tracing_immediate` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate)) +- `tracing_threshold` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold)) + + +### Nested Schema for `type_definition.flow` Required: -- `day` (Number) Day of a month. Must be from 1 to 31 and valid for the year and month. -- `month` (Number) Month of a year. Must be from 1 to 12. -- `year` (Number) Year of the date. Must be from 1 to 9999. +- `stages` (Attributes List) (see [below for nested schema](#nestedatt--type_definition--flow--stages)) + +Optional: +- `enforce_suppression` (Boolean) - -### Nested Schema for `flow` + +### Nested Schema for `type_definition.flow.stages` Required: -- `stage` (Block List, Min: 1) (see [below for nested schema](#nestedblock--flow--stage)) +- `flow_stages_groups` (Attributes List) (see [below for nested schema](#nestedatt--type_definition--flow--stages--flow_stages_groups)) +- `timeframe_type` (String) Optional: -- `group_by` (List of String) +- `timeframe_ms` (Number) + + +### Nested Schema for `type_definition.flow.stages.flow_stages_groups` + +Required: + +- `alert_defs` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--flow--stages--flow_stages_groups--alert_defs)) +- `alerts_op` (String) Alerts operation. Valid values: ["AND" "OR"]. +- `next_op` (String) Next operation. Valid values: ["AND" "OR"]. - -### Nested Schema for `flow.stage` + +### Nested Schema for `type_definition.flow.stages.flow_stages_groups.alert_defs` Required: -- `group` (Block List, Min: 1) (see [below for nested schema](#nestedblock--flow--stage--group)) +- `id` (String) Optional: -- `time_window` (Block List, Max: 1) Timeframe for flow stage. (see [below for nested schema](#nestedblock--flow--stage--time_window)) +- `not` (Boolean) + + - -### Nested Schema for `flow.stage.group` + + + +### Nested Schema for `type_definition.logs_anomaly` Required: -- `next_operator` (String) The operator to use on the alert. can be one of ["AND" "OR"] -- `sub_alerts` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--flow--stage--group--sub_alerts)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--rules)) + +Optional: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter)) +- `notification_payload_filter` (Set of String) - -### Nested Schema for `flow.stage.group.sub_alerts` + +### Nested Schema for `type_definition.logs_anomaly.rules` Required: -- `flow_alert` (Block List, Min: 1) (see [below for nested schema](#nestedblock--flow--stage--group--sub_alerts--flow_alert)) -- `operator` (String) The operator to use on the alert. can be one of ["AND" "OR"] +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--rules--condition)) - -### Nested Schema for `flow.stage.group.sub_alerts.flow_alert` + +### Nested Schema for `type_definition.logs_anomaly.rules.condition` Required: -- `user_alert_id` (String) +- `minimum_threshold` (Number) +- `time_window` (String) + +Read-Only: + +- `condition_type` (String) + + + + +### Nested Schema for `type_definition.logs_anomaly.logs_filter` Optional: -- `not` (Boolean) +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter)) + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter` +Optional: +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) - -### Nested Schema for `flow.stage.time_window` + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters` Optional: -- `hours` (Number) -- `minutes` (Number) -- `seconds` (Number) +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_anomaly--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters.application_name` + +Required: +- `value` (String) +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. - -### Nested Schema for `incident_settings` + +### Nested Schema for `type_definition.logs_anomaly.logs_filter.simple_filter.label_filters.subsystem_name` Required: -- `retriggering_period_minutes` (Number) +- `value` (String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + + + + + +### Nested Schema for `type_definition.logs_immediate` + +Optional: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter)) +- `notification_payload_filter` (Set of String) + + +### Nested Schema for `type_definition.logs_immediate.logs_filter` Optional: -- `notify_on` (String) Defines the alert's triggering logic. Can be one of ["Triggered_only" "Triggered_and_resolved"]. Triggered_and_resolved conflicts with new_value, unique_count and flow alerts, and with immediately and more_than_usual conditions +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter` +Optional: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) - -### Nested Schema for `metric` + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters` Optional: -- `lucene` (Block List, Max: 1) (see [below for nested schema](#nestedblock--metric--lucene)) -- `promql` (Block List, Max: 1) (see [below for nested schema](#nestedblock--metric--promql)) +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_immediate--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `metric.lucene` + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters.application_name` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--metric--lucene--condition)) -- `search_query` (String) Regular expiration. More info: https://coralogix.com/blog/regex-101/ +- `value` (String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + - -### Nested Schema for `metric.lucene.condition` + +### Nested Schema for `type_definition.logs_immediate.logs_filter.simple_filter.label_filters.subsystem_name` Required: -- `arithmetic_operator` (String) The arithmetic operator to use on the alert. can be one of ["Avg" "Min" "Max" "Sum" "Count" "Percentile"] -- `metric_field` (String) The name of the metric field to alert on. -- `sample_threshold_percentage` (Number) The metric value must cross the threshold within this percentage of the timeframe (sum and count arithmetic operators do not use this parameter since they aggregate over the entire requested timeframe), increments of 10, 0 <= value <= 100. -- `threshold` (Number) The number of log threshold that is needed to trigger the alert. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["12H" "5Min" "1H" "2H" "20Min" "30Min" "4H" "6H" "24H" "1Min" "10Min" "15Min"] +- `value` (String) Optional: -- `arithmetic_operator_modifier` (Number) When arithmetic_operator = "Percentile" you need to supply the value in this property, 0 < value < 100. -- `group_by` (List of String) The fields to 'group by' on. -- `less_than` (Boolean) Determines the condition operator. Must be one of - less_than or more_than. -- `manage_undetected_values` (Block List, Max: 1) Manage your logs undetected values - when relevant, enable/disable triggering on undetected values and change the auto retire interval. By default (when relevant), triggering is enabled with retire-ratio=NEVER. (see [below for nested schema](#nestedblock--metric--lucene--condition--manage_undetected_values)) -- `min_non_null_values_percentage` (Number) The minimum percentage of the timeframe that should have values for this alert to trigger -- `more_than` (Boolean) Determines the condition operator. Must be one of - less_than or more_than. -- `replace_missing_value_with_zero` (Boolean) If set to true, missing data will be considered as 0, otherwise, it will not be considered at all. +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + - -### Nested Schema for `metric.lucene.condition.manage_undetected_values` + + + + +### Nested Schema for `type_definition.logs_new_value` Required: -- `enable_triggering_on_undetected_values` (Boolean) Determines whether the deadman-option is enabled. When set to true, auto_retire_ratio is required otherwise auto_retire_ratio should be omitted. +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--rules)) Optional: -- `auto_retire_ratio` (String) Defines the triggering auto-retire ratio. Can be one of ["6H" "12H" "24H" "Never" "5Min" "10Min" "1H" "2H"] +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter)) +- `notification_payload_filter` (Set of String) + +### Nested Schema for `type_definition.logs_new_value.rules` +Required: +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--rules--condition)) - -### Nested Schema for `metric.promql` + +### Nested Schema for `type_definition.logs_new_value.rules.condition` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--metric--promql--condition)) -- `search_query` (String) Regular expiration. More info: https://coralogix.com/blog/regex-101/ +- `keypath_to_track` (String) +- `time_window` (String) + + + + +### Nested Schema for `type_definition.logs_new_value.logs_filter` + +Optional: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter` + +Optional: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters` + +Optional: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_new_value--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `metric.promql.condition` + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters.application_name` Required: -- `sample_threshold_percentage` (Number) -- `threshold` (Number) The threshold that is needed to trigger the alert. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["12H" "5Min" "1H" "2H" "20Min" "30Min" "4H" "6H" "24H" "1Min" "10Min" "15Min"] +- `value` (String) Optional: -- `less_than` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `less_than_or_equal` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `less_than_usual` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `manage_undetected_values` (Block List, Max: 1) Manage your logs undetected values - when relevant, enable/disable triggering on undetected values and change the auto retire interval. By default (when relevant), triggering is enabled with retire-ratio=NEVER. (see [below for nested schema](#nestedblock--metric--promql--condition--manage_undetected_values)) -- `min_non_null_values_percentage` (Number) -- `more_than` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `more_than_or_equal` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `more_than_usual` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than, more_than_usual, less_than_usual, more_than_or_equal or less_than_or_equal. -- `replace_missing_value_with_zero` (Boolean) If set to true, missing data will be considered as 0, otherwise, it will not be considered at all. +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. - -### Nested Schema for `metric.promql.condition.manage_undetected_values` + + +### Nested Schema for `type_definition.logs_new_value.logs_filter.simple_filter.label_filters.subsystem_name` Required: -- `enable_triggering_on_undetected_values` (Boolean) Determines whether the deadman-option is enabled. When set to true, auto_retire_ratio is required otherwise auto_retire_ratio should be omitted. +- `value` (String) Optional: -- `auto_retire_ratio` (String) Defines the triggering auto-retire ratio. Can be one of ["6H" "12H" "24H" "Never" "5Min" "10Min" "1H" "2H"] +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + - -### Nested Schema for `new_value` + +### Nested Schema for `type_definition.logs_ratio_threshold` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--new_value--condition)) +- `denominator_alias` (String) +- `numerator_alias` (String) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules)) Optional: -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `categories` (Set of String) An array that contains log’s categories that we want to be notified on. -- `classes` (Set of String) An array that contains log’s class names that we want to be notified on. -- `computers` (Set of String) An array that contains log’s computer names that we want to be notified on. -- `ip_addresses` (Set of String) An array that contains log’s IP addresses that we want to be notified on. -- `methods` (Set of String) An array that contains log’s method names that we want to be notified on. -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `denominator` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator)) +- `group_by_for` (String) Group by for. Valid values: ["Both" "Denominator Only" "Numerator Only"]. 'Both' by default. +- `notification_payload_filter` (Set of String) +- `numerator` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator)) - -### Nested Schema for `new_value.condition` + +### Nested Schema for `type_definition.logs_ratio_threshold.rules` Required: -- `key_to_track` (String) Select a key to track. Note, this key needs to have less than 50K unique values in the defined timeframe. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["24H" "48H" "72H" "1W" "1Month" "2Month" "3Month" "12H"] +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--rules--override)) + +### Nested Schema for `type_definition.logs_ratio_threshold.rules.condition` +Required: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. +- `threshold` (Number) +- `time_window` (String) - -### Nested Schema for `notifications_group` + + +### Nested Schema for `type_definition.logs_ratio_threshold.rules.override` Optional: -- `group_by_fields` (List of String) List of group-by fields to apply the notification logic on (can be empty). Every notification should contain unique group_by_fields permutation (the order doesn't matter). -- `notification` (Block Set) Defines notification logic with optional recipients. Can contain single webhook or email recipients list. (see [below for nested schema](#nestedblock--notifications_group--notification)) +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + - -### Nested Schema for `notifications_group.notification` + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator` Optional: -- `email_recipients` (Set of String) Conflicts with integration_id. -- `integration_id` (String) Conflicts with emails. -- `notify_on` (String) Defines the alert's triggering logic. Can be one of ["Triggered_only" "Triggered_and_resolved"]. Triggered_and_resolved conflicts with new_value, unique_count and flow alerts, and with immediately and more_than_usual conditions -- `retriggering_period_minutes` (Number) By default, retriggering_period_minutes will be populated with min for immediate, more_than and more_than_usual alerts. For less_than alert it will be populated with the chosen time frame for the less_than condition (in minutes). You may choose to change the suppress window so the alert will be suppressed for a longer period. +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter` +Optional: +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters)) +- `lucene_query` (String) - -### Nested Schema for `ratio` + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters` -Required: +Optional: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--ratio--condition)) -- `query_1` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--ratio--query_1)) -- `query_2` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--ratio--query_2)) +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--denominator--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `ratio.condition` + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters.application_name` Required: -- `ratio_threshold` (Number) The ratio(between the queries) threshold that is needed to trigger the alert. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["2H" "6H" "12H" "24H" "1H" "10Min" "15Min" "20Min" "30Min" "4H" "36H" "5Min"] +- `value` (String) Optional: -- `group_by` (List of String) The fields to 'group by' on. -- `group_by_both` (Boolean) -- `group_by_q1` (Boolean) -- `group_by_q2` (Boolean) -- `ignore_infinity` (Boolean) Not triggered when threshold is infinity (divided by zero). -- `less_than` (Boolean) -- `manage_undetected_values` (Block List, Max: 1) Manage your logs undetected values - when relevant, enable/disable triggering on undetected values and change the auto retire interval. By default (when relevant), triggering is enabled with retire-ratio=NEVER. (see [below for nested schema](#nestedblock--ratio--condition--manage_undetected_values)) -- `more_than` (Boolean) Determines the condition operator. Must be one of - less_than or more_than. +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + - -### Nested Schema for `ratio.condition.manage_undetected_values` + +### Nested Schema for `type_definition.logs_ratio_threshold.denominator.simple_filter.label_filters.subsystem_name` Required: -- `enable_triggering_on_undetected_values` (Boolean) Determines whether the deadman-option is enabled. When set to true, auto_retire_ratio is required otherwise auto_retire_ratio should be omitted. +- `value` (String) Optional: -- `auto_retire_ratio` (String) Defines the triggering auto-retire ratio. Can be one of ["6H" "12H" "24H" "Never" "5Min" "10Min" "1H" "2H"] +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + - -### Nested Schema for `ratio.query_1` + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator` Optional: -- `alias` (String) Query1 alias. -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `categories` (Set of String) An array that contains log’s categories that we want to be notified on. -- `classes` (Set of String) An array that contains log’s class names that we want to be notified on. -- `computers` (Set of String) An array that contains log’s computer names that we want to be notified on. -- `ip_addresses` (Set of String) An array that contains log’s IP addresses that we want to be notified on. -- `methods` (Set of String) An array that contains log’s method names that we want to be notified on. -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter)) + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter` - -### Nested Schema for `ratio.query_2` +Optional: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters` Optional: -- `alias` (String) Query2 alias. -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_ratio_threshold--numerator--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters.application_name` +Required: + +- `value` (String) + +Optional: +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. - -### Nested Schema for `scheduling` + + +### Nested Schema for `type_definition.logs_ratio_threshold.numerator.simple_filter.label_filters.subsystem_name` Required: -- `time_frame` (Block Set, Min: 1, Max: 1) time_frame is a set of days and hours when the alert will be active. ***Currently, supported only for one time_frame*** (see [below for nested schema](#nestedblock--scheduling--time_frame)) +- `value` (String) Optional: -- `time_zone` (String) Specifies the time zone to be used in interpreting the schedule. Can be one of ["UTC-11" "UTC-10" "UTC-9" "UTC-8" "UTC-7" "UTC-6" "UTC-5" "UTC-4" "UTC-3" "UTC-2" "UTC-1" "UTC+0" "UTC+1" "UTC+2" "UTC+3" "UTC+4" "UTC+5" "UTC+6" "UTC+7" "UTC+8" "UTC+9" "UTC+10" "UTC+11" "UTC+12" "UTC+13" "UTC+14"] +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + - -### Nested Schema for `scheduling.time_frame` + + + +### Nested Schema for `type_definition.logs_threshold` Required: -- `days_enabled` (Set of String) Days of week. Can be one of ["Wednesday" "Thursday" "Friday" "Saturday" "Sunday" "Monday" "Tuesday"] -- `end_time` (String) Limit the triggering of this alert to end at specific hour. -- `start_time` (String) Limit the triggering of this alert to start at specific hour. +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules)) + +Optional: + +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter)) +- `notification_payload_filter` (Set of String) +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.logs_threshold.rules` +Required: +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--rules--override)) - -### Nested Schema for `standard` + +### Nested Schema for `type_definition.logs_threshold.rules.condition` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--standard--condition)) +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. +- `threshold` (Number) +- `time_window` (String) + + + +### Nested Schema for `type_definition.logs_threshold.rules.override` Optional: -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `categories` (Set of String) An array that contains log’s categories that we want to be notified on. -- `classes` (Set of String) An array that contains log’s class names that we want to be notified on. -- `computers` (Set of String) An array that contains log’s computer names that we want to be notified on. -- `ip_addresses` (Set of String) An array that contains log’s IP addresses that we want to be notified on. -- `methods` (Set of String) An array that contains log’s method names that we want to be notified on. -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + - -### Nested Schema for `standard.condition` + + +### Nested Schema for `type_definition.logs_threshold.logs_filter` Optional: -- `evaluation_window` (String) Defines the evaluation-window logic to determine if the threshold has been crossed. Relevant only for more_than condition. Can be one of ["Rolling" "Dynamic"]. -- `group_by` (List of String) The fields to 'group by' on. In case of immediately = true switch to group_by_key. -- `group_by_key` (String) The key to 'group by' on. When immediately = true, 'group_by_key' (single string) can be set instead of 'group_by'. -- `immediately` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than or more_than_usual. -- `less_than` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than or more_than_usual. -- `manage_undetected_values` (Block List, Max: 1) Manage your logs undetected values - when relevant, enable/disable triggering on undetected values and change the auto retire interval. By default (when relevant), triggering is enabled with retire-ratio=NEVER. (see [below for nested schema](#nestedblock--standard--condition--manage_undetected_values)) -- `more_than` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than or more_than_usual. -- `more_than_usual` (Boolean) Determines the condition operator. Must be one of - immediately, less_than, more_than or more_than_usual. -- `threshold` (Number) The number of log occurrences that is needed to trigger the alert. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["2H" "6H" "12H" "24H" "1H" "10Min" "15Min" "20Min" "30Min" "4H" "36H" "5Min"] +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter)) - -### Nested Schema for `standard.condition.manage_undetected_values` + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter` -Required: +Optional: + +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) -- `enable_triggering_on_undetected_values` (Boolean) Determines whether the deadman-option is enabled. When set to true, auto_retire_ratio is required otherwise auto_retire_ratio should be omitted. + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters` Optional: -- `auto_retire_ratio` (String) Defines the triggering auto-retire ratio. Can be one of ["6H" "12H" "24H" "Never" "5Min" "10Min" "1H" "2H"] +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_threshold--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters.application_name` + +Required: + +- `value` (String) +Optional: +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. - -### Nested Schema for `time_relative` + +### Nested Schema for `type_definition.logs_threshold.logs_filter.simple_filter.label_filters.subsystem_name` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--time_relative--condition)) +- `value` (String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + + + + +### Nested Schema for `type_definition.logs_threshold.undetected_values_management` Optional: -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `categories` (Set of String) An array that contains log’s categories that we want to be notified on. -- `classes` (Set of String) An array that contains log’s class names that we want to be notified on. -- `computers` (Set of String) An array that contains log’s computer names that we want to be notified on. -- `ip_addresses` (Set of String) An array that contains log’s IP addresses that we want to be notified on. -- `methods` (Set of String) An array that contains log’s method names that we want to be notified on. -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) + - -### Nested Schema for `time_relative.condition` + + +### Nested Schema for `type_definition.logs_time_relative_threshold` Required: -- `ratio_threshold` (Number) The ratio threshold that is needed to trigger the alert. -- `relative_time_window` (String) Time-window to compare with. Can be one of ["Previous_hour" "Same_hour_yesterday" "Same_hour_last_week" "Yesterday" "Same_day_last_week" "Same_day_last_month"]. +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules)) Optional: -- `group_by` (List of String) The fields to 'group by' on. -- `ignore_infinity` (Boolean) Not triggered when threshold is infinity (divided by zero). -- `less_than` (Boolean) Determines the condition operator. Must be one of - less_than or more_than. -- `manage_undetected_values` (Block List, Max: 1) Manage your logs undetected values - when relevant, enable/disable triggering on undetected values and change the auto retire interval. By default (when relevant), triggering is enabled with retire-ratio=NEVER. (see [below for nested schema](#nestedblock--time_relative--condition--manage_undetected_values)) -- `more_than` (Boolean) Determines the condition operator. Must be one of - less_than or more_than. +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter)) +- `notification_payload_filter` (Set of String) +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules` + +Required: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--rules--override)) - -### Nested Schema for `time_relative.condition.manage_undetected_values` + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules.condition` Required: -- `enable_triggering_on_undetected_values` (Boolean) Determines whether the deadman-option is enabled. When set to true, auto_retire_ratio is required otherwise auto_retire_ratio should be omitted. +- `compared_to` (String) Compared to a different time frame. Valid values: ["Previous Hour" "Same Day Last Month" "Same Day Last Week" "Same Hour Last Week" "Same Hour Yesterday" "Yesterday"]. +- `condition_type` (String) Condition . Valid values: ["LESS_THAN" "MORE_THAN"]. +- `threshold` (Number) + + + +### Nested Schema for `type_definition.logs_time_relative_threshold.rules.override` Optional: -- `auto_retire_ratio` (String) Defines the triggering auto-retire ratio. Can be one of ["6H" "12H" "24H" "Never" "5Min" "10Min" "1H" "2H"] +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter` +Optional: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter)) - -### Nested Schema for `timeouts` + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter` Optional: -- `create` (String) -- `delete` (String) -- `read` (String) -- `update` (String) +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters` + +Optional: +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_time_relative_threshold--logs_filter--simple_filter--label_filters--subsystem_name)) - -### Nested Schema for `tracing` + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters.application_name` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--tracing--condition)) +- `value` (String) Optional: -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:notEquals:xxx, filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `latency_threshold_milliseconds` (Number) -- `services` (Set of String) An array that contains log’s services names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:notEquals:xxx, filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `subsystems` (Set of String) An array that contains log’s subsystems names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:notEquals:xxx, filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `tag_filter` (Block Set) (see [below for nested schema](#nestedblock--tracing--tag_filter)) +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + +### Nested Schema for `type_definition.logs_time_relative_threshold.logs_filter.simple_filter.label_filters.subsystem_name` + +Required: - -### Nested Schema for `tracing.condition` +- `value` (String) Optional: -- `group_by` (List of String) The fields to 'group by' on. -- `immediately` (Boolean) Determines the condition operator. Must be one of - immediately or more_than. -- `more_than` (Boolean) Determines the condition operator. Must be one of - immediately or more_than. -- `threshold` (Number) The number of log occurrences that is needed to trigger the alert. -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["2H" "6H" "12H" "24H" "1H" "10Min" "15Min" "20Min" "30Min" "4H" "36H" "5Min"] +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. - -### Nested Schema for `tracing.tag_filter` -Required: -- `field` (String) -- `values` (Set of String) Tag filter values can be filtered by prefix, suffix, and contains using the next patterns - filter:notEquals:xxx, filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx + + +### Nested Schema for `type_definition.logs_time_relative_threshold.undetected_values_management` + +Optional: + +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) - -### Nested Schema for `unique_count` + +### Nested Schema for `type_definition.logs_unique_count` Required: -- `condition` (Block List, Min: 1, Max: 1) Defines the conditions for triggering and notify by the alert (see [below for nested schema](#nestedblock--unique_count--condition)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--rules)) +- `unique_count_keypath` (String) Optional: -- `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx -- `categories` (Set of String) An array that contains log’s categories that we want to be notified on. -- `classes` (Set of String) An array that contains log’s class names that we want to be notified on. -- `computers` (Set of String) An array that contains log’s computer names that we want to be notified on. -- `ip_addresses` (Set of String) An array that contains log’s IP addresses that we want to be notified on. -- `methods` (Set of String) An array that contains log’s method names that we want to be notified on. -- `search_query` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of log severities that we interested in. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] -- `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx +- `logs_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter)) +- `max_unique_count_per_group_by_key` (Number) +- `notification_payload_filter` (Set of String) + + +### Nested Schema for `type_definition.logs_unique_count.rules` + +Required: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--rules--condition)) - -### Nested Schema for `unique_count.condition` + +### Nested Schema for `type_definition.logs_unique_count.rules.condition` Required: -- `max_unique_values` (Number) -- `time_window` (String) The bounded time frame for the threshold to be occurred within, to trigger the alert. Can be one of ["6H" "12H" "24H" "10Min" "1H" "15Min" "20Min" "30Min" "2H" "4H" "1Min" "5Min"] -- `unique_count_key` (String) Defines the key to match to track its unique count. +- `max_unique_count` (Number) +- `time_window` (String) + + + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter` + +Optional: + +- `simple_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter)) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter` Optional: -- `group_by_key` (String) The key to 'group by' on. -- `max_unique_values_for_group_by` (Number) +- `label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters)) +- `lucene_query` (String) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters` + +Optional: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters--application_name)) +- `severities` (Set of String) Severities. Valid values: ["Critical" "Debug" "Error" "Info" "Unspecified" "Warning"]. +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--logs_unique_count--logs_filter--simple_filter--label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters.application_name` + +Required: + +- `value` (String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + +### Nested Schema for `type_definition.logs_unique_count.logs_filter.simple_filter.label_filters.subsystem_name` + +Required: + +- `value` (String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "IS" "NOT" "STARTS_WITH"].'IS' by default. + + + + + + + +### Nested Schema for `type_definition.metric_anomaly` + +Required: + +- `metric_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--metric_filter)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--rules)) + + +### Nested Schema for `type_definition.metric_anomaly.metric_filter` + +Required: + +- `promql` (String) + + + +### Nested Schema for `type_definition.metric_anomaly.rules` + +Required: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_anomaly--rules--condition)) + + +### Nested Schema for `type_definition.metric_anomaly.rules.condition` + +Required: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "MORE_THAN"]. +- `for_over_pct` (Number) +- `min_non_null_values_pct` (Number) +- `of_the_last` (String) Time window to evaluate the threshold with. Valid values: ["10_MINUTES" "12_HOURS" "15_MINUTES" "1_HOUR" "1_MINUTE" "20_MINUTES" "24_HOURS" "2_HOURS" "30_MINUTES" "36_HOURS" "4_HOURS" "5_MINUTES" "6_HOURS"]. +- `threshold` (Number) + + + + + +### Nested Schema for `type_definition.metric_threshold` + +Required: + +- `metric_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--metric_filter)) +- `missing_values` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--missing_values)) +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules)) + +Optional: + +- `undetected_values_management` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--undetected_values_management)) + + +### Nested Schema for `type_definition.metric_threshold.metric_filter` + +Required: + +- `promql` (String) + + + +### Nested Schema for `type_definition.metric_threshold.missing_values` + +Optional: + +- `min_non_null_values_pct` (Number) +- `replace_with_zero` (Boolean) + + + +### Nested Schema for `type_definition.metric_threshold.rules` + +Required: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules--condition)) +- `override` (Attributes) (see [below for nested schema](#nestedatt--type_definition--metric_threshold--rules--override)) + + +### Nested Schema for `type_definition.metric_threshold.rules.condition` + +Required: + +- `condition_type` (String) Condition to evaluate the threshold with. Valid values: ["LESS_THAN" "LESS_THAN_OR_EQUALS" "MORE_THAN" "MORE_THAN_OR_EQUALS"]. +- `for_over_pct` (Number) +- `of_the_last` (String) Time window to evaluate the threshold with. Valid values: ["10_MINUTES" "12_HOURS" "15_MINUTES" "1_HOUR" "1_MINUTE" "20_MINUTES" "24_HOURS" "2_HOURS" "30_MINUTES" "36_HOURS" "4_HOURS" "5_MINUTES" "6_HOURS"]. +- `threshold` (Number) + + + +### Nested Schema for `type_definition.metric_threshold.rules.override` + +Optional: + +- `priority` (String) Alert priority. Valid values: ["P1" "P2" "P3" "P4" "P5"]. + + + + +### Nested Schema for `type_definition.metric_threshold.undetected_values_management` + +Optional: + +- `auto_retire_timeframe` (String) Auto retire timeframe. Valid values: ["10_MINUTES" "12_HOURS" "1_HOUR" "24_HOURS" "2_HOURS" "5_MINUTES" "6_HOURS" "NEVER"]. +- `trigger_undetected_values` (Boolean) + + + + +### Nested Schema for `type_definition.tracing_immediate` + +Required: + +- `tracing_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter)) + +Optional: + +- `notification_payload_filter` (Set of String) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter` + +Required: + +- `latency_threshold_ms` (Number) +- `tracing_label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters` + +Optional: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--application_name)) +- `operation_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--operation_name)) +- `service_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--service_name)) +- `span_fields` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--span_fields)) +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.application_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.operation_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.service_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.span_fields` + +Required: + +- `key` (String) + +Optional: + +- `filter_type` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_immediate--tracing_filter--tracing_label_filters--span_fields--filter_type)) + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.span_fields.filter_type` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + + +### Nested Schema for `type_definition.tracing_immediate.tracing_filter.tracing_label_filters.subsystem_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + + + + +### Nested Schema for `type_definition.tracing_threshold` + +Required: + +- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--rules)) +- `tracing_filter` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter)) + +Optional: + +- `notification_payload_filter` (Set of String) + + +### Nested Schema for `type_definition.tracing_threshold.rules` + +Required: + +- `condition` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--rules--condition)) + + +### Nested Schema for `type_definition.tracing_threshold.rules.condition` + +Required: + +- `span_amount` (Number) +- `time_window` (String) + +Read-Only: + +- `condition_type` (String) + + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter` + +Required: + +- `latency_threshold_ms` (Number) +- `tracing_label_filters` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters)) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters` + +Optional: + +- `application_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--application_name)) +- `operation_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--operation_name)) +- `service_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--service_name)) +- `span_fields` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--span_fields)) +- `subsystem_name` (Attributes Set) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--subsystem_name)) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.application_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.operation_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.service_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.span_fields` + +Required: + +- `key` (String) + +Optional: + +- `filter_type` (Attributes) (see [below for nested schema](#nestedatt--type_definition--tracing_threshold--tracing_filter--tracing_label_filters--span_fields--filter_type)) + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.span_fields.filter_type` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + + +### Nested Schema for `type_definition.tracing_threshold.tracing_filter.tracing_label_filters.subsystem_name` + +Required: + +- `values` (Set of String) + +Optional: + +- `operation` (String) Operation. Valid values: ["ENDS_WITH" "INCLUDES" "IS" "IS_NOT" "STARTS_WITH"]. 'IS' by default. + + + + + + + +### Nested Schema for `incidents_settings` + +Required: + +- `notify_on` (String) Notify on. Valid values: ["Triggered Only" "Triggered and Resolved"]. +- `retriggering_period` (Attributes) (see [below for nested schema](#nestedatt--incidents_settings--retriggering_period)) + + +### Nested Schema for `incidents_settings.retriggering_period` + +Required: + +- `minutes` (Number) + + + + +### Nested Schema for `notification_group` + +Optional: + +- `group_by_keys` (Set of String) +- `webhooks_settings` (Attributes Set) (see [below for nested schema](#nestedatt--notification_group--webhooks_settings)) + + +### Nested Schema for `notification_group.webhooks_settings` + +Optional: + +- `integration_id` (String) +- `notify_on` (String) Notify on. Valid values: ["Triggered Only" "Triggered and Resolved"]. Triggered Only by default. +- `recipients` (Set of String) +- `retriggering_period` (Attributes) Retriggering period in minutes. 10 minutes by default. (see [below for nested schema](#nestedatt--notification_group--webhooks_settings--retriggering_period)) + + +### Nested Schema for `notification_group.webhooks_settings.retriggering_period` + +Required: + +- `minutes` (Number) + + + + + +### Nested Schema for `schedule` + +Required: + +- `active_on` (Attributes) (see [below for nested schema](#nestedatt--schedule--active_on)) + + +### Nested Schema for `schedule.active_on` + +Required: + +- `days_of_week` (Set of String) Days of the week. Valid values: ["Friday" "Monday" "Saturday" "Sunday" "Thursday" "Tuesday" "Wednesday"]. +- `end_time` (String) +- `start_time` (String) + +Optional: + +- `utc_offset` (String) + +## Import + +Import is supported using the following syntax: + +```shell +# Create an import file like this + +tee -a import.tf < @@ -1137,9 +1137,9 @@ Optional: - `max_bars_per_chart` (Number) - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--query)) - `scale_type` (String) -- `sort_by` (String) The field to sort by. Can be one of unspecified, value, name. +- `sort_by` (String) The field to sort by. Can be one of name, unspecified, value. - `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--stack_definition)) -- `unit` (String) The unit of the chart. Can be one of unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit of the chart. Can be one of bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. - `xaxis` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--bar_chart--xaxis)) @@ -1244,7 +1244,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1409,8 +1409,8 @@ Optional: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1428,7 +1428,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1450,7 +1450,7 @@ Optional: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1459,7 +1459,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1506,12 +1506,12 @@ Required: - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--query)) - `results_per_page` (Number) The number of results to display per page. -- `row_style` (String) The style of the rows. Can be one of ["condensed" "json" "one_line" "two_line"]. +- `row_style` (String) The style of the rows. Can be one of ["condensed" "json" "list" "one_line" "two_line" "unspecified"]. Optional: - `columns` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--columns)) -- `data_mode_type` (String) The data mode type. Can be one of ["unspecified" "archive"]. +- `data_mode_type` (String) The data mode type. Can be one of ["archive" "unspecified"]. - `order_by` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--data_table--order_by)) @@ -1611,7 +1611,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1789,7 +1789,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1831,8 +1831,8 @@ Read-Only: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -1843,7 +1843,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -1867,7 +1867,7 @@ Optional: Optional: - `field` (String) -- `order_direction` (String) The order direction. Can be one of ["desc" "asc"]. +- `order_direction` (String) The order direction. Can be one of ["asc" "desc" "unspecified"]. @@ -1877,16 +1877,16 @@ Optional: Required: - `query` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--query)) -- `unit` (String) The unit of the gauge. Can be one of ["usd" "milliseconds" "mbytes" "bytes_iec" "mibytes" "none" "kbytes" "seconds" "gbytes" "kibytes" "euro" "euro_cents" "usd_cents" "percent" "microseconds" "bytes" "gibytes"]. +- `unit` (String) The unit of the gauge. Can be one of ["bytes" "bytes_iec" "custom" "euro" "euro_cents" "gbytes" "gibytes" "kbytes" "kibytes" "mbytes" "mibytes" "microseconds" "milliseconds" "nanoseconds" "none" "percent" "percent01" "percent100" "seconds" "unspecified" "usd" "usd_cents"]. Optional: -- `data_mode_type` (String) The data mode type. Can be one of ["unspecified" "archive"]. +- `data_mode_type` (String) The data mode type. Can be one of ["archive" "unspecified"]. - `max` (Number) - `min` (Number) - `show_inner_arc` (Boolean) - `show_outer_arc` (Boolean) -- `threshold_by` (String) The threshold by. Can be one of ["value" "background" "unspecified"]. +- `threshold_by` (String) The threshold by. Can be one of ["background" "unspecified" "value"]. - `thresholds` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--thresholds)) @@ -1986,7 +1986,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2083,7 +2083,7 @@ Required: Optional: -- `aggregation` (String) The type of aggregation. Can be one of ["unspecified" "last" "min" "max" "avg" "sum"]. +- `aggregation` (String) The type of aggregation. Can be one of ["avg" "last" "max" "min" "sum" "unspecified"]. - `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--gauge--query--metrics--filters)) @@ -2135,7 +2135,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2156,8 +2156,8 @@ Optional: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -2188,7 +2188,7 @@ Optional: - `scale_type` (String) - `sort_by` (String) - `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--horizontal_bar_chart--stack_definition)) -- `unit` (String) The unit of the chart. Can be one of unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit of the chart. Can be one of bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. - `y_axis_view_by` (String) @@ -2347,8 +2347,8 @@ Optional: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -2366,7 +2366,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2388,7 +2388,7 @@ Optional: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2397,7 +2397,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2438,10 +2438,10 @@ Optional: - `is_visible` (Boolean) - `name` (String) - `resolution` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--widgets--definition--line_chart--query_definitions--resolution)) -- `scale_type` (String) The scale type. Valid values are: unspecified, linear, logarithmic. +- `scale_type` (String) The scale type. Valid values are: linear, logarithmic, unspecified. - `series_count_limit` (Number) - `series_name_template` (String) -- `unit` (String) The unit. Valid values are: unspecified, mbytes, gibytes, usd_cents, gbytes, bytes_iec, kibytes, usd, microseconds, milliseconds, seconds, euro_cents, bytes, kbytes, mibytes, euro. +- `unit` (String) The unit. Valid values are: bytes, bytes_iec, custom, euro, euro_cents, gbytes, gibytes, kbytes, kibytes, mbytes, mibytes, microseconds, milliseconds, nanoseconds, percent01, percent100, seconds, unspecified, usd, usd_cents. Read-Only: @@ -2579,8 +2579,8 @@ Optional: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -2598,7 +2598,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2620,7 +2620,7 @@ Optional: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2640,10 +2640,10 @@ Optional: Optional: -- `columns` (List of String) The columns to display in the legend. Valid values are: avg, last, unspecified, min, max, sum. +- `columns` (List of String) The columns to display in the legend. Valid values are: avg, last, max, min, name, sum, unspecified. - `group_by_query` (Boolean) - `is_visible` (Boolean) Whether to display the legend. False by default. -- `placement` (String) The placement of the legend. Valid values are: auto, bottom, side, hidden, unspecified. +- `placement` (String) The placement of the legend. Valid values are: auto, bottom, hidden, side, unspecified. @@ -2652,7 +2652,7 @@ Optional: Optional: - `show_labels` (Boolean) -- `type` (String) The tooltip type. Valid values are: unspecified, all, single. +- `type` (String) The tooltip type. Valid values are: all, single, unspecified. @@ -2690,7 +2690,7 @@ Optional: Optional: - `is_visible` (Boolean) -- `label_source` (String) The source of the label. Valid values are: unspecified, inner, stack +- `label_source` (String) The source of the label. Valid values are: inner, stack, unspecified - `show_name` (Boolean) - `show_percentage` (Boolean) - `show_value` (Boolean) @@ -2798,7 +2798,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -2963,8 +2963,8 @@ Optional: Required: -- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["min" "max" "avg" "sum" "percentile_99" "percentile_95" "percentile_50" "unspecified"]. When the aggregation type is `dimension`, can be one of ["unspecified" "unique_count" "error_count"]. -- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["unspecified" "duration"]. When the aggregation type is `dimension`, can be one of ["unspecified" "trace_id"]. +- `aggregation_type` (String) The type of the aggregation. When the aggregation type is `metrics`, can be one of ["avg" "max" "min" "percentile_50" "percentile_95" "percentile_99" "sum" "unspecified"]. When the aggregation type is `dimension`, can be one of ["error_count" "unique_count" "unspecified"]. +- `field` (String) The field to aggregate on. When the aggregation type is `metrics`, can be one of ["duration" "unspecified"]. When the aggregation type is `dimension`, can be one of ["trace_id" "unspecified"]. - `type` (String) Can be one of ["metric" "dimension"] @@ -2982,7 +2982,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -3004,7 +3004,7 @@ Optional: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -3013,7 +3013,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -3084,7 +3084,7 @@ Optional: Required: -- `values_order_direction` (String) The order direction of the values. Can be one of `desc`, `asc`. +- `values_order_direction` (String) The order direction of the values. Can be one of `asc`, `desc`, `unspecified`. Optional: @@ -3291,7 +3291,7 @@ Required: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] @@ -3312,4 +3312,4 @@ Optional: Required: - `type` (String) The type of the field. Can be one of ["metadata" "tag" "process_tag"] -- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["unspecified" "application_name" "subsystem_name" "service_name" "operation_name"] +- `value` (String) The value of the field. When the field type is `metadata`, can be one of ["application_name" "operation_name" "service_name" "subsystem_name" "unspecified"] diff --git a/docs/resources/dashboards_folder.md b/docs/resources/dashboards_folder.md index 31397473..b5ba12b9 100644 --- a/docs/resources/dashboards_folder.md +++ b/docs/resources/dashboards_folder.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/data_set.md b/docs/resources/data_set.md index ca8b04a2..f316c01b 100644 --- a/docs/resources/data_set.md +++ b/docs/resources/data_set.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/enrichment.md b/docs/resources/enrichment.md index d43a8358..d54b01df 100644 --- a/docs/resources/enrichment.md +++ b/docs/resources/enrichment.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/events2metric.md b/docs/resources/events2metric.md index d3608f17..ad269a03 100644 --- a/docs/resources/events2metric.md +++ b/docs/resources/events2metric.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -135,7 +135,7 @@ Optional: - `applications` (Set of String) An array that contains log’s application names that we want to be alerted on. Applications can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx - `lucene` (String) The search_query that we wanted to be notified on. -- `severities` (Set of String) An array of severities that we interested in. Can be one of ["Critical" "Unspecified" "Debug" "Verbose" "Info" "Warning" "Error"] +- `severities` (Set of String) An array of severities that we interested in. Can be one of ["Critical" "Debug" "Error" "Info" "Unspecified" "Verbose" "Warning"] - `subsystems` (Set of String) An array that contains log’s subsystem names that we want to be notified on. Subsystems can be filtered by prefix, suffix, and contains using the next patterns - filter:startsWith:xxx, filter:endsWith:xxx, filter:contains:xxx @@ -232,7 +232,7 @@ Read-Only: Required: -- `type` (String) Can be one of ["Min" "Max"]. +- `type` (String) Can be one of ["Max" "Min"]. Optional: diff --git a/docs/resources/group.md b/docs/resources/group.md index e9fb8f5f..788aee98 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -16,7 +16,7 @@ Coralogix group. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/hosted_dashboard.md b/docs/resources/hosted_dashboard.md index a472a151..9585ba49 100644 --- a/docs/resources/hosted_dashboard.md +++ b/docs/resources/hosted_dashboard.md @@ -16,7 +16,7 @@ Hosted dashboard. Can be one of - ["grafana"]. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/integration.md b/docs/resources/integration.md index 42b587a4..b022fade 100644 --- a/docs/resources/integration.md +++ b/docs/resources/integration.md @@ -16,7 +16,7 @@ A Coralogix Integration terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/recording_rules_groups_set.md b/docs/resources/recording_rules_groups_set.md index a4afed75..3e21fa2e 100644 --- a/docs/resources/recording_rules_groups_set.md +++ b/docs/resources/recording_rules_groups_set.md @@ -16,7 +16,7 @@ description: |- terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/rules_group.md b/docs/resources/rules_group.md index e3d028ad..eb35acf4 100644 --- a/docs/resources/rules_group.md +++ b/docs/resources/rules_group.md @@ -16,7 +16,7 @@ Rule-group is list of rule-subgroups with 'and' (&&) operation between. For more terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -187,7 +187,7 @@ resource "coralogix_rules_group" "parse_json_field_example" { - `hidden` (Boolean) - `order` (Number) Determines the index of the rule-group between the other rule-groups. By default, will be added last. (1 based indexing). - `rule_subgroups` (Block List) List of rule-subgroups. Every rule-subgroup is list of rules with 'or' (||) operation between. (see [below for nested schema](#nestedblock--rule_subgroups)) -- `severities` (Set of String) Rules will execute on logs that match the following severities. Can be one of ["Debug" "Verbose" "Info" "Warning" "Error" "Critical"] +- `severities` (Set of String) Rules will execute on logs that match the following severities. Can be one of ["Critical" "Debug" "Error" "Info" "Verbose" "Warning"] - `subsystems` (Set of String) Rules will execute on logs that match the following subsystems. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) @@ -273,7 +273,7 @@ Read-Only: Required: -- `field_format_standard` (String) The format standard you want to use. Can be one of ["JavaSDF" "Golang" "SecondTS" "MilliTS" "MicroTS" "NanoTS" "Strftime"] +- `field_format_standard` (String) The format standard you want to use. Can be one of ["Golang" "JavaSDF" "MicroTS" "MilliTS" "NanoTS" "SecondTS" "Strftime"] - `name` (String) The rule name. - `source_field` (String) The field on which the Regex will operate on. Accepts lowercase only. - `time_format` (String) A time format that matches the field format standard @@ -294,7 +294,7 @@ Read-Only: Required: -- `destination_field` (String) The field that will be populated by the results of RegEx operation.Can be one of [Severity Text Category Class Method ThreadID]. +- `destination_field` (String) The field that will be populated by the results of RegEx operation.Can be one of [Category Class Method Severity Text ThreadID]. - `json_key` (String) JSON key to extract its value directly into a Coralogix metadata field. - `name` (String) The rule name. diff --git a/docs/resources/scope.md b/docs/resources/scope.md index 10414f51..aa4b9c80 100644 --- a/docs/resources/scope.md +++ b/docs/resources/scope.md @@ -16,7 +16,7 @@ Coralogix Scope. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/slo.md b/docs/resources/slo.md index d69de990..ec6ce585 100644 --- a/docs/resources/slo.md +++ b/docs/resources/slo.md @@ -16,7 +16,7 @@ Coralogix SLO. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -61,7 +61,7 @@ resource "coralogix_slo" "example_2" { ### Required - `name` (String) SLO name. -- `period` (String) Period. This is the period of the SLO. Valid values are: ["unspecified" "7_days" "14_days" "30_days"] +- `period` (String) Period. This is the period of the SLO. Valid values are: ["14_days" "30_days" "7_days" "unspecified"] - `service_name` (String) Service name. This is the name of the service that the SLO is associated with. - `target_percentage` (Number) Target percentage. This is the target percentage of the SLO. - `type` (String) Type. This is the type of the SLO. Valid values are: "error", "latency". @@ -71,7 +71,7 @@ resource "coralogix_slo" "example_2" { - `description` (String) Optional SLO description. - `filters` (Attributes Set) (see [below for nested schema](#nestedatt--filters)) - `threshold_microseconds` (Number) Threshold in microseconds. Required when `type` is `latency`. -- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["greater" "greater_or_equal" "less" "less_or_equal" "equal"] +- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["equal" "greater" "greater_or_equal" "less" "less_or_equal"] ### Read-Only @@ -84,7 +84,7 @@ resource "coralogix_slo" "example_2" { Required: -- `compare_type` (String) Compare type. This is the compare type of the SLO. Valid values are: ["starts_with" "ends_with" "includes" "unspecified" "is"] +- `compare_type` (String) Compare type. This is the compare type of the SLO. Valid values are: ["ends_with" "includes" "is" "starts_with" "unspecified"] - `field` (String) Optional: diff --git a/docs/resources/tco_policies_logs.md b/docs/resources/tco_policies_logs.md index fb92e40e..c8f6fdbf 100644 --- a/docs/resources/tco_policies_logs.md +++ b/docs/resources/tco_policies_logs.md @@ -16,7 +16,7 @@ Coralogix TCO-Policies-List. For more information - https://coralogix.com/docs/t terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -113,7 +113,7 @@ Optional: - `archive_retention_id` (String) Allowing logs with a specific retention to be tagged. - `description` (String) The policy description - `enabled` (Boolean) Determines weather the policy will be enabled. True by default. -- `severities` (Set of String) The severities to apply the policy on. Can be few of ["debug" "verbose" "info" "warning" "error" "critical"]. +- `severities` (Set of String) The severities to apply the policy on. Can be few of ["critical" "debug" "error" "info" "verbose" "warning"]. - `subsystems` (Attributes) The subsystems to apply the policy on. Applies the policy on all the subsystems by default. (see [below for nested schema](#nestedatt--policies--subsystems)) Read-Only: @@ -130,7 +130,7 @@ Required: Optional: -- `rule_type` (String) The rule type. Can be one of ["is" "is_not" "starts_with" "includes"]. +- `rule_type` (String) The rule type. Can be one of ["includes" "is" "is_not" "starts_with" "unspecified"]. diff --git a/docs/resources/tco_policies_traces.md b/docs/resources/tco_policies_traces.md index cfbbf6e2..feefb633 100644 --- a/docs/resources/tco_policies_traces.md +++ b/docs/resources/tco_policies_traces.md @@ -16,7 +16,7 @@ Coralogix TCO-Policies-List. For more information - https://coralogix.com/docs/t terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/team.md b/docs/resources/team.md index 8c85f2c9..e0b3ac51 100644 --- a/docs/resources/team.md +++ b/docs/resources/team.md @@ -16,7 +16,7 @@ Coralogix Team. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/user.md b/docs/resources/user.md index a25d3909..371a7da4 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -16,7 +16,7 @@ Coralogix User. terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/docs/resources/webhook.md b/docs/resources/webhook.md index b9847309..7b400cac 100644 --- a/docs/resources/webhook.md +++ b/docs/resources/webhook.md @@ -16,7 +16,7 @@ Coralogix webhook. For more info please review - https://coralogix.com/docs/cora terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } @@ -196,15 +196,12 @@ Optional: Required: +- `detail` (String) Event bridge message. JSON string. More details about the token ["here"](https://coralogix.com/docs/user-guides/alerting/outbound-webhooks/generic-outbound-webhooks-alert-webhooks/#placeholders) - `detail_type` (String) Free text to be included in the event. - `event_bus_arn` (String) Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish. - `role_name` (String) Corresponds to the AWS IAM role that will be created in your account. - `source` (String) Free text is used to identify the messages Coralogix sends. -Optional: - -- `detail` (String) - ### Nested Schema for `jira` @@ -271,7 +268,7 @@ Optional: Optional: - `attachments` (Attributes List) Slack attachments. (see [below for nested schema](#nestedatt--slack--attachments)) -- `notify_on` (Set of String) Slack notifications. can be one of: error_and_critical_logs, flow_anomalies, spike_anomalies, data_usage +- `notify_on` (Set of String) Slack notifications. can be one of: data_usage, error_and_critical_logs, flow_anomalies, spike_anomalies - `url` (String) Slack URL. @@ -279,7 +276,7 @@ Optional: Required: -- `type` (String) Slack attachment type. can be one of: logs, empty, metric_snapshot +- `type` (String) Slack attachment type. can be one of: empty, logs, metric_snapshot Optional: diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 5bd3df43..7597cfc9 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,7 +1,7 @@ terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/examples/resources/coralogix_action/resource.tf b/examples/resources/coralogix_action/resource.tf index 2f77dbc9..4a0066b4 100644 --- a/examples/resources/coralogix_action/resource.tf +++ b/examples/resources/coralogix_action/resource.tf @@ -1,7 +1,7 @@ terraform { required_providers { coralogix = { - version = "~> 1.8" + version = "~> 2.0" source = "coralogix/coralogix" } } diff --git a/examples/resources/coralogix_alert/import.sh b/examples/resources/coralogix_alert/import.sh index 81b1771a..86d7326c 100644 --- a/examples/resources/coralogix_alert/import.sh +++ b/examples/resources/coralogix_alert/import.sh @@ -4,7 +4,7 @@ tee -a import.tf <