aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/DeploymentIssues.java
blob: 0c0f1b8e6e4f9a4c6443495e295cd0a3894b2fcd (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
// Copyright Vespa.ai. 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 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 jonmv
 */
public interface DeploymentIssues {

    IssueId fileUnlessOpen(Optional<IssueId> issueId, ApplicationId applicationId, AccountId assigneeId, User assignee, Contact contact);

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

    void escalateIfInactive(IssueId issueId, Duration maxInactivity, Optional<Contact> contact);

}