C# 클래스 Microsoft.WindowsAzure.Commands.ServiceManagement.Common.DiagnosticsHelper

파일 보기 프로젝트 열기: Azure/azure-powershell

공개 프로퍼티들

프로퍼티 타입 설명
DiagnosticMonitorConfigurationElemStr string
DiagnosticsConfigurationElemStr string
EventHubElemStr string
EventHubSharedAccessKeyAttr string
EventHubSharedAccessKeyNameAttr string
EventHubUrlAttr string
MetricsElemStr string
MetricsResourceIdAttr string
PrivConfEndpointAttr string
PrivConfKeyAttr string
PrivConfNameAttr string
PrivateConfigElemStr string
PublicConfigElemStr string
StorageAccountElemStr string
XmlNamespace string

공개 메소드들

메소드 설명
AutoFillMetricsConfig ( System.Xml.Linq.XElement wadCfgElement, string resourceId, Cmdlet cmdlet ) : void
GetConfigFileType ( string configurationPath ) : ConfigFileType
GetConfigValueFromPrivateConfig ( string configurationPath, string elementName, string attributeName ) : string

Get the private config value for a specific attribute. The private config looks like this: XML: JSON: "PrivateConfig":{ "storageAccountName":"name", "storageAccountKey":"key", "storageAccountEndPoint":"endpoint", "EventHub":{ "Url":"url", "SharedAccessKeyName":"sasKeyName", "SharedAccessKey":"sasKey" } }

GetPrivateDiagnosticsConfiguration ( string configurationPath, string storageAccountName, string storageKey, string endpoint ) : Hashtable
GetPublicDiagnosticsConfigurationFromFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : Hashtable
InitializeStorageAccountEndpoint ( string storageAccountName, string storageAccountKey, IStorageManagementClient storageClient, AzureStorageContext storageContext = null, string configurationPath = null, Microsoft.Azure.Common.Authentication.Models.AzureContext defaultContext = null ) : string

Initialize the storage account endpoint if it's not specified. We can get the value from multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one get from the storage account 3. The one get from PrivateConfig element in config file 4. The one get from current Azure Environment

InitializeStorageAccountKey ( IStorageManagementClient storageClient, string storageAccountName = null, string configurationPath = null ) : string

Initialize the storage account key if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one we try to resolve within current subscription 2. The one defined in PrivateConfig in the configuration file

InitializeStorageAccountName ( AzureStorageContext storageContext = null, string configurationPath = null ) : string

Initialize the storage account name if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one parsed from the diagnostics configuration file

비공개 메소드들

메소드 설명
AutoFillMetricsConfig ( Newtonsoft.Json.Linq.JObject wadCfgObject, string resourceId, Cmdlet cmdlet ) : void
CreateStorageContext ( Uri blobEndpoint, Uri queueEndpoint, Uri tableEndpoint, Uri fileEndpoint, string storageAccountName, string storageAccountKey ) : AzureStorageContext
GetEndpointFromStorageContext ( AzureStorageContext context ) : string
GetPublicConfigFromJsonFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : Hashtable
GetPublicConfigFromXmlFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : Hashtable
GetPublicConfigJObjectFromJsonFile ( string configurationPath ) : Newtonsoft.Json.Linq.JObject
GetPublicConfigXElementFromXmlFile ( string configurationPath ) : System.Xml.Linq.XElement
TryGetStorageAccount ( IStorageManagementClient storageClient, string storageAccountName, Microsoft.WindowsAzure.Management.Storage.Models.StorageAccount &storageAccount ) : bool

메소드 상세

AutoFillMetricsConfig() 공개 정적인 메소드

public static AutoFillMetricsConfig ( System.Xml.Linq.XElement wadCfgElement, string resourceId, Cmdlet cmdlet ) : void
wadCfgElement System.Xml.Linq.XElement
resourceId string
cmdlet Cmdlet
리턴 void

GetConfigFileType() 공개 정적인 메소드

public static GetConfigFileType ( string configurationPath ) : ConfigFileType
configurationPath string
리턴 ConfigFileType

GetConfigValueFromPrivateConfig() 공개 정적인 메소드

Get the private config value for a specific attribute. The private config looks like this: XML: JSON: "PrivateConfig":{ "storageAccountName":"name", "storageAccountKey":"key", "storageAccountEndPoint":"endpoint", "EventHub":{ "Url":"url", "SharedAccessKeyName":"sasKeyName", "SharedAccessKey":"sasKey" } }
public static GetConfigValueFromPrivateConfig ( string configurationPath, string elementName, string attributeName ) : string
configurationPath string The path to the configuration file
elementName string The element name of the private config. e.g., StorageAccount, EventHub
attributeName string The attribute name of the element
리턴 string

GetPrivateDiagnosticsConfiguration() 공개 정적인 메소드

public static GetPrivateDiagnosticsConfiguration ( string configurationPath, string storageAccountName, string storageKey, string endpoint ) : Hashtable
configurationPath string
storageAccountName string
storageKey string
endpoint string
리턴 System.Collections.Hashtable

GetPublicDiagnosticsConfigurationFromFile() 공개 정적인 메소드

public static GetPublicDiagnosticsConfigurationFromFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : Hashtable
configurationPath string
storageAccountName string
resourceId string
cmdlet Cmdlet
리턴 System.Collections.Hashtable

InitializeStorageAccountEndpoint() 공개 정적인 메소드

Initialize the storage account endpoint if it's not specified. We can get the value from multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one get from the storage account 3. The one get from PrivateConfig element in config file 4. The one get from current Azure Environment
public static InitializeStorageAccountEndpoint ( string storageAccountName, string storageAccountKey, IStorageManagementClient storageClient, AzureStorageContext storageContext = null, string configurationPath = null, Microsoft.Azure.Common.Authentication.Models.AzureContext defaultContext = null ) : string
storageAccountName string
storageAccountKey string
storageClient IStorageManagementClient
storageContext Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext
configurationPath string
defaultContext Microsoft.Azure.Common.Authentication.Models.AzureContext
리턴 string

InitializeStorageAccountKey() 공개 정적인 메소드

Initialize the storage account key if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one we try to resolve within current subscription 2. The one defined in PrivateConfig in the configuration file
public static InitializeStorageAccountKey ( IStorageManagementClient storageClient, string storageAccountName = null, string configurationPath = null ) : string
storageClient IStorageManagementClient
storageAccountName string
configurationPath string
리턴 string

InitializeStorageAccountName() 공개 정적인 메소드

Initialize the storage account name if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one parsed from the diagnostics configuration file
public static InitializeStorageAccountName ( AzureStorageContext storageContext = null, string configurationPath = null ) : string
storageContext Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext
configurationPath string
리턴 string

프로퍼티 상세

DiagnosticMonitorConfigurationElemStr 공개적으로 정적으로 프로퍼티

public static string DiagnosticMonitorConfigurationElemStr
리턴 string

DiagnosticsConfigurationElemStr 공개적으로 정적으로 프로퍼티

public static string DiagnosticsConfigurationElemStr
리턴 string

EventHubElemStr 공개적으로 정적으로 프로퍼티

public static string EventHubElemStr
리턴 string

EventHubSharedAccessKeyAttr 공개적으로 정적으로 프로퍼티

public static string EventHubSharedAccessKeyAttr
리턴 string

EventHubSharedAccessKeyNameAttr 공개적으로 정적으로 프로퍼티

public static string EventHubSharedAccessKeyNameAttr
리턴 string

EventHubUrlAttr 공개적으로 정적으로 프로퍼티

public static string EventHubUrlAttr
리턴 string

MetricsElemStr 공개적으로 정적으로 프로퍼티

public static string MetricsElemStr
리턴 string

MetricsResourceIdAttr 공개적으로 정적으로 프로퍼티

public static string MetricsResourceIdAttr
리턴 string

PrivConfEndpointAttr 공개적으로 정적으로 프로퍼티

public static string PrivConfEndpointAttr
리턴 string

PrivConfKeyAttr 공개적으로 정적으로 프로퍼티

public static string PrivConfKeyAttr
리턴 string

PrivConfNameAttr 공개적으로 정적으로 프로퍼티

public static string PrivConfNameAttr
리턴 string

PrivateConfigElemStr 공개적으로 정적으로 프로퍼티

public static string PrivateConfigElemStr
리턴 string

PublicConfigElemStr 공개적으로 정적으로 프로퍼티

public static string PublicConfigElemStr
리턴 string

StorageAccountElemStr 공개적으로 정적으로 프로퍼티

public static string StorageAccountElemStr
리턴 string

XmlNamespace 공개적으로 정적으로 프로퍼티

public static string XmlNamespace
리턴 string