Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

MeasuresWsParameters.java 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2019 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.server.component.ws;
  21. import com.google.common.collect.ImmutableSortedSet;
  22. import java.util.Set;
  23. public class MeasuresWsParameters {
  24. public static final String CONTROLLER_MEASURES = "api/measures";
  25. // actions
  26. public static final String ACTION_COMPONENT_TREE = "component_tree";
  27. public static final String ACTION_COMPONENT = "component";
  28. public static final String ACTION_SEARCH_HISTORY = "search_history";
  29. // parameters
  30. public static final String DEPRECATED_PARAM_BASE_COMPONENT_ID = "baseComponentId";
  31. public static final String DEPRECATED_PARAM_BASE_COMPONENT_KEY = "baseComponentKey";
  32. public static final String PARAM_COMPONENT = "component";
  33. public static final String PARAM_BRANCH = "branch";
  34. public static final String PARAM_PULL_REQUEST = "pullRequest";
  35. public static final String PARAM_STRATEGY = "strategy";
  36. public static final String PARAM_QUALIFIERS = "qualifiers";
  37. public static final String PARAM_METRICS = "metrics";
  38. public static final String PARAM_METRIC_KEYS = "metricKeys";
  39. public static final String PARAM_METRIC_SORT = "metricSort";
  40. public static final String PARAM_METRIC_PERIOD_SORT = "metricPeriodSort";
  41. public static final String PARAM_METRIC_SORT_FILTER = "metricSortFilter";
  42. public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields";
  43. public static final String PARAM_PROJECT_KEYS = "projectKeys";
  44. public static final String PARAM_FROM = "from";
  45. public static final String PARAM_TO = "to";
  46. public static final String ADDITIONAL_METRICS = "metrics";
  47. public static final String ADDITIONAL_PERIODS = "periods";
  48. public static final Set<String> ADDITIONAL_FIELDS = ImmutableSortedSet.of(ADDITIONAL_METRICS, ADDITIONAL_PERIODS);
  49. private MeasuresWsParameters() {
  50. // static constants only
  51. }
  52. }