Codota Logo
OperatorTerm.name
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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.termsOperatorTermname

Popular methods of OperatorTerm

    Popular in Java

    • Running tasks concurrently on multiple threads
    • requestLocationUpdates (LocationManager)
    • findViewById (Activity)
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • PrintStream (java.io)
      A PrintStream adds functionality to another output stream, namely the ability to print representatio
    • SecureRandom (java.security)
      This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
    • Timer (java.util)
      A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • Options (org.apache.commons.cli)
      Main entry-point into the library. Options represents a collection of Option objects, which describ
    • LoggerFactory (org.slf4j)
      The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now