note the cloud level operations need a cloud manager auth token not api manager.
Original Message:
Sent: Thu November 07, 2024 07:56 PM
From: Jimmy Perilla
Subject: analytics collection
Hi Chris.
Looking through the documentation, I found the following command:
apic -m analytics events:cloudList --analytics-service payment-initiation-x --<server api.apiconnect.cloud.ibm.com> --format=json
However, I'm getting an error for the requested format, but I've already tried alternatives like XML and Yaml but it still doesn't work. Do you know how I can fix this?
According to the documentation, it's in JSON format and for me it's perfect in that format, but it doesn't export it in any format.
------------------------------
Jimmy Perilla
Original Message:
Sent: Tue October 29, 2024 04:06 PM
From: Chris Dudley
Subject: analytics collection
Follow the docs https://www.ibm.com/docs/en/api-connect/10.0.8?topic=data-analytics-cli
Cli reference docs https://ibm-apiconnect.github.io/clidocs/docs/category/analytics-1
------------------------------
Chris Dudley
Original Message:
Sent: Tue October 29, 2024 03:41 PM
From: Jimmy Perilla
Subject: analytics collection
@Chris Dudley
Right now I'm interested in knowing if it's possible to obtain/download the analytics of an environment (for example, development, testing or production) using CLI console commands. If possible, I need to know the commands to be able to access and download the analytics. So far I have these commands.
1. I access the folder where I have the toolkit through the console
2. I run the "apic" command
3. I run the following command to log in to the server I need: apic login --server <desired server> --sso
4. context? provider
5. I enter the api key
This is as far as I've gotten. For example, I need to know how to download the analytics of a development or production environment.
------------------------------
Jimmy Perilla
Original Message:
Sent: Thu October 24, 2024 04:28 AM
From: Nick Cawood
Subject: analytics collection
Hi, you can either get the Analytics Service name from the Cloud Manager Topology UI or list it / them using the Cloud-Mgmt-API with this call:
https://apic-api.apiconnect.ibmcloud.com/v10/#/IBMAPIConnectPlatformCloudManagementAPI_200/operation/%2Forgs%2F{org}%2Favailability-zones%2F{availability-zone}%2Fanalytics-services/get
Be aware that you need a Cloud admin user to generate the Bearer Token needed to authorize this API call.
------------------------------
Nick Cawood
API Connect Consultant
IBM Expert Labs
IBM UK Ltd
https://www.linkedin.com/in/nickcawood/
Original Message:
Sent: Wed October 16, 2024 02:42 PM
From: Jimmy Perilla
Subject: analytics collection
analytics collection
Hi team.
I want to know something. Is it possible to access and obtain the analytics for a specific month using the toolkit and the command console?
I am currently reviewing the task of accessing the analytics using the toolkit command console. I have managed to access, enter the desired catalog, but I cannot find a way to bring the analytics. I found this command, but it has not worked for me apic analytics:get --provider <api-provider-name> --catalog <catalog-name> --metric <metric-name>
Has anyone managed to perform this task? Could you provide me with the commands used?
Thanks
------------------------------
Jimmy Perilla
------------------------------