-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow container linking for AWS ECS applications. (#2683)
- Loading branch information
Showing
3 changed files
with
423 additions
and
75 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/Agent/NewRelic/Agent/Core/Utilization/EcsVendorModel.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,22 @@ | ||
// Copyright 2020 New Relic, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace NewRelic.Agent.Core.Utilization | ||
{ | ||
public class EcsVendorModel : IVendorModel | ||
{ | ||
private readonly string _ecsDockerId; | ||
|
||
public string VendorName { get { return "ecs"; } } | ||
|
||
[JsonProperty("ecsDockerId", NullValueHandling = NullValueHandling.Ignore)] | ||
public string EcsDockerId { get { return _ecsDockerId; } } | ||
|
||
public EcsVendorModel(string ecsDockerId) | ||
{ | ||
_ecsDockerId = ecsDockerId; | ||
} | ||
} | ||
} |
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.