Files
azure-sdk-for-js/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetMonitoringDataSample.ts
c793e24c0a [AutoPR @azure-arm-datafactory]-generated-from-SDK Generation - JS-6218450 (#38319)
Configurations:
'specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/tspconfig.yaml',
API Version: 2018-06-01, SDK Release Type: beta, and CommitSHA:
'7abc832d6648172c6bc13657251521904db58762' in SpecRepo:
'https://github.com/Azure/azure-rest-api-specs' Pipeline run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6218450
Refer to
https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites
to prepare for SDK release.

---------

Co-authored-by: Jiao Di (MSFT) <[email protected]>
2026-04-29 10:57:21 +08:00

30 lines
1.1 KiB
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { DataFactoryManagementClient } from "@azure/arm-datafactory";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime.
*
* @summary get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime.
* x-ms-original-file: 2018-06-01/IntegrationRuntimes_GetMonitoringData.json
*/
async function integrationRuntimesGetMonitoringData(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "12345678-1234-1234-1234-123456789012";
const client = new DataFactoryManagementClient(credential, subscriptionId);
const result = await client.integrationRuntimes.getMonitoringData(
"exampleResourceGroup",
"exampleFactoryName",
"exampleIntegrationRuntime",
);
console.log(result);
}
async function main(): Promise<void> {
await integrationRuntimesGetMonitoringData();
}
main().catch(console.error);