Skip to content

Commit

Permalink
add metadata (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Graff committed Jan 2, 2018
1 parent c3ceefb commit 8f19dc2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import javax.validation.constraints.NotNull;
import java.time.Duration;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

Expand All @@ -30,6 +31,8 @@ public class CanaryExecutionRequest {

protected CanaryClassifierThresholdsConfig thresholds;

protected List<Metadata> metadata;

public Duration calculateDuration() {
Set<Duration> durationsFound = new HashSet<>();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.netflix.kayenta.canary;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.NonNull;

@Data
public class Metadata {
@Getter
@NonNull
protected String name;

@Getter
@NonNull
protected String value;

// 'hidden' is a UI-hint to show or not show this value by default in the UI,
// likely in a generic way.
@Getter
@Builder.Default
protected Boolean hidden = false;
}

0 comments on commit 8f19dc2

Please sign in to comment.