blob: 1d38a21f05c98210d1d9732c28223b99ebf882b9 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.tcbot.engine.conf;
import org.apache.ignite.tcbot.common.conf.IGitHubConfig;
import org.apache.ignite.tcbot.common.conf.IJiraServerConfig;
import org.apache.ignite.tcbot.common.conf.ITcServerConfig;
import org.apache.ignite.tcbot.common.conf.IDataSourcesConfigSupplier;
import java.util.Collection;
/**
* Teamcity Bot configuration access interface.
*/
public interface ITcBotConfig extends IDataSourcesConfigSupplier {
/** Default server code. */
public String DEFAULT_SERVER_CODE = "apache";
/** Default flaky rate. */
public Integer DEFAULT_FLAKY_RATE = 20;
/** Default confidence. */
public Double DEFAULT_CONFIDENCE = 0.95;
/** */
public String primaryServerCode();
/** */
public Integer flakyRate();
/** */
public Double confidence();
/**
* @return Tracked branches configuration for TC Bot.
*/
public ITrackedBranchesConfig getTrackedBranches();
/**
* @return list of servers (services) identifiers involved into tracked branches processing.
*/
public default Collection<String> getServerIds() {
return getTrackedBranches().getServerIds();
}
public ITcServerConfig getTeamcityConfig(String srvCode);
public IJiraServerConfig getJiraConfig(String srvCode);
public IGitHubConfig getGitConfig(String srvCode);
/**
* @return notification settings config.
*/
public NotificationsConfig notifications();
}