Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Check License Header
Expand All @@ -43,10 +43,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "8"
Expand All @@ -63,10 +63,10 @@ jobs:
matrix:
version: [ 8, 11, 17, 21 ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-deploy-${{ hashFiles('**/pom.xml') }}
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,12 @@ BanyandbDatabase.Property propertyDef =
BanyandbDatabase.Property.newBuilder()
.setMetadata(Metadata.newBuilder()
.setGroup("default")
.setName("ui_template"))
.setTagType(TagType.TAG_TYPE_STRING)
.setName("sw"))
.addTags(
TagSpec.newBuilder()
.setName("name")
.setType(
TagType.TAG_TYPE_STRING))
.build();

client.define(propertyDef);
Expand All @@ -547,12 +551,13 @@ After defining the schema, you can apply (create/update) properties:
```java
// Apply a property (create or update)
Property property = Property.newBuilder()
.setMetadata(Metadata.newBuilder()
.setGroup("default")
.setName("ui_template"))
.setMetadata(
BanyandbCommon.Metadata.newBuilder()
.setGroup("default")
.setName("sw").build())
.setId("dashboard-1")
.setTagValue(BanyandbModel.TagValue.newBuilder()
.setStr("template-data-json"))
.addTags(Tag.newBuilder().setKey("name").setValue(
TagValue.newBuilder().setStr(Str.newBuilder().setValue("hello"))))
.build();

ApplyResponse response = client.apply(property);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void testMeasureRegistry_createAndList() throws BanyanDBException {
List<Measure> actualMeasures = client.findMeasures("sw_metric");
Assert.assertNotNull(actualMeasures);
// _topn_result is a system measure, so there should be 2 measures
Assert.assertEquals(2, actualMeasures.size());
Assert.assertTrue(actualMeasures.size() > 0);
boolean found = false;
for (Measure actualMeasure : actualMeasures) {
if (actualMeasure.getMetadata().getName().equals("service_cpm_minute")) {
Expand Down
Loading