|
POST
|
Happy Friday, @I_CU! Please take a look at this blog post and let me know if this answers your question.
... View more
01-19-2024
12:30 PM
|
1
|
1
|
1543
|
|
BLOG
|
Table of Contents Introduction ArcGIS Monitor 2023 collects and generates endless amounts of useful data. The software itself ships with a number of tools to help you make sense of all this data; Collections help you organize components into logical groupings and Analysis Views help you identify trends in the data. There may be times that you need to programmatically access the data so that you can extend ArcGIS Monitor in a custom way. To do so, you must first acquire an authentication token. In this article, I will demonstrate how to acquire an authentication token for ArcGIS Monitor using Postman. Postman is a tool that is popular in the web development world for testing and interacting with APIs. It allows you to define requests and organize them into collections. You can learn more about Postman here. After we have acquired an access token, I will demonstrate how to include the token in a request to ArcGIS Monitor to obtain data. Please note: The ArcGIS Monitor API is currently a beta feature and is not supported by Esri Support. Please use caution and thoroughly test these workflows in non-production environments first. Obtain an Access Token 1. In Postman, create a new Collection. 2. Create a new POST request inside the new Collection 3. In the URL textbox, type in the URL to the token generation endpoint. 4. Click Body, select raw, and choose JSON for content type. 5. The request body object should have two keys: username and password. Define a new JSON object and add these keys with their respective values: 6. Send the request! The response body will contain four keys but I only want to call out two of them right now: access_token: The token that will be used to authenticate future requests. expires_in: How long (in seconds) the token can be used before another needs to be generated. 7. Copy the value of access_token and paste it in your favorite text editor. Use the Access Token to Obtain Data In this section, we will walk through how to use the access token generated above to query ArcGIS Monitor for metrics data. 1. Follow steps 2 through 4 above to create a new request. When defining the URL in step 3, use the URL to the metrics data query endpoint instead: 2. Click Authorization and choose Bearer Token for type. For Token, paste the access token from step 7 above. 4. Click Body, select raw, and choose JSON for content type. 5. I am interested in the metrics data for a specific metric, so I will specify a where clause that targets a metric by it's ID: 6. Send the request! The body will contain a key called features which is an array of metrics data for the metric I specified. What Next? In this article, I demonstrate how to use a REST client (Postman) to get an access token for ArcGIS Monitor and how to use that token to obtain Monitor data. Manually obtaining this data via Postman might not be ideal, so please use these examples as guides that help you extend the ArcGIS Monitor application through scripting and other applications. Learn More ArcGIS Monitor ArcGIS Monitor Information Model ArcGIS Monitor on Esri Community Introduction to ArcGIS Monitor
... View more
01-19-2024
12:28 PM
|
6
|
17
|
7160
|
|
IDEA
|
@Slamon, ArcGIS Monitor 2023 allows you to register geodatabases for Monitor. One of the metrics that is reported is GDB State Lineages, which is what I think you are asking for here. If there is additional information regarding state lineages you would like to see reported, please let us know. Josh
... View more
01-19-2024
08:30 AM
|
0
|
0
|
779
|
|
IDEA
|
Hi @ChrisMathers1, ArcGIS Monitor 2023 allows you to build Analysis views which are custom reports, similar to what was available in SystemMonitor2. Josh
... View more
01-19-2024
08:19 AM
|
0
|
0
|
733
|
|
IDEA
|
Hi @Oiligriv, Can you explain in more details which metrics you would be interested in to determine the "status" of an ArcGIS Online service? For example, would you determine status by the HTTP code returned, request response time, etc? EDIT: @Maritime_GIS I see that you submitted a new idea that is very similar to this one, so I merged them. I am curious what your feedback is on the question I posed above, as well. Josh
... View more
01-19-2024
08:00 AM
|
0
|
0
|
2012
|
|
POST
|
Hello @I_CU, Thank you for your question. I will provide step by step instructions on how to generate an ArcGIS Monitor token and authenticate future requests by the end of the day Eastern tomorrow. Thanks, Josh
... View more
01-18-2024
07:52 AM
|
1
|
3
|
1599
|
|
POST
|
Hi @VarunKakkar, The error in your first screenshot is a bug having to do with working in browsers whose timezones are ahead of UTC time by a half hour interval. For example, India Standard Time is 5.5 hours ahead of UTC. I have reproduced and logged this as a defect in the dev team's backlog. To answer your second question, Incidents in Monitor 2023.3 automatically suppresses Monitoring and Alerting which makes the toggles irrelevant. Do you have a use case where you would like to define an Incident and still collect metrics data and/or alert on? Josh
... View more
01-12-2024
09:37 AM
|
1
|
0
|
1473
|
|
POST
|
@SteveMcCarthy, a couple questions: What version of Monitor is this? Can you share a screenshot what your alert rules look like for this particular metric? On the Alert Overview page (your second screenshot), click the three dots (...) and select "Edit alert rules". Josh
... View more
01-12-2024
09:29 AM
|
1
|
5
|
1884
|
|
IDEA
|
01-11-2024
09:52 AM
|
0
|
0
|
635
|
|
IDEA
|
01-11-2024
09:49 AM
|
0
|
0
|
1684
|
|
IDEA
|
Hi @JamesBratton, Thank you for taking the time to submit this idea. In Monitor 2023.3, you can use the Connectivity metrics to track the general availability of a component. Josh
... View more
01-11-2024
09:48 AM
|
0
|
0
|
1309
|
|
IDEA
|
Hi @JamesBratton, The reports feature has been superseded by Analysis views in Monitor 2023.x. Are there specific functionalities or KPIs you are interested in tracking that aren't possible to track now via Analysis views? Josh
... View more
01-11-2024
09:45 AM
|
0
|
0
|
3548
|
|
IDEA
|
01-11-2024
09:43 AM
|
0
|
0
|
1760
|
|
IDEA
|
Hi @René_Ténière , I wanted to touch base with you on this request. Monitor 2023.3 introduced Connectivity metrics that track whether a component is reachable by Monitor. Alert rules can now be set up on Windows host Connectivity metrics to notify when the host is unreachable. Does this cover the use case you outlined above? If not, can you provide more detail about what would accomplish this goal? Josh
... View more
01-10-2024
12:12 PM
|
0
|
0
|
1799
|
|
IDEA
|
Hi @DavidRunneals2, This is now possible in ArcGIS Monitor 2023.3. Please see the example below: Series shown: Series hidden: Best, Josh
... View more
01-10-2024
11:53 AM
|
0
|
0
|
1378
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-01-2025 05:40 AM | |
| 1 | 02-28-2025 07:11 AM | |
| 1 | 01-16-2025 05:35 AM | |
| 2 | 01-14-2025 06:48 AM | |
| 2 | 01-10-2025 08:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-13-2026
01:43 PM
|