Condividi tramite


Components class

Classe che rappresenta un oggetto Components.

Costruttori

Components(ApplicationInsightsManagementClientContext)

Creare un componente.

Metodi

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Crea (o aggiorna) un componente di Application Insights. Nota: non è possibile specificare un valore diverso per InstrumentationKey o AppId nell'operazione Put.

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

Elimina un componente di Application Insights.

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

Restituisce un componente di Application Insights.

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

Ottenere lo stato per un'operazione di eliminazione in corso.

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

Ottiene un elenco di tutti i componenti di Application Insights all'interno di una sottoscrizione.

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

Ottiene un elenco di componenti di Application Insights all'interno di un gruppo di risorse.

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

Ottiene un elenco di componenti di Application Insights all'interno di un gruppo di risorse.

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

Ottiene un elenco di tutti i componenti di Application Insights all'interno di una sottoscrizione.

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

Elimina i dati in un componente di Application Insights da un set di filtri definiti dall'utente.

Per gestire le risorse di sistema, le richieste di eliminazione vengono limitate a 50 richieste all'ora. È consigliabile inviare in batch l'esecuzione delle richieste di eliminazione inviando un singolo comando il cui predicato include tutte le identità utente che richiedono l'eliminazione. Usare l'operatore in per specificare più identità. È consigliabile eseguire la query prima di usare per una richiesta di ripulitura per verificare che i risultati siano previsti.

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

Aggiorna i tag di un componente esistente. Per aggiornare altri campi, utilizzare il metodo CreateOrUpdate.

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

Dettagli costruttore

Components(ApplicationInsightsManagementClientContext)

Creare un componente.

new Components(client: ApplicationInsightsManagementClientContext)

Parametri

client
ApplicationInsightsManagementClientContext

Riferimento al client del servizio.

Dettagli metodo

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Crea (o aggiorna) un componente di Application Insights. Nota: non è possibile specificare un valore diverso per InstrumentationKey o AppId nell'operazione Put.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

insightProperties
ApplicationInsightsComponent

Proprietà che devono essere specificate per creare un componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsCreateOrUpdateResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

insightProperties
ApplicationInsightsComponent

Proprietà che devono essere specificate per creare un componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

insightProperties
ApplicationInsightsComponent

Proprietà che devono essere specificate per creare un componente di Application Insights.

deleteMethod(string, string, RequestOptionsBase)

Elimina un componente di Application Insights.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<RestResponse>

Prometti<msRest.RestResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

callback

ServiceCallback<void>

Callback

deleteMethod(string, string, ServiceCallback<void>)

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

callback

ServiceCallback<void>

Callback

get(string, string, RequestOptionsBase)

Restituisce un componente di Application Insights.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsGetResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

options
RequestOptionsBase

Parametri facoltativi

get(string, string, ServiceCallback<ApplicationInsightsComponent>)

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

getPurgeStatus(string, string, string, RequestOptionsBase)

Ottenere lo stato per un'operazione di eliminazione in corso.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

purgeId

string

In una richiesta di stato di eliminazione, si tratta dell'ID dell'operazione di cui viene restituito lo stato.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsGetPurgeStatusResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

purgeId

string

In una richiesta di stato di eliminazione, si tratta dell'ID dell'operazione di cui viene restituito lo stato.

options
RequestOptionsBase

Parametri facoltativi

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

purgeId

string

In una richiesta di stato di eliminazione, si tratta dell'ID dell'operazione di cui viene restituito lo stato.

list(RequestOptionsBase)

Ottiene un elenco di tutti i componenti di Application Insights all'interno di una sottoscrizione.

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

Parametri

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsListResponse>

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

options
RequestOptionsBase

Parametri facoltativi

list(ServiceCallback<ApplicationInsightsComponentListResult>)

function list(callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parametri

listByResourceGroup(string, RequestOptionsBase)

Ottiene un elenco di componenti di Application Insights all'interno di un gruppo di risorse.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

options
RequestOptionsBase

Parametri facoltativi

listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

listByResourceGroupNext(string, RequestOptionsBase)

Ottiene un elenco di componenti di Application Insights all'interno di un gruppo di risorse.

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

options
RequestOptionsBase

Parametri facoltativi

listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

listNext(string, RequestOptionsBase)

Ottiene un elenco di tutti i componenti di Application Insights all'interno di una sottoscrizione.

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

options
RequestOptionsBase

Parametri facoltativi

listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

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

Parametri

nextPageLink

string

NextLink della precedente chiamata riuscita all'operazione List.

purge(string, string, ComponentPurgeBody, RequestOptionsBase)

Elimina i dati in un componente di Application Insights da un set di filtri definiti dall'utente.

Per gestire le risorse di sistema, le richieste di eliminazione vengono limitate a 50 richieste all'ora. È consigliabile inviare in batch l'esecuzione delle richieste di eliminazione inviando un singolo comando il cui predicato include tutte le identità utente che richiedono l'eliminazione. Usare l'operatore in per specificare più identità. È consigliabile eseguire la query prima di usare per una richiesta di ripulitura per verificare che i risultati siano previsti.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

body
ComponentPurgeBody

Descrive il corpo di una richiesta di eliminazione dei dati in una singola tabella di un componente di Application Insights

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsPurgeResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

body
ComponentPurgeBody

Descrive il corpo di una richiesta di eliminazione dei dati in una singola tabella di un componente di Application Insights

options
RequestOptionsBase

Parametri facoltativi

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

body
ComponentPurgeBody

Descrive il corpo di una richiesta di eliminazione dei dati in una singola tabella di un componente di Application Insights

updateTags(string, string, TagsResource, RequestOptionsBase)

Aggiorna i tag di un componente esistente. Per aggiornare altri campi, utilizzare il metodo CreateOrUpdate.

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

componentTags
TagsResource

Aggiornamento delle informazioni sui tag da impostare nell'istanza del componente.

options
RequestOptionsBase

Parametri facoltativi

Restituisce

Promise<Models.ComponentsUpdateTagsResponse>

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

componentTags
TagsResource

Aggiornamento delle informazioni sui tag da impostare nell'istanza del componente.

options
RequestOptionsBase

Parametri facoltativi

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

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

Parametri

resourceGroupName

string

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

resourceName

string

Nome della risorsa componente di Application Insights.

componentTags
TagsResource

Aggiornamento delle informazioni sui tag da impostare nell'istanza del componente.