congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OperatorTerm
Code IndexAdd Tabnine to your IDE (free)

How to use
OperatorTerm
in
com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition.terms

Best Java code snippets using com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition.terms.OperatorTerm (Showing top 5 results out of 315)

origin: ocadotechnology/newrelic-alerts-configurator

private static Terms mapTerms(TermsConfiguration termsConfiguration) {
  return Terms.builder()
    .duration(String.valueOf(termsConfiguration.getDurationTerm().getDuration()))
    .operator(termsConfiguration.getOperatorTerm().name().toLowerCase())
    .priority(termsConfiguration.getPriorityTerm().name().toLowerCase())
    .threshold(String.valueOf(termsConfiguration.getThresholdTerm()))
    .timeFunction(termsConfiguration.getTimeFunctionTerm().name().toLowerCase())
    .build();
}
origin: ocadotechnology/newrelic-alerts-configurator

  private static Terms mapNrqlTerms(NrqlTermsConfiguration termsConfiguration) {
    return Terms.builder()
        .duration(String.valueOf(termsConfiguration.getDurationTerm().getDuration()))
        .operator(termsConfiguration.getOperatorTerm().name().toLowerCase())
        .priority(termsConfiguration.getPriorityTerm().name().toLowerCase())
        .threshold(String.valueOf(termsConfiguration.getThresholdTerm()))
        .timeFunction(termsConfiguration.getTimeFunctionTerm().name().toLowerCase())
        .build();
  }
}
origin: ocadotechnology/newrelic-alerts-configurator

  private static AlertsExternalServiceCondition.AlertsExternalServiceConditionBuilder createConditionBuilder() {
    return AlertsExternalServiceCondition.builder()
      .type(ExternalServiceConditionType.APM.getTypeString())
      .name(CONDITION_NAME)
      .enabled(ENABLED)
      .entity(APPLICATION_ENTITY_ID)
      .metric(METRIC.name().toLowerCase())
      .externalServiceUrl(EXTERNAL_SERVICE_URL)
      .term(Terms.builder()
        .duration(String.valueOf(TERMS_CONFIGURATION.getDurationTerm().getDuration()))
        .operator(TERMS_CONFIGURATION.getOperatorTerm().name().toLowerCase())
        .priority(TERMS_CONFIGURATION.getPriorityTerm().name().toLowerCase())
        .threshold(String.valueOf(TERMS_CONFIGURATION.getThresholdTerm()))
        .timeFunction(TERMS_CONFIGURATION.getTimeFunctionTerm().name().toLowerCase())
        .build()
      );
  }
}
origin: ocadotechnology/newrelic-alerts-configurator

  private static AlertsCondition.AlertsConditionBuilder createConditionBuilder() {
    return AlertsCondition.builder()
      .type(ConditionType.APM_APP.getTypeString())
      .name(CONDITION_NAME)
      .enabled(ENABLED)
      .entity(APPLICATION_ENTITY_ID)
      .metric(APP_METRIC.name().toLowerCase())
      .conditionScope(CONDITION_SCOPE.name().toLowerCase())
      .violationCloseTimer(VIOLATION_CLOSE_TIMER.getDuration())
      .term(Terms.builder()
          .duration(String.valueOf(TERMS_CONFIGURATION.getDurationTerm().getDuration()))
          .operator(TERMS_CONFIGURATION.getOperatorTerm().name().toLowerCase())
          .priority(TERMS_CONFIGURATION.getPriorityTerm().name().toLowerCase())
          .threshold(String.valueOf(TERMS_CONFIGURATION.getThresholdTerm()))
          .timeFunction(TERMS_CONFIGURATION.getTimeFunctionTerm().name().toLowerCase())
          .build());
  }
}
origin: ocadotechnology/newrelic-alerts-configurator

private static AlertsNrqlCondition.AlertsNrqlConditionBuilder createConditionBuilder() {
  return AlertsNrqlCondition.builder()
      .name(CONDITION_NAME)
      .enabled(ENABLED)
      .term(Terms.builder()
          .duration(String.valueOf(TERMS_CONFIGURATION.getDurationTerm().getDuration()))
          .operator(TERMS_CONFIGURATION.getOperatorTerm().name().toLowerCase())
          .priority(TERMS_CONFIGURATION.getPriorityTerm().name().toLowerCase())
          .threshold(String.valueOf(TERMS_CONFIGURATION.getThresholdTerm()))
          .timeFunction(TERMS_CONFIGURATION.getTimeFunctionTerm().name().toLowerCase())
          .build())
      .valueFunction(VALUE_FUNCTION.getValueString())
      .nrql(Nrql.builder()
          .query(QUERY)
          .sinceValue(String.valueOf(SINCE_VALUE.getSince()))
          .build());
}
com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition.termsOperatorTerm

Most used methods

  • name

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now