public final class MetricsAdvisorKeyCredential extends Object
Constructor and Description |
---|
MetricsAdvisorKeyCredential(String subscriptionKey,
String apiKey)
Creates a MetricsAdvisorKeyCredential credential that authorizes request with the given keys.
|
Modifier and Type | Method and Description |
---|---|
MetricsAdvisorKeys |
getKeys()
Retrieves the
MetricsAdvisorKeys containing the subscription key and api key
associated with this credential. |
MetricsAdvisorKeyCredential |
updateKey(String subscriptionKey,
String apiKey)
Update the subscription and api key associated to this credential.
|
public MetricsAdvisorKeyCredential(String subscriptionKey, String apiKey)
subscriptionKey
- the subscription key used to authorize requestsapiKey
- the api key used to authorize requestspublic MetricsAdvisorKeys getKeys()
MetricsAdvisorKeys
containing the subscription key and api key
associated with this credential.MetricsAdvisorKeys
containing the subscription key and api key.public MetricsAdvisorKeyCredential updateKey(String subscriptionKey, String apiKey)
This is intended to be used when you've regenerated your subscription key and api key want to update long lived clients.
subscriptionKey
- The new subscription key to associated with this credential.apiKey
- The new api key to associated with this credential.MetricsAdvisorKeyCredential
object.Copyright © 2021 Microsoft Corporation. All rights reserved.