Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Mar 15, 2024
1 parent 3d6cd02 commit f5c61eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/io/cryostat/graphql/ActiveRecordings.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ public RecordingOptions asOptions() {
}
}

@Blocking
@Transactional
@Description(
"Updates the metadata labels for an existing Flight Recorder recording specified by the"
+ " recording ID.")
Expand All @@ -336,6 +338,7 @@ public Uni<ActiveRecording> doPutMetadata(
});
}

@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
public static class MetadataLabels {

private Map<String, String> labels;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/io/cryostat/recordings/RecordingHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ private Metadata taggingToMetadata(List<Tag> tagSet) {
return new Metadata(labels, expiry);
}

@Blocking
public ActiveRecording updateRecordingMetadata(
Long recordingId, Map<String, String> newLabels) {
ActiveRecording recording = ActiveRecording.findById(recordingId);
Expand All @@ -968,6 +969,7 @@ public ActiveRecording updateRecordingMetadata(
return recording;
}

@Blocking
public ArchivedRecording updateArchivedRecordingMetadata(
String jvmId, String filename, Map<String, String> newLabels) {
String key = archivedRecordingKey(jvmId, filename);
Expand Down

0 comments on commit f5c61eb

Please sign in to comment.