Add Datadog Reporting#41
Merged
MTFT-Games merged 2 commits intoComputerScienceHouse:mainfrom Feb 28, 2023
Merged
Conversation
joeoneil
approved these changes
Feb 28, 2023
MTFT-Games
requested changes
Feb 28, 2023
Contributor
Author
|
Datadog agent is running on the devcade PC. Anything sent to UDP 812t localhost will end up on DDSent from my iPhoneOn Feb 27, 2023, at 9:01 PM, Noah Emke ***@***.***> wrote:
@MTFT-Games requested changes on this pull request.
In onboard/DevcadeClient.cs:
@@ -126,11 +128,35 @@ private static void Chmod(string filePath, string permissions = "700", bool recu
notifyDownloadComplete(game);
}
+ public static void reportToDatadog(DevcadeGame game) {
+ // Create a new UdpClient
+ UdpClient udpClient = new UdpClient();
+
+ // Create a new IPEndPoint for the destination IP address and port number
+ IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
Should this be a env var or something or do you intend to add another service on the decade machine to then send this to datadog?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
MTFT-Games
approved these changes
Feb 28, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Whenever a game is launched, it will be updated on Datadog. Now we can get cool stats about how popular games are