public Scope getScope() {
    return scope;
  }
Gets the scope of the alert definition. The scope is defined as either
being for a {@link Scope#SERVICE} or {@link Scope#HOST}.

@return the scope, or {@code null} if not defined.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java