Partager via


Components class

Classe représentant un composant.

Constructeurs

Components(ApplicationInsightsManagementClientContext)

Créez un composant.

Méthodes

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Crée (ou met à jour) un composant Application Insights. Remarque : Vous ne pouvez pas spécifier une valeur différente pour InstrumentationKey ni AppId dans l’opération Put.

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)
deleteMethod(string, string, RequestOptionsBase)

Supprime un composant Application Insights.

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

Retourne un composant Application Insights.

get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
get(string, string, ServiceCallback<ApplicationInsightsComponent>)
getPurgeStatus(string, string, string, RequestOptionsBase)

Obtenir l’état d’une opération de vidage en cours.

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)
getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)
list(RequestOptionsBase)

Obtient la liste de tous les composants Application Insights au sein d’un abonnement.

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
list(ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, RequestOptionsBase)

Obtient une liste des composants Application Insights au sein d’un groupe de ressources.

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

Obtient une liste des composants Application Insights au sein d’un groupe de ressources.

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, RequestOptionsBase)

Obtient la liste de tous les composants Application Insights au sein d’un abonnement.

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
purge(string, string, ComponentPurgeBody, RequestOptionsBase)

Vide les données d’un composant Application Insights par un ensemble de filtres définis par l’utilisateur.

Pour gérer les ressources système, les demandes de vidage sont limitées à 50 requêtes par heure. Vous devez traiter par lot l’exécution des demandes de vidage en envoyant une seule commande dont le prédicat inclut toutes les identités utilisateur qui nécessitent une purge. Utilisez l’opérateur in pour spécifier plusieurs identités. Vous devez exécuter la requête avant d’utiliser une demande de vidage pour vérifier que les résultats sont attendus.

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)
purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)
updateTags(string, string, TagsResource, RequestOptionsBase)

Met à jour les balises d’un composant existant. Pour mettre à jour d’autres champs, utilisez la méthode CreateOrUpdate.

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

Détails du constructeur

Components(ApplicationInsightsManagementClientContext)

Créez un composant.

new Components(client: ApplicationInsightsManagementClientContext)

Paramètres

client
ApplicationInsightsManagementClientContext

Référence au client de service.

Détails de la méthode

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Crée (ou met à jour) un composant Application Insights. Remarque : Vous ne pouvez pas spécifier une valeur différente pour InstrumentationKey ni AppId dans l’opération Put.

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options?: RequestOptionsBase): Promise<ComponentsCreateOrUpdateResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

insightProperties
ApplicationInsightsComponent

Propriétés qui doivent être spécifiées pour créer un composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsCreateOrUpdateResponse>

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

insightProperties
ApplicationInsightsComponent

Propriétés qui doivent être spécifiées pour créer un composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

insightProperties
ApplicationInsightsComponent

Propriétés qui doivent être spécifiées pour créer un composant Application Insights.

deleteMethod(string, string, RequestOptionsBase)

Supprime un composant Application Insights.

function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<RestResponse>

Promesse<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<void>

Rappel

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

callback

ServiceCallback<void>

Rappel

get(string, string, RequestOptionsBase)

Retourne un composant Application Insights.

function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<ComponentsGetResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

options
RequestOptionsBase

Paramètres facultatifs

get(string, string, ServiceCallback<ApplicationInsightsComponent>)

function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

getPurgeStatus(string, string, string, RequestOptionsBase)

Obtenir l’état d’une opération de vidage en cours.

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: RequestOptionsBase): Promise<ComponentsGetPurgeStatusResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

purgeId

string

Dans une demande d’état de vidage, il s’agit de l’ID de l’opération dont l’état est retourné.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsGetPurgeStatusResponse>

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeStatusResponse>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

purgeId

string

Dans une demande d’état de vidage, il s’agit de l’ID de l’opération dont l’état est retourné.

options
RequestOptionsBase

Paramètres facultatifs

getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: ServiceCallback<ComponentPurgeStatusResponse>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

purgeId

string

Dans une demande d’état de vidage, il s’agit de l’ID de l’opération dont l’état est retourné.

list(RequestOptionsBase)

Obtient la liste de tous les composants Application Insights au sein d’un abonnement.

function list(options?: RequestOptionsBase): Promise<ComponentsListResponse>

Paramètres

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsListResponse>

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function list(options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

options
RequestOptionsBase

Paramètres facultatifs

list(ServiceCallback<ApplicationInsightsComponentListResult>)

function list(callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

listByResourceGroup(string, RequestOptionsBase)

Obtient une liste des composants Application Insights au sein d’un groupe de ressources.

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

options
RequestOptionsBase

Paramètres facultatifs

listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

listByResourceGroupNext(string, RequestOptionsBase)

Obtient une liste des composants Application Insights au sein d’un groupe de ressources.

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupNextResponse>

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
RequestOptionsBase

Paramètres facultatifs

listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

listNext(string, RequestOptionsBase)

Obtient la liste de tous les composants Application Insights au sein d’un abonnement.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListNextResponse>

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

options
RequestOptionsBase

Paramètres facultatifs

listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Paramètres

nextPageLink

string

NextLink de l’appel réussi précédent à l’opération De liste.

purge(string, string, ComponentPurgeBody, RequestOptionsBase)

Vide les données d’un composant Application Insights par un ensemble de filtres définis par l’utilisateur.

Pour gérer les ressources système, les demandes de vidage sont limitées à 50 requêtes par heure. Vous devez traiter par lot l’exécution des demandes de vidage en envoyant une seule commande dont le prédicat inclut toutes les identités utilisateur qui nécessitent une purge. Utilisez l’opérateur in pour spécifier plusieurs identités. Vous devez exécuter la requête avant d’utiliser une demande de vidage pour vérifier que les résultats sont attendus.

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options?: RequestOptionsBase): Promise<ComponentsPurgeResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

body
ComponentPurgeBody

Décrit le corps d’une demande de vidage des données dans une table unique d’un composant Application Insights

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsPurgeResponse>

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeResponse>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

body
ComponentPurgeBody

Décrit le corps d’une demande de vidage des données dans une table unique d’un composant Application Insights

options
RequestOptionsBase

Paramètres facultatifs

purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, callback: ServiceCallback<ComponentPurgeResponse>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

body
ComponentPurgeBody

Décrit le corps d’une demande de vidage des données dans une table unique d’un composant Application Insights

updateTags(string, string, TagsResource, RequestOptionsBase)

Met à jour les balises d’un composant existant. Pour mettre à jour d’autres champs, utilisez la méthode CreateOrUpdate.

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options?: RequestOptionsBase): Promise<ComponentsUpdateTagsResponse>

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

componentTags
TagsResource

Mise à jour des informations de balise à définir dans l’instance du composant.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ComponentsUpdateTagsResponse>

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

componentTags
TagsResource

Mise à jour des informations de balise à définir dans l’instance du composant.

options
RequestOptionsBase

Paramètres facultatifs

updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, callback: ServiceCallback<ApplicationInsightsComponent>)

Paramètres

resourceGroupName

string

Nom du groupe de ressources. Le nom ne respecte pas la casse.

resourceName

string

Nom de la ressource du composant Application Insights.

componentTags
TagsResource

Mise à jour des informations de balise à définir dans l’instance du composant.