Skip to Content
StriseConnect
Examples

Monitoring Alerts

Monitoring generates alerts when it detects changes on your entities. This guide covers how to fetch alerts, investigate the underlying changes that triggered them, and resolve them.

For adding entities to monitoring and basic alert handling, see the Companies or Private persons example.

Fetch alerts

Use the alerts query to list alerts. You can filter by entity, alert kind, state, time period, and entity kind:

query GetUnresolvedAlerts {
  alerts(where: { states: [UNRESOLVED], page: { size: 20 } }) {
    edges {
      node {
        id
        kind
        insertedAt
        computedAt
        state
      }
      monitoredEntity {
        ... on Company {
          companyId: id
          name
        }
        ... on PrivatePerson {
          privatePersonId: id
          name
        }
      }
    }
    pageInfo {
      totalSize
      nextPageOffset
    }
  }
}

Each entity kind has its own ID type (CompanyId, PrivatePersonId), so a selection that spans several kinds aliases id once per kind.

Filter by alert kind

Filter to specific change types using kinds:

query GetSanctionAlerts {
  alerts(where: { kinds: [SANCTIONS], states: [UNRESOLVED], page: { size: 20 } }) {
    edges {
      node {
        id
        kind
        computedAt
      }
      monitoredEntity {
        ... on Company {
          id
          name
        }
      }
    }
  }
}

New alert kinds

Strise adds alert kinds as monitoring covers more data. CUSTOM_SCREENING_LISTS, PERSON_INFORMATION, RISK_LEVEL and PRIVATE_PERSON_INFORMATION are the most recent. Without kinds, alerts returns every kind, including ones added after you built your integration. To handle this:

  • Pass the kinds you handle in kinds if you only want those.
  • Treat an unknown kind value, or a change whose __typename you don't recognise, as something to skip, not as an error.

Adding a value to an enum is a backward-compatible change, so the same applies to every enum in the API.

Filter by entity

Fetch alerts for a specific entity:

query GetEntityAlerts {
  alerts(where: { entity: "<entity_id>", states: [UNRESOLVED], page: { size: 20 } }) {
    edges {
      node {
        id
        kind
        computedAt
      }
    }
  }
}

Investigate alert details

Use the alertData query to see exactly what changed. The change field structure depends on the alert kind.

PEP changes

When a PEP (Politically Exposed Person) status changes on a related person:

query InvestigatePepAlert {
  alertData(alert: "<alert_id>") {
    monitoredEntity {
      ... on Company {
        id
        name
      }
    }
    kind
    computedAt
    change {
      ... on CompanyPepChange {
        kind
        pepChanges {
          person {
            ... on BusinessPerson {
              id
              name
            }
          }
          relationsToMonitoredEntity
          toValue {
            pep
            rca
            hits {
              name
              roles {
                description
                startDate
                endDate
              }
              countries {
                name
              }
            }
          }
          fromValue {
            pep
            rca
          }
        }
      }
    }
  }
}

The fromValue and toValue fields show the previous and new state, letting you see exactly what changed.

Sanction changes

When sanction status changes on the entity or a related person:

query InvestigateSanctionAlert {
  alertData(alert: "<alert_id>") {
    monitoredEntity {
      ... on Company {
        id
        name
      }
    }
    kind
    change {
      ... on CompanySanctionChange {
        kind
        sanctionChanges {
          entity {
            ... on BusinessPerson {
              businessPersonId: id
              name
            }
            ... on Company {
              companyId: id
              name
            }
          }
          relationsToMonitoredEntity
          toValue {
            sanctioned
            sanctions {
              sanctionedBy
              program
              sourceUrl
              sanctionedSince
            }
          }
          fromValue {
            sanctioned
          }
        }
      }
    }
  }
}

Ownership and role changes

When company relationships change (new officers, ownership changes, beneficial owner updates):

query InvestigateRelationsAlert {
  alertData(alert: "<alert_id>") {
    monitoredEntity {
      ... on Company {
        id
        name
      }
    }
    kind
    change {
      ... on CompanyRelationsChange {
        kind
        roleChange {
          toValue {
            roleTitle
            isActive
            period {
              from
              to
            }
            entity {
              ... on BusinessPerson {
                id
                name
              }
            }
          }
          fromValue {
            roleTitle
            isActive
          }
        }
        ownershipChange {
          toValue {
            totalSharePercentage {
              from
              to
            }
            entity {
              ... on BusinessPerson {
                businessPersonId: id
                name
              }
              ... on Company {
                companyId: id
                name
              }
            }
          }
          fromValue {
            totalSharePercentage {
              from
              to
            }
          }
        }
        beneficialOwnerChange {
          toValue {
            reasons
            entity {
              ... on BusinessPerson {
                id
                name
              }
            }
          }
        }
      }
    }
  }
}

Custom screening list changes

When a monitored company, or a company in its screening scope, gets or loses a hit on one of your team's own custom screening lists. Custom screening lists are available only when Strise enables them for your team.

query InvestigateCustomScreeningListAlert {
  alertData(alert: "<alert_id>") {
    kind
    change {
      ... on CompanyCustomScreeningListChange {
        customScreeningListChanges {
          entityId
          isMonitoredEntity
          addedHits {
            listName
            entryName
            matchedName
            score
          }
          removedHits {
            listName
            entryName
          }
        }
      }
    }
  }
}

score runs from 0 to 1 and says how closely the company's name matched the list entry. listName is null if the list has since been deleted.

Person information changes

When a person in a monitored company's network, such as a board member or owner, gets a different set of jurisdictions (nationality, citizenship, residence and similar):

query InvestigatePersonInformationAlert {
  alertData(alert: "<alert_id>") {
    kind
    change {
      ... on PersonInformationChange {
        personInformationChanges {
          entityId
          isMonitoredEntity
          jurisdictionChanged
          previousData {
            jurisdictions
          }
          data {
            jurisdictions
          }
        }
      }
    }
  }
}

Risk level changes

When the risk level Strise calculates for a monitored company changes. Your team's calculated risk settings decide which risks are scored and where the levels start:

query InvestigateRiskLevelAlert {
  alertData(alert: "<alert_id>") {
    kind
    change {
      ... on RiskLevelChange {
        riskLevelChanged
        changedRisks
        previousData {
          totalScore
          riskLevel
          risks {
            kind
            scoreValue
          }
        }
        data {
          totalScore
          riskLevel
          risks {
            kind
            scoreValue
            status
          }
        }
      }
    }
  }
}

riskLevel is null when the total score reaches no configured threshold. changedRisks lists the kinds of risk that changed, for example [SCREENING_LIST] when a screening list hit raised the score. Compare the risks of those kinds in previousData and data to see how. An empty list means no risk changed: the level moved because your team changed its risk level thresholds.

Resolve alerts

After investigating, use the alertUpdate mutation to mark alerts as resolved:

mutation ResolveAlerts {
  alertUpdate(where: { ids: ["<alert_id_1>", "<alert_id_2>"], state: RESOLVED }) {
    success
  }
}

You can also reopen a previously resolved alert by setting the state back to UNRESOLVED.

On this page