-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from sourceplusplus/dev
Dev
- Loading branch information
Showing
28 changed files
with
447 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
kotlin.code.style=official | ||
|
||
projectVersion=0.4.1 | ||
projectVersion=0.4.2 | ||
|
||
kotlinVersion=1.6.10 | ||
vertxVersion=4.2.4 | ||
|
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -18,6 +18,8 @@ | |
package spp.protocol.instrument.event | ||
|
||
import kotlinx.datetime.Instant | ||
import kotlinx.datetime.serializers.InstantIso8601Serializer | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* todo: description. | ||
|
@@ -26,5 +28,6 @@ import kotlinx.datetime.Instant | |
* @author [Brandon Fergerson](mailto:[email protected]) | ||
*/ | ||
interface TrackedLiveEvent { | ||
@Serializable(with = InstantIso8601Serializer::class) | ||
val occurredAt: Instant | ||
} |
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 |
---|---|---|
|
@@ -15,30 +15,24 @@ | |
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package spp.protocol.service | ||
package spp.protocol.portal | ||
|
||
import io.vertx.codegen.annotations.ProxyGen | ||
import io.vertx.codegen.annotations.VertxGen | ||
import io.vertx.core.Future | ||
import io.vertx.core.json.JsonObject | ||
import kotlinx.datetime.Instant | ||
import spp.protocol.instrument.DurationStep | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.Serializable | ||
import spp.protocol.artifact.ArtifactQualifiedName | ||
|
||
/** | ||
* todo: description. | ||
* | ||
* @since 0.2.1 | ||
* @author [Brandon Fergerson](mailto:[email protected]) | ||
*/ | ||
@ProxyGen | ||
@VertxGen | ||
interface LogCountIndicatorService { | ||
@Serializable | ||
data class PortalConfiguration( | ||
var artifactQualifiedName: ArtifactQualifiedName, | ||
var darkMode: Boolean = false, | ||
var external: Boolean = false, | ||
var config: MutableMap<String, @Contextual Any> = mutableMapOf() | ||
) { | ||
fun <T> get(key: String): T { | ||
return config[key] as T | ||
} | ||
|
||
fun getPatternOccurrences( | ||
logPatterns: List<String>, | ||
serviceName: String?, | ||
start: Instant, | ||
stop: Instant, | ||
step: DurationStep | ||
): Future<JsonObject> | ||
fun <T> get(key: String, default: T): T { | ||
return config[key] as T ?: default | ||
} | ||
} |
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.