-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding device state change monitoring (#779)
- Loading branch information
Showing
33 changed files
with
451 additions
and
127 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.google.udmi.util; | ||
|
||
import static java.lang.String.format; | ||
|
||
public record DiffEntry(DiffAction action, String key, String value) { | ||
public enum DiffAction { | ||
ADD("Add"), | ||
SET("Set"), | ||
REMOVE("Remove"); | ||
|
||
final String value; | ||
|
||
DiffAction(String value) { | ||
this.value = value; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return action == DiffAction.REMOVE ? format("%s `%s`", action().value, key) | ||
: format("%s `%s` = %s", action().value, key, value); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
RESULT pass schemas event_pointset_alpha ALPHA 5/5 All schema validations passed | ||
RESULT pass schemas event_pointset_beta BETA 5/5 All schema validations passed | ||
RESULT pass schemas event_pointset_stable STABLE 5/5 All schema validations passed | ||
RESULT pass schemas event_system_alpha ALPHA 5/5 All schema validations passed | ||
RESULT pass schemas event_system_beta BETA 5/5 All schema validations passed | ||
RESULT pass schemas event_system_stable STABLE 5/5 All schema validations passed | ||
RESULT pass schemas state_update_alpha ALPHA 5/5 All schema validations passed | ||
RESULT pass schemas state_update_beta BETA 5/5 All schema validations passed | ||
RESULT pass schemas state_update_stable STABLE 5/5 All schema validations passed | ||
RESULT pass schemas device_state_alpha ALPHA 5/5 Schema validation passed | ||
RESULT pass schemas device_state_beta BETA 5/5 Schema validation passed | ||
RESULT pass schemas device_state_stable STABLE 5/5 Schema validation passed | ||
RESULT pass schemas event_pointset_beta BETA 5/5 Schema validation passed | ||
RESULT pass schemas event_system_alpha ALPHA 5/5 Schema validation passed | ||
RESULT pass schemas event_system_stable STABLE 5/5 Schema validation passed | ||
RESULT pass schemas state_update_alpha ALPHA 5/5 Schema validation passed | ||
RESULT pass schemas state_update_beta BETA 5/5 Schema validation passed | ||
RESULT pass schemas state_update_stable STABLE 5/5 Schema validation passed |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
RESULT pass schemas event_pointset_beta BETA 5/5 All schema validations passed | ||
RESULT pass schemas event_system_beta BETA 5/5 All schema validations passed | ||
RESULT pass schemas device_state_beta BETA 5/5 Schema validation passed | ||
RESULT pass schemas event_pointset_beta BETA 5/5 Schema validation passed | ||
RESULT pass schemas event_system_beta BETA 5/5 Schema validation passed |
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
Oops, something went wrong.