Tabnine Logo
MetricStore.getMetricStoreType
Code IndexAdd Tabnine to your IDE (free)

How to use
getMetricStoreType
method
in
com.netflix.spinnaker.halyard.config.model.v1.node.MetricStore

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.node.MetricStore.getMetricStoreType (Showing top 2 results out of 315)

origin: spinnaker/halyard

public void setMetricStore(String deploymentName, MetricStore metricStore) {
 MetricStores metricStores = getMetricStores(deploymentName);
 switch (metricStore.getMetricStoreType()) {
  case DATADOG:
   metricStores.setDatadog((DatadogStore) metricStore);
   break;
  case PROMETHEUS:
   metricStores.setPrometheus((PrometheusStore) metricStore);
   break;
  case STACKDRIVER:
   metricStores.setStackdriver((StackdriverStore) metricStore);
   break;
  default:
   throw new RuntimeException("Unknown Metric Store " + metricStore.getMetricStoreType());
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public void setMetricStore(String deploymentName, MetricStore metricStore) {
 MetricStores metricStores = getMetricStores(deploymentName);
 switch (metricStore.getMetricStoreType()) {
  case DATADOG:
   metricStores.setDatadog((DatadogStore) metricStore);
   break;
  case PROMETHEUS:
   metricStores.setPrometheus((PrometheusStore) metricStore);
   break;
  case STACKDRIVER:
   metricStores.setStackdriver((StackdriverStore) metricStore);
   break;
  default:
   throw new RuntimeException("Unknown Metric Store " + metricStore.getMetricStoreType());
 }
}
com.netflix.spinnaker.halyard.config.model.v1.nodeMetricStoregetMetricStoreType

Popular methods of MetricStore

  • hashCode
  • setEnabled

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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