001/* 002 * SonarQube 003 * Copyright (C) 2009-2016 SonarSource SA 004 * mailto:contact AT sonarsource DOT com 005 * 006 * This program is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public License 017 * along with this program; if not, write to the Free Software Foundation, 018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 019 */ 020 021package org.sonarqube.ws.client.measure; 022 023import com.google.common.collect.ImmutableSortedSet; 024import java.util.Set; 025 026public class MeasuresWsParameters { 027 public static final String CONTROLLER_MEASURES = "api/measures"; 028 029 // actions 030 public static final String ACTION_COMPONENT_TREE = "component_tree"; 031 032 public static final String ACTION_COMPONENT = "component"; 033 // parameters 034 public static final String PARAM_BASE_COMPONENT_ID = "baseComponentId"; 035 036 public static final String PARAM_BASE_COMPONENT_KEY = "baseComponentKey"; 037 public static final String PARAM_STRATEGY = "strategy"; 038 public static final String PARAM_QUALIFIERS = "qualifiers"; 039 public static final String PARAM_METRIC_KEYS = "metricKeys"; 040 public static final String PARAM_METRIC_SORT = "metricSort"; 041 public static final String PARAM_METRIC_PERIOD_SORT = "metricPeriodSort"; 042 public static final String PARAM_METRIC_SORT_FILTER = "metricSortFilter"; 043 public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields"; 044 public static final String PARAM_COMPONENT_ID = "componentId"; 045 public static final String PARAM_COMPONENT_KEY = "componentKey"; 046 public static final String PARAM_DEVELOPER_ID = "developerId"; 047 public static final String PARAM_DEVELOPER_KEY = "developerKey"; 048 public static final String ADDITIONAL_METRICS = "metrics"; 049 050 public static final String ADDITIONAL_PERIODS = "periods"; 051 public static final Set<String> ADDITIONAL_FIELDS = ImmutableSortedSet.of(ADDITIONAL_METRICS, ADDITIONAL_PERIODS); 052 053 private MeasuresWsParameters() { 054 // static constants only 055 } 056}