forked from Azure/iotedge
-
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.
Merged PR 407664: Add better health care restart planner (BHCRP)
Adds the better health care restart planner.
- Loading branch information
Showing
88 changed files
with
5,246 additions
and
2,441 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*.cs] | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true |
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
29 changes: 16 additions & 13 deletions
29
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/AgentEventIds.cs
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,15 +1,18 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Agent.Core | ||
{ | ||
public struct AgentEventIds | ||
{ | ||
const int EventIdStart = 100000; | ||
public const int Agent = EventIdStart; | ||
public const int FileConfigSource = EventIdStart + 100; | ||
public const int TwinConfigSource = EventIdStart + 200; | ||
public const int RestartPlanner = EventIdStart + 300; | ||
public const int Plan = EventIdStart + 400; | ||
public const int FileBackupConfigSource = EventIdStart + 500; | ||
public const int TwinReportStateCommandFactory = EventIdStart + 600; | ||
} | ||
} | ||
public struct AgentEventIds | ||
{ | ||
const int EventIdStart = 100000; | ||
public const int Agent = EventIdStart; | ||
public const int FileConfigSource = EventIdStart + 100; | ||
public const int TwinConfigSource = EventIdStart + 200; | ||
public const int RestartPlanner = EventIdStart + 300; | ||
public const int Plan = EventIdStart + 400; | ||
public const int FileBackupConfigSource = EventIdStart + 500; | ||
public const int HealthRestartPlanner = EventIdStart + 600; | ||
public const int RestartManager = EventIdStart + 700; | ||
public const int IoTHubReporter = EventIdStart + 800; | ||
public const int DockerEnvironment = EventIdStart + 900; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/Constants.cs
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,30 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
|
||
namespace Microsoft.Azure.Devices.Edge.Agent.Core | ||
{ | ||
public static class Constants | ||
{ | ||
public const string Owner = "Microsoft.Azure.Devices.Edge.Agent"; | ||
|
||
public const string EdgeDeviceConnectionStringKey = "EdgeDeviceConnectionString"; | ||
|
||
public const string EdgeHubConnectionStringKey = "EdgeHubConnectionString"; | ||
|
||
public const string ModuleIdKey = "ModuleId"; | ||
|
||
public const string MMAStorePartitionKey = "mma"; | ||
|
||
public const RestartPolicy DefaultRestartPolicy = RestartPolicy.OnUnhealthy; | ||
|
||
public const ModuleStatus DefaultDesiredStatus = ModuleStatus.Running; | ||
|
||
public static class Labels | ||
{ | ||
public const string Version = "net.azure-devices.edge.version"; | ||
public const string Owner = "net.azure-devices.edge.owner"; | ||
public const string RestartPolicy = "net.azure-devices.edge.restartPolicy"; | ||
public const string DesiredStatus = "net.azure-devices.edge.desiredStatus"; | ||
public const string NormalizedCreateOptions = "net.azure-devices.edge.normalizedCreateOptions"; | ||
} | ||
} | ||
} |
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.