code: public static void checkEventCriteria(final AttributeImpl attribute, final EventType eventType) throws DevFailed {
          switch (eventType) {
              case CHANGE_EVENT:
                  ChangeEventTrigger.checkEventCriteria(attribute);
                  break;
              case ARCHIVE_EVENT:
                  ArchiveEventTrigger.checkEventCriteria(attribute);
                  break;
              default:
                  break;
          }
      }
docs: Check if event criteria are set for change and archive events
  
  @param attribute the specified attribute
  @param eventType the specified event type
  @throws DevFailed if event type is change or archive and no event criteria is set.