Tabnine Logo
OperatorTerm.name
Code IndexAdd Tabnine 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)

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

    • Finding current android device location
    • requestLocationUpdates (LocationManager)
    • setRequestProperty (URLConnection)
    • getApplicationContext (Context)
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • Reference (javax.naming)
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    • SAXParseException (org.xml.sax)
      Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
    • Top Sublime Text 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