Skip to content

Commit

Permalink
feat: add metadata to NodeCommandPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
gcusnieux committed Nov 22, 2024
1 parent e0383a9 commit 8415723
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<properties>
<gravitee-bom.version>8.1.18</gravitee-bom.version>
<gravitee-node.version>6.5.0</gravitee-node.version>
<gravitee-node.version>7.0.0-alpha.4</gravitee-node.version>
<gravitee-alert-api.version>2.0.0</gravitee-alert-api.version>
<gravitee-exchange.version>1.8.2</gravitee-exchange.version>
<gravitee-scoring-api.version>0.3.0</gravitee-scoring-api.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright © 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.cockpit.api.command.v1;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class MetadataConstants {

public static final String GATEWAY_ID = "GATEWAY_ID";
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import io.gravitee.exchange.api.command.Payload;
import java.util.List;
import java.util.Map;
import lombok.Builder;

/**
Expand Down Expand Up @@ -80,7 +81,9 @@ public record NodeCommandPayload(
*/
long evaluatedAt,

Status status
Status status,

Map<String, String> metadata
)
implements Payload {
@Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import io.gravitee.cockpit.api.command.v1.CockpitCommand;
import io.gravitee.cockpit.api.command.v1.CockpitCommandType;
import io.gravitee.cockpit.api.command.v1.environment.EnvironmentCommandPayload;
import io.gravitee.cockpit.api.command.v1.node.NodeCommandPayload;
import lombok.EqualsAndHashCode;
import lombok.ToString;

Expand Down

0 comments on commit 8415723

Please sign in to comment.