summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/DeploymentIssues.java
blob: fdebcca6d83e9875f6092d8ec036dbe2f61a7371 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;

import com.yahoo.component.Version;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.vespa.hosted.controller.api.identifiers.PropertyId;

import java.time.Duration;
import java.util.Collection;
import java.util.Optional;

/**
 * Represents the people responsible for keeping Vespa up and running in a given organization, etc..
 *
 * @author jvenstad
 */
public interface DeploymentIssues {

    IssueId fileUnlessOpen(Optional<IssueId> issueId, ApplicationId applicationId, PropertyId propertyId);

    IssueId fileUnlessOpen(Optional<IssueId> issueId, ApplicationId applicationId, User assignee);

    IssueId fileUnlessOpen(Collection<ApplicationId> applicationIds, Version version);

    void escalateIfInactive(IssueId issueId, Optional<PropertyId> propertyId, Duration maxInactivity);

}