<commit_before>resource "datadog_synthetics_test" "main" {
  count   = "${length(var.domains)}"
  message = "Notify @all"
  name    = "${var.domains[count.index]}"
  status  = "live"
  tags    = ["cms", "terraform"]
  type    = "api"

  assertions = [
    {
      operator = "is"
      target   = "200"
      type     = "statusCode"
    },
    {
      operator = "is"
      property = "content-type"
      type     = "header"
      target   = "text/html; charset=utf-8"
    },
    {
      operator = "lessThan"
      type     = "responseTime"
      target   = 6000
    }
  ]

  options = {
    min_failure_duration = 0,
    min_location_failed  = 1,
    tick_every           = 60,
  }

  request = {
    method  = "GET"
    timeout = 30
    url     = "https://${var.domains[count.index]}/home?monitoring=skip"
  }

  locations = [
    "aws:ca-central-1",
    "aws:eu-central-1",
    "aws:eu-west-1",
    "aws:eu-west-2",
    "aws:us-east-2",
    "aws:us-west-1",
    "aws:us-west-2"
  ]
}
<commit_msg>Increase datadog check time<commit_after>resource "datadog_synthetics_test" "main" {
  count   = "${length(var.domains)}"
  message = "Notify @all"
  name    = "${var.domains[count.index]}"
  status  = "live"
  tags    = ["cms", "terraform"]
  type    = "api"

  assertions = [
    {
      operator = "is"
      target   = "200"
      type     = "statusCode"
    },
    {
      operator = "is"
      property = "content-type"
      type     = "header"
      target   = "text/html; charset=utf-8"
    },
    {
      operator = "lessThan"
      type     = "responseTime"
      target   = 6000
    }
  ]

  options = {
    min_failure_duration = 1,
    min_location_failed  = 1,
    tick_every           = 60,
  }

  request = {
    method  = "GET"
    timeout = 30
    url     = "https://${var.domains[count.index]}/home?monitoring=skip"
  }

  locations = [
    "aws:ca-central-1",
    "aws:eu-central-1",
    "aws:eu-west-1",
    "aws:eu-west-2",
    "aws:us-east-2",
    "aws:us-west-1",
    "aws:us-west-2"
  ]
}

{'fraction_non_alphanumeric': 0.16468253968253968, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 1.931686046511628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7052872', 'n_tokens_mistral': 806, 'n_tokens_neox': 758, 'n_words': 125}