public void setScope(Scope scope) {
    this.scope = scope;
  }
Sets the scope of the alert definition. The scope is defined as either
being for a {@link Scope#SERVICE} or {@link Scope#HOST}.

@param scope the scope to set, or {@code null} for none.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java