<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0yrcqjXO" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="bpmn-sdk" exporterVersion="0.0.1" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0">
  <decision id="incident-severity" name="Incident severity">
    <decisionTable id="DecisionTable_sv7pfnMZ" hitPolicy="FIRST">
      <input id="Input_C8A4dhGi" label="Customers affected">
        <inputExpression id="InputExpression_qDfcG3w3" typeRef="number">
          <text>affectedCustomers</text>
        </inputExpression>
      </input>
      <input id="Input_5e10iM8P" label="Error rate">
        <inputExpression id="InputExpression_rJ8kr4DZ" typeRef="number">
          <text>errorRate</text>
        </inputExpression>
      </input>
      <output id="Output_QbyQNpDd" label="Severity" name="severity" typeRef="string"/>
      <rule id="DecisionRule_8bewD0uV">
        <description>Broad customer outage</description>
        <inputEntry id="UnaryTests_8TONlbtf">
          <text>&gt;= 100</text>
        </inputEntry>
        <inputEntry id="UnaryTests_dMpMuiyf">
          <text>&gt;= 0.05</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_uaYLK5Jv">
          <text>"sev1"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_xVx2xeJR">
        <description>Customer-facing degradation</description>
        <inputEntry id="UnaryTests_vCXQSRHq">
          <text>&gt; 0</text>
        </inputEntry>
        <inputEntry id="UnaryTests_fh6ZGbix">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_d5RNVwkA">
          <text>"sev2"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_tgjfLfiw">
        <description>Internal but severe</description>
        <inputEntry id="UnaryTests_EUZcWJ0k">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_5NR0pYD5">
          <text>&gt;= 0.2</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_fK3hiwvP">
          <text>"sev2"</text>
        </outputEntry>
      </rule>
      <rule id="DecisionRule_3o9Gackf">
        <description>Everything else</description>
        <inputEntry id="UnaryTests_cn686q74">
          <text>-</text>
        </inputEntry>
        <inputEntry id="UnaryTests_achRbGrD">
          <text>-</text>
        </inputEntry>
        <outputEntry id="LiteralExpression_OPyxb6Nv">
          <text>"sev3"</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
  <dmndi:DMNDI>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape dmnElementRef="incident-severity">
        <dc:Bounds height="80" width="180" x="160" y="100"/>
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </dmndi:DMNDI>
</definitions>

