laptop and a wrench

不具合

arcgis.gis.admin.Logs.query() method does not honor the time interval defined between start_time and end_time with the Datetime formats that are mentioned in the ArcGIS API for Python documentation or reference.

最後に公開された状態: October 11, 2022 ArcGIS API for Python
不具合 ID 番号 BUG-000149835
送信されましたJune 8, 2022
最終更新日June 5, 2024
適用対象ArcGIS API for Python
見つかったバージョン1.9.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスAs Designed

参考情報

The URL used to initialize a logs object must be initialized using the portaladmin URL. The logs object does not need to be initialized directly using the Logs class but instead is available as a logs property of the admin manager object. from arcgis.gis import GIS portal_connection = GIS("portal_url", "username", "password") logs = portal_connection.admin.logs Testing after initializing in this manner returned appropriate results when the input start_time and end_time arguments were either: * a DateTime object * a timestamp object with time (no milliseconds): ex "2022-06-06T16:56:26" * a floating object representing seconds: 1654548986.911

対処法

Use the second Python script sample with the Python Datetime object and portal timestamp without using milliseconds (YYYY-MM-DDTHH:MM:SS) as inputs for the 'start_time' and 'end_time' arguments.  

再現の手順

不具合 ID: BUG-000149835

ソフトウェア:

  • ArcGIS API for Python

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動