Skip to content

Commit

Permalink
Merge pull request #71 from SumoLogic/sumo_terraform_provider_update
Browse files Browse the repository at this point in the history
Sumo terraform provider update
  • Loading branch information
himanshu219 authored Mar 20, 2024
2 parents 2da1b52 + 4485939 commit 92af708
Show file tree
Hide file tree
Showing 32 changed files with 68 additions and 82 deletions.
4 changes: 2 additions & 2 deletions monitor_packages/ActiveMQ/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/ApacheTomcat/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/Cassandra/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
14 changes: 0 additions & 14 deletions monitor_packages/Couchbase/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,6 @@ variable "email_notifications_critical" {
description = "Email Notifications to be sent by the critical alert."
}

variable "email_notifications_critical" {
type = list(object(
{
connection_type = string,
recipients = list(string),
subject = string,
time_zone = string,
message_body = string,
run_for_trigger_types = list(string)
}
))
description = "Email Notifications to be sent by the critical alert."
}

variable "email_notifications_warning" {
type = list(object(
{
Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/Couchbase/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
12 changes: 6 additions & 6 deletions monitor_packages/Elasticsearch/Elasticsearch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ module "Elasticsearch-TooManySlowQuery" {
time_range = "5m",
occurrence_type = "ResultCount"
trigger_source = "AllResults"
trigger_type = "Warning",
trigger_type = "Critical",
detection_method = "StaticCondition"
},
{
Expand All @@ -471,25 +471,25 @@ module "Elasticsearch-TooManySlowQuery" {
time_range = "5m",
occurrence_type = "ResultCount"
trigger_source = "AllResults"
trigger_type = "ResolvedWarning",
trigger_type = "ResolvedCritical",
detection_method = "StaticCondition"
},
{
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
trigger_source = "AllResults"
trigger_type = "Critical",
trigger_type = "Warning",
detection_method = "StaticCondition"
},
{
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
trigger_source = "AllResults"
trigger_type = "ResolvedCritical",
trigger_type = "ResolvedWarning",
detection_method = "StaticCondition"
}
]
Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/Elasticsearch/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/IIS/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/Kafka/kafka.tf
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ module "FatalEventonBroker" {
time_range = "5m",
trigger_type = "Critical",
threshold = 0,
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
occurrence_type = "ResultCount",
trigger_source = "AllResults"

Expand All @@ -243,7 +243,7 @@ module "FatalEventonBroker" {
time_range = "5m",
trigger_type = "ResolvedCritical",
threshold = 0,
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
occurrence_type = "ResultCount"
trigger_source = "AllResults"

Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/Kafka/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/MariaDB/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/Memcached/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/MongoDB/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/Oracle/Oracle.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module "Oracle-DatabaseCrash" {
}
triggers = [
{
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -58,7 +58,7 @@ module "Oracle-DatabaseCrash" {
detection_method = "LogsStaticCondition"
},
{
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/Oracle/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/RabbitMQ/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
2 changes: 1 addition & 1 deletion monitor_packages/SQLServer/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
12 changes: 6 additions & 6 deletions monitor_packages/SquidProxy/squidproxy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module "SquidProxy-HighClientHTTP4xxErrorRate" {
}
triggers = [
{
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -60,7 +60,7 @@ module "SquidProxy-HighClientHTTP4xxErrorRate" {
detection_method = "LogsStaticCondition"
},
{
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -86,7 +86,7 @@ module "SquidProxy-HighServerHTTP5xxErrorRate" {
}
triggers = [
{
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -95,7 +95,7 @@ module "SquidProxy-HighServerHTTP5xxErrorRate" {
detection_method = "LogsStaticCondition"
},
{
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -121,7 +121,7 @@ module "SquidProxy-HighDeniedRequest" {
}
triggers = [
{
threshold_type = "GreaterThanOrEqual",
threshold_type = "GreaterThan",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand All @@ -130,7 +130,7 @@ module "SquidProxy-HighDeniedRequest" {
detection_method = "LogsStaticCondition"
},
{
threshold_type = "LessThan",
threshold_type = "LessThanOrEqual",
threshold = 0,
time_range = "5m",
occurrence_type = "ResultCount"
Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/SquidProxy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/Varnish/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/apache/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/haproxy/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
2 changes: 1 addition & 1 deletion monitor_packages/host_process_metrics/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
Expand Down
4 changes: 2 additions & 2 deletions monitor_packages/http_response/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/kubernetes/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
4 changes: 2 additions & 2 deletions monitor_packages/mysql/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {

required_providers {
sumologic = {
version = "~> 2.18.0"
version = ">= 2.28.3, < 3.0.0"
source = "SumoLogic/sumologic"
}
}
}
}
Loading

0 comments on commit 92af708

Please sign in to comment.