MetricsAdvisorKeyCredential class
Credential used to authenticate and authorize with Metrics Advisor service
Constructors
Metrics |
Creates an instance of MetricsAdvisorKeyCredential |
Properties
api |
Get Api Key |
subscription |
Get Subscription key |
Methods
update |
Change the value of the subscription and/or api keys. Updates will take effect upon the next request after updating the key value. |
Constructor Details
MetricsAdvisorKeyCredential(string, string)
Creates an instance of MetricsAdvisorKeyCredential
new MetricsAdvisorKeyCredential(subscriptionKey: string, apiKey: string)
Parameters
- subscriptionKey
-
string
Subscription access key from the Azure portal
- apiKey
-
string
API key from the Metrics Advisor web portal
Property Details
apiKey
Get Api Key
string apiKey
Property Value
string
subscriptionKey
Get Subscription key
string subscriptionKey
Property Value
string
Method Details
updateKey(MetricsAdvisorKeys)
Change the value of the subscription and/or api keys.
Updates will take effect upon the next request after updating the key value.
function updateKey(metricAdvisorKeys: MetricsAdvisorKeys)
Parameters
- metricAdvisorKeys
- MetricsAdvisorKeys