forked from apache/eventmesh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed according to PR#22 conversation Database schema definition modified
- Loading branch information
1 parent
050cfd7
commit 58f9ea7
Showing
22 changed files
with
437 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...in/java/org/apache/eventmesh/dashboard/console/entity/health/HealthCheckResultEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.apache.eventmesh.dashboard.console.entity.health; | ||
|
||
import org.apache.eventmesh.dashboard.console.entity.base.BaseEntity; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
@Schema(name = "HealthCheckResultEntity", description = "Health check result entity") | ||
public class HealthCheckResultEntity extends BaseEntity { | ||
|
||
private static final long serialVersionUID = -7350585209577598040L; | ||
@Schema(name = "id", description = "primary key") | ||
private Long id; | ||
|
||
@Schema(description = "Dimension of Health Check;0:Unknown, 1:Cluster, 2:Runtime, 3:Topic, 4:Group", defaultValue = "0", allowableValues = {"0", | ||
"1", "2", "3", "4"}) | ||
private Integer dimension; | ||
|
||
private String configName; | ||
|
||
private String resName; | ||
|
||
private Integer passed; | ||
|
||
public HealthCheckResultEntity() { | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
...-console/src/main/java/org/apache/eventmesh/dashboard/console/entity/meta/MetaEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.apache.eventmesh.dashboard.console.entity.meta; | ||
|
||
import org.apache.eventmesh.dashboard.console.entity.base.BaseEntity; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class MetaEntity extends BaseEntity { | ||
|
||
private static final long serialVersionUID = 7176263169716424469L; | ||
|
||
/** | ||
* Primary key | ||
*/ | ||
@Schema(name = "id", description = "Primary key") | ||
private Long id; | ||
|
||
private String name; | ||
|
||
private String type; | ||
|
||
private String version; | ||
|
||
private Long clusterId; | ||
|
||
private String host; | ||
|
||
private Integer port; | ||
|
||
private String role; | ||
|
||
private String username; | ||
|
||
private String params; | ||
|
||
private Integer status; | ||
} |
29 changes: 29 additions & 0 deletions
29
...nsole/src/main/java/org/apache/eventmesh/dashboard/console/enums/KubernetesPodStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.apache.eventmesh.dashboard.console.enums; | ||
|
||
public enum KubernetesPodStatus { | ||
PENDING(0, "pending"), | ||
RUNNING(1, "running"), | ||
SUCCEEDED(2, "succeeded"), | ||
FAILED(3, "failed"), | ||
UNKNOWN(4, "unknown"); | ||
|
||
KubernetesPodStatus(Integer number, String status) { | ||
} | ||
} |
Oops, something went wrong.