<commit_before>{
  "AMBARI": {
    "service": [
    ],
    "AMBARI_SERVER" : [
      {
        "name": "ambari_server_agent_heartbeat",
        "label": "Ambari Agent Heartbeat",
        "description": "This alert is triggered if the server has lost contact with an agent.",
        "interval": 2,
        "scope": "HOST",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.AgentHeartbeatAlertRunnable"
        }
      },
      {
        "name": "ambari_server_stale_alerts",
        "label": "Ambari Server Alerts",
        "description": "This alert is triggered if the server detects that there are alerts which have not run in a timely manner.",
        "interval": 5,
        "scope": "SERVICE",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.StaleAlertRunnable"
        }
      },
      {
        "name": "ambari_server_performance",
        "label": "Ambari Server Performance",
        "description": "This alert is triggered if the server detects that there is a potential performance problem with Ambari. This type of issue can arise for many reasons, but is typically attributed to slow database queries and host resource exhaustion.",
        "interval": 5,
        "scope": "SERVICE",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.AmbariPerformanceRunnable",
          "parameters": [
            {
              "name": "request.by.status.warning.threshold",
              "display_name": "Warning Request Time",
              "value": 3000,
              "type": "NUMERIC",
              "description": "The time to find requests in progress before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "request.by.status.critical.threshold",
              "display_name": "Critical Request Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to find requests in progress before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            },
            {
              "name": "task.status.aggregation.warning.threshold",
              "display_name": "Warning Process Time",
              "value": 3000,
              "type": "NUMERIC",
              "description": "The time to calculate a request's status from its tasks before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "task.status.aggregation.critical.threshold",
              "display_name": "Critical Process Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to calculate a request's status from its tasks before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            },
            {
              "name": "rest.api.cluster.warning.threshold",
              "display_name": "Warning Response Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to get a cluster via the REST API before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "rest.api.cluster.critical.threshold",
              "display_name": "Critical Response Time",
              "value": 7000,
              "type": "NUMERIC",
              "description": "The time to get a cluster via the REST API before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            }
          ]
        }
      }
    ],
    "AMBARI_AGENT" : [
      {
        "name": "ambari_agent_disk_usage",
        "label": "Host Disk Usage",
        "description": "This host-level alert is triggered if the amount of disk space used goes above specific thresholds. The default threshold values are 50% for WARNING and 80% for CRITICAL.",
        "interval": 1,
        "scope": "HOST",
        "enabled": true,
        "source": {
          "type": "SCRIPT",
          "path": "alert_disk_space.py",
          "parameters": [
            {
              "name": "minimum.free.space",
              "display_name": "Minimum Free Space",
              "value": 5000000000,
              "type": "NUMERIC",
              "description": "The overall amount of free disk space left before an alert is triggered.",
              "units": "bytes",
              "threshold": "WARNING"
            },
            {
              "name": "percent.used.space.warning.threshold",
              "display_name": "Warning",
              "value": 50,
              "type": "PERCENT",
              "description": "The percent of disk space consumed before a warning is triggered.",
              "units": "%",
              "threshold": "WARNING"
            },
            {
              "name": "percent.free.space.critical.threshold",
              "display_name": "Critical",
              "value": 80,
              "type": "PERCENT",
              "description": "The percent of disk space consumed before a critical alert is triggered.",
              "units": "%",
              "threshold": "CRITICAL"
            }
          ]
        }
      }
    ]
  }
}
<commit_msg>AMBARI-15922. Add help_url to Alert.(vbrodetskyi)<commit_after>{
  "AMBARI": {
    "service": [
    ],
    "AMBARI_SERVER" : [
      {
        "name": "ambari_server_agent_heartbeat",
        "label": "Ambari Agent Heartbeat",
        "description": "This alert is triggered if the server has lost contact with an agent.",
        "interval": 2,
        "help_url": "https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Alerts#AmbariAlerts-ambari_agent_heartbeat",
        "scope": "HOST",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.AgentHeartbeatAlertRunnable"
        }
      },
      {
        "name": "ambari_server_stale_alerts",
        "label": "Ambari Server Alerts",
        "description": "This alert is triggered if the server detects that there are alerts which have not run in a timely manner.",
        "interval": 5,
        "scope": "SERVICE",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.StaleAlertRunnable"
        }
      },
      {
        "name": "ambari_server_performance",
        "label": "Ambari Server Performance",
        "description": "This alert is triggered if the server detects that there is a potential performance problem with Ambari. This type of issue can arise for many reasons, but is typically attributed to slow database queries and host resource exhaustion.",
        "interval": 5,
        "scope": "SERVICE",
        "enabled": true,
        "source": {
          "type": "SERVER",
          "class": "org.apache.ambari.server.alerts.AmbariPerformanceRunnable",
          "parameters": [
            {
              "name": "request.by.status.warning.threshold",
              "display_name": "Warning Request Time",
              "value": 3000,
              "type": "NUMERIC",
              "description": "The time to find requests in progress before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "request.by.status.critical.threshold",
              "display_name": "Critical Request Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to find requests in progress before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            },
            {
              "name": "task.status.aggregation.warning.threshold",
              "display_name": "Warning Process Time",
              "value": 3000,
              "type": "NUMERIC",
              "description": "The time to calculate a request's status from its tasks before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "task.status.aggregation.critical.threshold",
              "display_name": "Critical Process Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to calculate a request's status from its tasks before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            },
            {
              "name": "rest.api.cluster.warning.threshold",
              "display_name": "Warning Response Time",
              "value": 5000,
              "type": "NUMERIC",
              "description": "The time to get a cluster via the REST API before a warning alert is triggered.",
              "units": "ms",
              "threshold": "WARNING"
            },
            {
              "name": "rest.api.cluster.critical.threshold",
              "display_name": "Critical Response Time",
              "value": 7000,
              "type": "NUMERIC",
              "description": "The time to get a cluster via the REST API before a critical alert is triggered.",
              "units": "ms",
              "threshold": "CRITICAL"
            }
          ]
        }
      }
    ],
    "AMBARI_AGENT" : [
      {
        "name": "ambari_agent_disk_usage",
        "label": "Host Disk Usage",
        "description": "This host-level alert is triggered if the amount of disk space used goes above specific thresholds. The default threshold values are 50% for WARNING and 80% for CRITICAL.",
        "interval": 1,
        "scope": "HOST",
        "enabled": true,
        "source": {
          "type": "SCRIPT",
          "path": "alert_disk_space.py",
          "parameters": [
            {
              "name": "minimum.free.space",
              "display_name": "Minimum Free Space",
              "value": 5000000000,
              "type": "NUMERIC",
              "description": "The overall amount of free disk space left before an alert is triggered.",
              "units": "bytes",
              "threshold": "WARNING"
            },
            {
              "name": "percent.used.space.warning.threshold",
              "display_name": "Warning",
              "value": 50,
              "type": "PERCENT",
              "description": "The percent of disk space consumed before a warning is triggered.",
              "units": "%",
              "threshold": "WARNING"
            },
            {
              "name": "percent.free.space.critical.threshold",
              "display_name": "Critical",
              "value": 80,
              "type": "PERCENT",
              "description": "The percent of disk space consumed before a critical alert is triggered.",
              "units": "%",
              "threshold": "CRITICAL"
            }
          ]
        }
      }
    ]
  }
}

{'fraction_non_alphanumeric': 0.12473328591749644, 'fraction_numerical': 0.00862375533428165, 'mean_word_length': 1.661225455405725, 'pattern_counts': {'":': 207, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '5618806', 'n_tokens_mistral': 3016, 'n_tokens_neox': 2842, 'n_words': 872}