-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename AzureResourceDefinition subclasses
When I was making the initial set of changes, I didn't want to make too many changes at once, so I held off on renaming the subclasses of `AzureResourceDefinition`. This change renames them all from `{Type}MetricDefinition` to `{Type}ResourceDefinition` to make it clearer what they are.
- Loading branch information
1 parent
fd4a234
commit b4ceab3
Showing
41 changed files
with
118 additions
and
118 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...ypes/ContainerInstanceMetricDefinition.cs → ...es/ContainerInstanceResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...ypes/ContainerRegistryMetricDefinition.cs → ...es/ContainerRegistryResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...ResourceTypes/CosmosDbMetricDefinition.cs → ...sourceTypes/CosmosDbResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...urceTypes/GenericAzureMetricDefinition.cs → ...ceTypes/GenericAzureResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...Types/NetworkInterfaceMetricDefinition.cs → ...pes/NetworkInterfaceResourceDefinition.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
34 changes: 17 additions & 17 deletions
34
...sourceTypes/PostgreSqlMetricDefinition.cs → ...urceTypes/PostgreSqlResourceDefinition.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,17 +1,17 @@ | ||
namespace Promitor.Core.Scraping.Configuration.Model.Metrics.ResourceTypes | ||
{ | ||
public class PostgreSqlMetricDefinition : AzureResourceDefinition | ||
{ | ||
public PostgreSqlMetricDefinition() : base(ResourceType.PostgreSql) | ||
{ | ||
} | ||
|
||
public PostgreSqlMetricDefinition(string resourceGroupName, string serverName) | ||
: base(ResourceType.PostgreSql, resourceGroupName) | ||
{ | ||
ServerName = serverName; | ||
} | ||
|
||
public string ServerName { get; set; } | ||
} | ||
} | ||
namespace Promitor.Core.Scraping.Configuration.Model.Metrics.ResourceTypes | ||
{ | ||
public class PostgreSqlResourceDefinition : AzureResourceDefinition | ||
{ | ||
public PostgreSqlResourceDefinition() : base(ResourceType.PostgreSql) | ||
{ | ||
} | ||
|
||
public PostgreSqlResourceDefinition(string resourceGroupName, string serverName) | ||
: base(ResourceType.PostgreSql, resourceGroupName) | ||
{ | ||
ServerName = serverName; | ||
} | ||
|
||
public string ServerName { get; set; } | ||
} | ||
} |
34 changes: 17 additions & 17 deletions
34
...sourceTypes/RedisCacheMetricDefinition.cs → ...urceTypes/RedisCacheResourceDefinition.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,17 +1,17 @@ | ||
namespace Promitor.Core.Scraping.Configuration.Model.Metrics.ResourceTypes | ||
{ | ||
public class RedisCacheMetricDefinition : AzureResourceDefinition | ||
{ | ||
public RedisCacheMetricDefinition() : base(ResourceType.RedisCache) | ||
{ | ||
} | ||
|
||
public RedisCacheMetricDefinition(string resourceGroupName, string cacheName) | ||
: base(ResourceType.RedisCache, resourceGroupName) | ||
{ | ||
CacheName = cacheName; | ||
} | ||
|
||
public string CacheName { get; set; } | ||
} | ||
} | ||
namespace Promitor.Core.Scraping.Configuration.Model.Metrics.ResourceTypes | ||
{ | ||
public class RedisCacheResourceDefinition : AzureResourceDefinition | ||
{ | ||
public RedisCacheResourceDefinition() : base(ResourceType.RedisCache) | ||
{ | ||
} | ||
|
||
public RedisCacheResourceDefinition(string resourceGroupName, string cacheName) | ||
: base(ResourceType.RedisCache, resourceGroupName) | ||
{ | ||
CacheName = cacheName; | ||
} | ||
|
||
public string CacheName { get; set; } | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...eTypes/ServiceBusQueueMetricDefinition.cs → ...ypes/ServiceBusQueueResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...urceTypes/StorageQueueMetricDefinition.cs → ...ceTypes/StorageQueueResourceDefinition.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
6 changes: 3 additions & 3 deletions
6
...ceTypes/VirtualMachineMetricDefinition.cs → ...Types/VirtualMachineResourceDefinition.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
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
Oops, something went wrong.