Package jetbrains.buildServer.clouds
Interface AgentExpirationCondition
-
- All Superinterfaces:
ServerExtension
,TeamCityExtension
public interface AgentExpirationCondition extends ServerExtension
This extension allows checking whether an agent can be marked as expired.- Since:
- 2024.07
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getProlongationReason(CloudProfile cloudProfile, CloudInstance cloudInstance, SBuildAgent agent)
Checks whether the agent can be marked as expired and the corresponding cloud instance can be stopped
-
-
-
Method Detail
-
getProlongationReason
@Nullable String getProlongationReason(@NotNull CloudProfile cloudProfile, @NotNull CloudInstance cloudInstance, @NotNull SBuildAgent agent)
Checks whether the agent can be marked as expired and the corresponding cloud instance can be stopped- Parameters:
cloudProfile
- - the cloud profilecloudInstance
- - the cloud instanceagent
- - the agent to check- Returns:
- the reason why the agent can be marked as expired or null otherwise
- Since:
- 2024.07
-
-