diff --git a/docs/lts/api-ref/ALL_META.TXT.json b/docs/lts/api-ref/ALL_META.TXT.json index 05a66dc43..4b0cf2474 100644 --- a/docs/lts/api-ref/ALL_META.TXT.json +++ b/docs/lts/api-ref/ALL_META.TXT.json @@ -1,301 +1,1784 @@ [ { - "uri":"lts_02_0001.html", + "dockw":"API Reference" + }, + { + "uri":"lts_api_0000.html", + "node_id":"lts_api_0000.xml", "product_code":"lts", "code":"1", "des":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", "doc_type":"api", "kw":"API Description,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"API Description", "githuburl":"" }, { - "uri":"lts_02_0002.html", + "uri":"lts_api_0002.html", + "node_id":"lts_api_0002.xml", "product_code":"lts", "code":"2", + "des":"LTS extension APIs allow you to use the basic LTS functions. For example, you can query API versions, create, query, and delete log groups or log streams.Table 1 describe", + "doc_type":"api", + "kw":"API Overview,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"API Overview", + "githuburl":"" + }, + { + "uri":"lts_api_0003.html", + "node_id":"lts_api_0003.xml", + "product_code":"lts", + "code":"3", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Calling APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Calling APIs", + "githuburl":"" + }, + { + "uri":"lts_api_0004.html", + "node_id":"lts_api_0004.xml", + "product_code":"lts", + "code":"4", + "des":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "doc_type":"api", + "kw":"Making an API Request,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Making an API Request", + "githuburl":"" + }, + { + "uri":"lts_api_0005.html", + "node_id":"lts_api_0005.xml", + "product_code":"lts", + "code":"5", + "des":"You can use either of the following authentication methods when calling APIs:Token-based authentication: Requests are authenticated using a token.AK/SK-based authenticati", + "doc_type":"api", + "kw":"Authentication,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Authentication", + "githuburl":"" + }, + { + "uri":"lts_api_0007.html", + "node_id":"lts_api_0007.xml", + "product_code":"lts", + "code":"6", + "des":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "doc_type":"api", + "kw":"Response,Calling APIs,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Response", + "githuburl":"" + }, + { + "uri":"lts_api_0010.html", + "node_id":"lts_api_0010.xml", + "product_code":"lts", + "code":"7", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"APIs", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"APIs", + "githuburl":"" + }, + { + "uri":"lts_02_0002.html", + "node_id":"lts_02_0002.xml", + "product_code":"lts", + "code":"8", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Group Management (Old Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Log Group Management (Old Version)", "githuburl":"" }, { "uri":"lts_02_0003.html", + "node_id":"lts_02_0003.xml", "product_code":"lts", - "code":"3", + "code":"9", "des":"This API is used to create a log group. All API URLs described in this section must be case-sensitive.This function describes how to create a log group for log storage an", "doc_type":"api", "kw":"Creating a Log Group,Log Group Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Creating a Log Group", "githuburl":"" }, { "uri":"lts_02_0004.html", + "node_id":"lts_02_0004.xml", "product_code":"lts", - "code":"4", + "code":"10", "des":"This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/{", "doc_type":"api", "kw":"Querying a Log Group,Log Group Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Querying a Log Group", "githuburl":"" }, { "uri":"lts_02_0005.html", + "node_id":"lts_02_0005.xml", "product_code":"lts", - "code":"5", + "code":"11", "des":"This function describes how to delete a log group that will not be used.Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log grou", "doc_type":"api", "kw":"Deleting a Log Group,Log Group Management (Old Version),API Reference", - "title":"Deleting a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0011.html", - "product_code":"lts", - "code":"6", - "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "doc_type":"api", - "kw":"Log Group Management (New Version)", - "title":"Log Group Management (New Version)", - "githuburl":"" - }, - { - "uri":"lts_api_0012.html", - "product_code":"lts", - "code":"7", - "des":"This API is used to create a log group for log retention and query. You can create a maximum of 100 log groups.POST /v2/{project_id}/groupsURI parameterParameterMandatory", - "doc_type":"api", - "kw":"Creating a Log Group,Log Group Management (New Version),API Reference", - "title":"Creating a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0013.html", - "product_code":"lts", - "code":"8", - "des":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Status code: 200Status c", - "doc_type":"api", - "kw":"Querying All Log Groups of an Account,Log Group Management (New Version),API Reference", - "title":"Querying All Log Groups of an Account", - "githuburl":"" - }, - { - "uri":"lts_api_0024.html", - "product_code":"lts", - "code":"9", - "des":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", - "doc_type":"api", - "kw":"Modifying a Log Group,Log Group Management (New Version),API Reference", - "title":"Modifying a Log Group", - "githuburl":"" - }, - { - "uri":"lts_api_0014.html", - "product_code":"lts", - "code":"10", - "des":"This API is used to delete a specified log group. If the log streams in a log group have been associated with log transfer tasks, you need to delete the tasks first.DELET", - "doc_type":"api", - "kw":"Deleting a Log Group,Log Group Management (New Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Deleting a Log Group", "githuburl":"" }, { "uri":"lts_02_0006.html", + "node_id":"lts_02_0006.xml", "product_code":"lts", - "code":"11", + "code":"12", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Stream Management (Old Version)", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Log Stream Management (Old Version)", "githuburl":"" }, { "uri":"lts_02_0007.html", + "node_id":"lts_02_0007.xml", "product_code":"lts", - "code":"12", + "code":"13", "des":"This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.URI formatPOST /v2.0/{project_id}/log-gro", "doc_type":"api", "kw":"Creating a Log Stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Creating a Log Stream", "githuburl":"" }, { "uri":"lts_02_0008.html", + "node_id":"lts_02_0008.xml", "product_code":"lts", - "code":"13", + "code":"14", "des":"This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/", "doc_type":"api", "kw":"Querying a Log Stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Querying a Log Stream", "githuburl":"" }, { "uri":"lts_02_0009.html", + "node_id":"lts_02_0009.xml", "product_code":"lts", - "code":"14", + "code":"15", "des":"This function describes how to delete a log stream that will not be used.Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log s", "doc_type":"api", "kw":"Deleting a log stream,Log Stream Management (Old Version),API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Deleting a log stream", "githuburl":"" }, { - "uri":"lts_api_0015.html", + "uri":"lts_api_1015.html", + "node_id":"lts_api_1015.xml", "product_code":"lts", - "code":"15", + "code":"16", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Log Stream Management (New Version)", - "title":"Log Stream Management (New Version)", + "kw":"Host Group Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Host Group Management", "githuburl":"" }, { - "uri":"lts_api_0016.html", + "uri":"ListHost.html", + "node_id":"listhost.xml", "product_code":"lts", - "code":"16", + "code":"17", + "des":"Query the host list.POST /v3/{project_id}/lts/host-listStatus code: 200Status code: 400Status code: 500Hosts are sorted by filters specified in the request body. If no fi", + "doc_type":"api", + "kw":"Querying Host Information,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Host Information", + "githuburl":"" + }, + { + "uri":"ListHostGroup.html", + "node_id":"listhostgroup.xml", + "product_code":"lts", + "code":"18", + "des":"Query the host group list.POST /v3/{project_id}/lts/host-group-listStatus code: 200Status code: 400Status code: 500Host groups are sorted by filters specified in the requ", + "doc_type":"api", + "kw":"Querying Host Groups,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Host Groups", + "githuburl":"" + }, + { + "uri":"CreateHostGroup.html", + "node_id":"createhostgroup.xml", + "product_code":"lts", + "code":"19", + "des":"Create a host group.POST /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Create a host group. Parameters host_group_name and host_group_typ", + "doc_type":"api", + "kw":"Creating a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Host Group", + "githuburl":"" + }, + { + "uri":"DeleteHostGroup.html", + "node_id":"deletehostgroup.xml", + "product_code":"lts", + "code":"20", + "des":"Delete a host group.DELETE /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Delete one or multiple host groups at a time.Status code: 200Hos", + "doc_type":"api", + "kw":"Deleting a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Host Group", + "githuburl":"" + }, + { + "uri":"UpdateHostGroup.html", + "node_id":"updatehostgroup.xml", + "product_code":"lts", + "code":"21", + "des":"Modify a host group.PUT /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Update a host group. Parameter host_group_id is mandatory.Status co", + "doc_type":"api", + "kw":"Modifying a Host Group,Host Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Host Group", + "githuburl":"" + }, + { + "uri":"lts_api_0011.html", + "node_id":"lts_api_0011.xml", + "product_code":"lts", + "code":"22", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Group Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Group Management", + "githuburl":"" + }, + { + "uri":"CreateLogGroup.html", + "node_id":"createloggroup.xml", + "product_code":"lts", + "code":"23", + "des":"This API is used to create a log group.POST /v2/{project_id}/groupsStatus code: 201Status code: 400Status code: 401Status code: 403Status code: 500Status code: 503Creatin", + "doc_type":"api", + "kw":"Creating a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Group", + "githuburl":"" + }, + { + "uri":"ListLogGroups.html", + "node_id":"listloggroups.xml", + "product_code":"lts", + "code":"24", + "des":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Querying All Log Groups ", + "doc_type":"api", + "kw":"Querying All Log Groups of an Account,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying All Log Groups of an Account", + "githuburl":"" + }, + { + "uri":"DeleteLogGroup.html", + "node_id":"deleteloggroup.xml", + "product_code":"lts", + "code":"25", + "des":"This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.DELE", + "doc_type":"api", + "kw":"Deleting a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Log Group", + "githuburl":"" + }, + { + "uri":"UpdateLogGroup.html", + "node_id":"updateloggroup.xml", + "product_code":"lts", + "code":"26", + "des":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", + "doc_type":"api", + "kw":"Modifying a Log Group,Log Group Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Group", + "githuburl":"" + }, + { + "uri":"lts_api_0015.html", + "node_id":"lts_api_0015.xml", + "product_code":"lts", + "code":"27", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Stream Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Stream Management", + "githuburl":"" + }, + { + "uri":"CreateLogStream.html", + "node_id":"createlogstream.xml", + "product_code":"lts", + "code":"28", "des":"This API is used to create a log stream in a specified log group.POST /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 201Status code: 400Status code: 401Status", "doc_type":"api", - "kw":"Creating a Log Stream,Log Stream Management (New Version),API Reference", + "kw":"Creating a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Creating a Log Stream", "githuburl":"" }, { - "uri":"lts_api_0017.html", + "uri":"ListLogStream.html", + "node_id":"listlogstream.xml", "product_code":"lts", - "code":"17", + "code":"29", "des":"This API is used to query information about all log streams in a specified log group.GET /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 200Status code: 401Sta", "doc_type":"api", - "kw":"Querying All Log Streams in a Specified Log Group,Log Stream Management (New Version),API Reference", + "kw":"Querying All Log Streams in a Specified Log Group,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying All Log Streams in a Specified Log Group", "githuburl":"" }, { - "uri":"lts_api_0018.html", + "uri":"ListLogStreams.html", + "node_id":"listlogstreams.xml", "product_code":"lts", - "code":"18", - "des":"This API is used to delete a specified log stream from a specified log group. If a log transfer task has been associated with the log stream, delete the task first.DELETE", + "code":"30", + "des":"This API is used to query log streams.GET /v2/{project_id}/log-streamsStatus code: 200Status code: 400Status code: 500If you leave the request body empty, all log streams", "doc_type":"api", - "kw":"Deleting a Log Stream,Log Stream Management (New Version),API Reference", + "kw":"Querying Log Streams,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Log Streams", + "githuburl":"" + }, + { + "uri":"DeleteLogStream.html", + "node_id":"deletelogstream.xml", + "product_code":"lts", + "code":"31", + "des":"This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the", + "doc_type":"api", + "kw":"Deleting a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Deleting a Log Stream", "githuburl":"" }, { - "uri":"lts_api_0029.html", + "uri":"UpdateLogStream.html", + "node_id":"updatelogstream.xml", "product_code":"lts", - "code":"19", + "code":"32", + "des":"This API is used to modify the log retention duration of a specified log stream.PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}Status code: 200Stat", + "doc_type":"api", + "kw":"Modifying a Log Stream,Log Stream Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Stream", + "githuburl":"" + }, + { + "uri":"topic_300000003.html", + "node_id":"topic_300000003.xml", + "product_code":"lts", + "code":"33", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Log Management", "githuburl":"" }, { - "uri":"lts_api_0028.html", + "uri":"Deletefavorite.html", + "node_id":"deletefavorite.xml", "product_code":"lts", - "code":"20", + "code":"34", + "des":"This API is used to remove a specified resource from favorites.DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}Status code: 200Status code: 400Status code: 500Removing", + "doc_type":"api", + "kw":"Removing a Resource from Favorites,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Removing a Resource from Favorites", + "githuburl":"" + }, + { + "uri":"ListTopnTrafficStatistics.html", + "node_id":"listtopntrafficstatistics.xml", + "product_code":"lts", + "code":"35", + "des":"This API is used to collect traffic statistics on top n log groups or log streams.POST /v2/{project_id}/lts/topn-traffic-statisticsStatus code: 200Status code: 400Status ", + "doc_type":"api", + "kw":"Collecting Traffic Statistics on Top N Log Groups or Log Streams,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Collecting Traffic Statistics on Top N Log Groups or Log Streams", + "githuburl":"" + }, + { + "uri":"ListLogHistogram.html", + "node_id":"listloghistogram.xml", + "product_code":"lts", + "code":"36", + "des":"This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of ", + "doc_type":"api", + "kw":"Querying the Log Histogram,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Log Histogram", + "githuburl":"" + }, + { + "uri":"Createfavorite.html", + "node_id":"createfavorite.xml", + "product_code":"lts", + "code":"37", + "des":"This API is used to add a log to favorites.POST /v1.0/{project_id}/lts/favoriteStatus code: 201Status code: 400Status code: 500Adding a Log to FavoritesStatus code: 201A ", + "doc_type":"api", + "kw":"Adding a Log to Favorites,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Adding a Log to Favorites", + "githuburl":"" + }, + { + "uri":"ListTimeLineTrafficStatistics.html", + "node_id":"listtimelinetrafficstatistics.xml", + "product_code":"lts", + "code":"38", + "des":"This API is used to query resources by time segment.POST /v2/{project_id}/lts/timeline-traffic-statisticsStatus code: 200Status code: 400Status code: 500Querying Resource", + "doc_type":"api", + "kw":"Querying Resources by Time Segment,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Resources by Time Segment", + "githuburl":"" + }, + { + "uri":"ListLogs.html", + "node_id":"listlogs.xml", + "product_code":"lts", + "code":"39", "des":"This API is used to query logs in a specified log stream.POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/queryStatus code: 200Status code: 400", "doc_type":"api", "kw":"Querying Logs,Log Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying Logs", "githuburl":"" }, { - "uri":"lts_api_0026.html", + "uri":"topic_300000004.html", + "node_id":"topic_300000004.xml", "product_code":"lts", - "code":"21", + "code":"40", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Log Ingestion", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Ingestion", + "githuburl":"" + }, + { + "uri":"CreateAgencyAccess.html", + "node_id":"createagencyaccess.xml", + "product_code":"lts", + "code":"41", + "des":"This API is used to create a cross-account log ingestion configuration.POST /v2.0/{project_id}/lts/createAgencyAccessStatus code: 201Status code: 400Status code: 500Creat", + "doc_type":"api", + "kw":"Creating a Cross-Account Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Cross-Account Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"ListAccessConfig.html", + "node_id":"listaccessconfig.xml", + "product_code":"lts", + "code":"42", + "des":"This API is used to query log ingestion configurations in LTS.POST /v3/{project_id}/lts/access-config-listStatus code: 200Status code: 400Status code: 500Log ingestion co", + "doc_type":"api", + "kw":"Querying Log Ingestion Configurations,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Log Ingestion Configurations", + "githuburl":"" + }, + { + "uri":"CreateAccessConfig.html", + "node_id":"createaccessconfig.xml", + "product_code":"lts", + "code":"43", + "des":"This API is used to create a log ingestion configuration.POST /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Creating a log ingestion c", + "doc_type":"api", + "kw":"Creating a Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"DeleteAccessConfig.html", + "node_id":"deleteaccessconfig.xml", + "product_code":"lts", + "code":"44", + "des":"This API is used to delete log ingestion configurations.DELETE /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Deleting Log Ingestion Co", + "doc_type":"api", + "kw":"Deleting Log Ingestion Configurations,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting Log Ingestion Configurations", + "githuburl":"" + }, + { + "uri":"UpdateAccessConfig.html", + "node_id":"updateaccessconfig.xml", + "product_code":"lts", + "code":"45", + "des":"This API is usde to modify a log ingestion configuration.PUT /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Modifying a Log Ingestion C", + "doc_type":"api", + "kw":"Modifying a Log Ingestion Configuration,Log Ingestion,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Log Ingestion Configuration", + "githuburl":"" + }, + { + "uri":"topic_300000005.html", + "node_id":"topic_300000005.xml", + "product_code":"lts", + "code":"46", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Log Transfer", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Log Transfer", "githuburl":"" }, { - "uri":"lts_api_0027.html", + "uri":"lts_api_0029.html", + "node_id":"lts_api_0029.xml", "product_code":"lts", - "code":"22", + "code":"47", "des":"This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).POST /v2/{project_id}/log-dump/obsStatus code: 201Status code: 400S", "doc_type":"api", - "kw":"Creating a Log Transfer Task,Log Transfer,API Reference", - "title":"Creating a Log Transfer Task", + "kw":"Creating a Log Transfer Task (Old Version),Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Transfer Task (Old Version)", "githuburl":"" }, { - "uri":"lts_api_0030.html", - "product_code":"", - "code":"23", + "uri":"CreateTransfer.html", + "node_id":"createtransfer.xml", + "product_code":"lts", + "code":"48", + "des":"This API is used to create an OBS transfer task.POST /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Transferring logs to OBSStatus code: 200The", + "doc_type":"api", + "kw":"Creating a Log Transfer Task (New Version),Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Log Transfer Task (New Version)", + "githuburl":"" + }, + { + "uri":"DeleteTransfer.html", + "node_id":"deletetransfer.xml", + "product_code":"lts", + "code":"49", "des":"This API is used to delete an OBS transfer task.DELETE /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Deleting a log transfer task based on the", - "doc_type":"", + "doc_type":"api", "kw":"Deleting a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Deleting a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_api_0031.html", - "product_code":"", - "code":"24", - "des":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskPUT https://{en", - "doc_type":"", + "uri":"UpdateTransfer.html", + "node_id":"updatetransfer.xml", + "product_code":"lts", + "code":"50", + "des":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskStatus code: 20", + "doc_type":"api", "kw":"Updating a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Updating a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_api_0032.html", - "product_code":"", - "code":"25", - "des":"This API is used to query an OBS transfer task.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfe", - "doc_type":"", + "uri":"ListTransfers.html", + "node_id":"listtransfers.xml", + "product_code":"lts", + "code":"51", + "des":"This API is used to query OBS transfer tasks.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfer ", + "doc_type":"api", "kw":"Querying a Log Transfer Task,Log Transfer,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], "title":"Querying a Log Transfer Task", "githuburl":"" }, { - "uri":"lts_02_0019.html", + "uri":"topic_300000006.html", + "node_id":"topic_300000006.xml", "product_code":"lts", - "code":"26", + "code":"52", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", - "kw":"Public Parameters", - "title":"Public Parameters", + "kw":"Log Collection Beyond Free Quota", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Log Collection Beyond Free Quota", "githuburl":"" }, { - "uri":"lts_02_0020.html", + "uri":"DisableLogCollection.html", + "node_id":"disablelogcollection.xml", "product_code":"lts", - "code":"27", - "des":"Table 1 lists the status code.", + "code":"53", + "des":"This API is used to configure log collection to stop when the free quota runs out.POST /v2/{project_id}/collection/disableStatus code: 403Status code: 500Disabling log co", "doc_type":"api", - "kw":"Status Code,Public Parameters,API Reference", - "title":"Status Code", + "kw":"Disabling Log Collection Beyond Free Quota,Log Collection Beyond Free Quota,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Disabling Log Collection Beyond Free Quota", "githuburl":"" }, { - "uri":"lts_02_0021.html", + "uri":"EnableLogCollection.html", + "node_id":"enablelogcollection.xml", "product_code":"lts", - "code":"28", - "des":"This section explains the meanings of error code responses returned by LTS APIs.{\"error_msg\":\"Current user is not authenticated correctly, check your token.\",\"error_code\"", + "code":"54", + "des":"This API is used to configure log collection to continue when the free quota runs out.POST /v2/{project_id}/collection/enableStatus code: 403Status code: 500Enabling log ", "doc_type":"api", - "kw":"Error Code,Public Parameters,API Reference", - "title":"Error Code", + "kw":"Enabling Log Collection Beyond Free Quota,Log Collection Beyond Free Quota,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Enabling Log Collection Beyond Free Quota", + "githuburl":"" + }, + { + "uri":"topic_300000007.html", + "node_id":"topic_300000007.xml", + "product_code":"lts", + "code":"55", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Cloud Structuring", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Cloud Structuring", + "githuburl":"" + }, + { + "uri":"CreateStructConfig.html", + "node_id":"createstructconfig.xml", + "product_code":"lts", + "code":"56", + "des":"This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.A user c", + "doc_type":"api", + "kw":"Creating Structuring Configurations (Recommended),Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating Structuring Configurations (Recommended)", + "githuburl":"" + }, + { + "uri":"UpdateStructConfig.html", + "node_id":"updatestructconfig.xml", + "product_code":"lts", + "code":"57", + "des":"This API is used to modify structuring configurations using a structuring template.PUT /v3/{project_id}/lts/struct/templateStatus code: 201Status code: 400Status code: 50", + "doc_type":"api", + "kw":"Modifying Structuring Configurations (Recommended),Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying Structuring Configurations (Recommended)", + "githuburl":"" + }, + { + "uri":"lts_api_0044.html", + "node_id":"lts_api_0044.xml", + "product_code":"lts", + "code":"58", + "des":"This API is used to delete a structuring rule of a log stream.DELETE /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status code: 403S", + "doc_type":"api", + "kw":"Deleting a Structuring Rule,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Structuring Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0041.html", + "node_id":"lts_api_0041.xml", + "product_code":"lts", + "code":"59", + "des":"This API is used to query the structuring rule of a specified log stream.GET /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status co", + "doc_type":"api", + "kw":"Querying a Structuring Rule,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Structuring Rule", + "githuburl":"" + }, + { + "uri":"ListBreifStructTemplate.html", + "node_id":"listbreifstructtemplate.xml", + "product_code":"lts", + "code":"60", + "des":"This API is used to query the brief list of structuring templates.GET /v3/{project_id}/lts/struct/customtemplate/listStatus code: 200Status code: 400Status code: 500Obtai", + "doc_type":"api", + "kw":"Querying the Brief List of Structuring Templates,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Brief List of Structuring Templates", + "githuburl":"" + }, + { + "uri":"ListStructTemplate.html", + "node_id":"liststructtemplate.xml", + "product_code":"lts", + "code":"61", + "des":"This API is used to query a structuring template.Note:A user can call this API for up to 50 times per second.GET /v3/{project_id}/lts/struct/customtemplateStatus code: 20", + "doc_type":"api", + "kw":"Querying a Structuring Template,Cloud Structuring,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Structuring Template", + "githuburl":"" + }, + { + "uri":"topic_300000008.html", + "node_id":"topic_300000008.xml", + "product_code":"lts", + "code":"62", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Alarm Topics", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Alarm Topics", + "githuburl":"" + }, + { + "uri":"lts_api_0061.html", + "node_id":"lts_api_0061.xml", + "product_code":"lts", + "code":"63", + "des":"This API is used to query an SMN topic.GET /v2/{project_id}/lts/notifications/topicsStatus code: 200Status code: 400Status code: 500Querying an SMN topicStatus code: 200T", + "doc_type":"api", + "kw":"Querying an SMN Topic,Alarm Topics,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying an SMN Topic", + "githuburl":"" + }, + { + "uri":"topic_300000009.html", + "node_id":"topic_300000009.xml", + "product_code":"lts", + "code":"64", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Message Template Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Message Template Management", + "githuburl":"" + }, + { + "uri":"CreateNotificationTemplate.html", + "node_id":"createnotificationtemplate.xml", + "product_code":"lts", + "code":"65", + "des":"This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, ", + "doc_type":"api", + "kw":"Creating a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Message Template", + "githuburl":"" + }, + { + "uri":"UpdateNotificationTemplate.html", + "node_id":"updatenotificationtemplate.xml", + "product_code":"lts", + "code":"66", + "des":"This API is used to modify a notification template base on its name.PUT /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 201Status code: 400Stat", + "doc_type":"api", + "kw":"Modifying a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Message Template", + "githuburl":"" + }, + { + "uri":"ListNotificationTemplates.html", + "node_id":"listnotificationtemplates.xml", + "product_code":"lts", + "code":"67", + "des":"This API is used to query the message template list.GET /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 200Status code: 500Querying a message t", + "doc_type":"api", + "kw":"Querying Message Templates,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying Message Templates", + "githuburl":"" + }, + { + "uri":"DeleteNotificationTemplate.html", + "node_id":"deletenotificationtemplate.xml", + "product_code":"lts", + "code":"68", + "des":"This API is used to delete a notification template.DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 400Status code: 500Deleting a message", + "doc_type":"api", + "kw":"Deleting a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Message Template", + "githuburl":"" + }, + { + "uri":"ShowNotificationTemplate.html", + "node_id":"shownotificationtemplate.xml", + "product_code":"lts", + "code":"69", + "des":"This API is used to query a notification template.GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}Status code: 200Status code: 401Status ", + "doc_type":"api", + "kw":"Querying a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Message Template", + "githuburl":"" + }, + { + "uri":"ListNotificationTemplate.html", + "node_id":"listnotificationtemplate.xml", + "product_code":"lts", + "code":"70", + "des":"This API is used to preview the email format of a notification template.POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/viewStatus code: 200Status cod", + "doc_type":"api", + "kw":"Previewing the Email Format of a Message Template,Message Template Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Previewing the Email Format of a Message Template", + "githuburl":"" + }, + { + "uri":"topic_300000010.html", + "node_id":"topic_300000010.xml", + "product_code":"lts", + "code":"71", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Keyword Alarm Rules", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Keyword Alarm Rules", + "githuburl":"" + }, + { + "uri":"lts_api_0081.html", + "node_id":"lts_api_0081.xml", + "product_code":"lts", + "code":"72", + "des":"This API is used to create a keyword alarm. Currently, each account can create a maximum of 200 keyword alarms and SQL alarms.POST /v2/{project_id}/lts/alarms/keywords-al", + "doc_type":"api", + "kw":"Creating a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Creating a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0082.html", + "node_id":"lts_api_0082.xml", + "product_code":"lts", + "code":"73", + "des":"This API is used to modify a keyword alarm.PUT /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 400Status code: 500Modifying a keyword alarm ru", + "doc_type":"api", + "kw":"Modifying a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Modifying a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0083.html", + "node_id":"lts_api_0083.xml", + "product_code":"lts", + "code":"74", + "des":"This API is used to query a keyword alarm.GET /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 500Querying a keyword alarm ruleStatus code: 200", + "doc_type":"api", + "kw":"Querying a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"lts_api_0084.html", + "node_id":"lts_api_0084.xml", + "product_code":"lts", + "code":"75", + "des":"This API is used to delete a keyword alarm.DELETE /v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}Status code: 400Status code: 500Deleting a keywo", + "doc_type":"api", + "kw":"Deleting a Keyword Alarm Rule,Keyword Alarm Rules,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Keyword Alarm Rule", + "githuburl":"" + }, + { + "uri":"topic_300000011.html", + "node_id":"topic_300000011.xml", + "product_code":"lts", + "code":"76", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Alarm List", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Alarm List", + "githuburl":"" + }, + { + "uri":"lts_api_0091.html", + "node_id":"lts_api_0091.xml", + "product_code":"lts", + "code":"77", + "des":"This API is used to query the alarm list.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/queryStatus code: 200Status code: 400Status code: 500Querying the active o", + "doc_type":"api", + "kw":"Querying the Active or Historical Alarm List,Alarm List,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying the Active or Historical Alarm List", + "githuburl":"" + }, + { + "uri":"lts_api_0092.html", + "node_id":"lts_api_0092.xml", + "product_code":"lts", + "code":"78", + "des":"This API is used to delete an active alarm.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clearNoneDeleting an active alarm by alarm IDNoneSee Error Codes.", + "doc_type":"api", + "kw":"Deleting an Active Alarm,Alarm List,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting an Active Alarm", + "githuburl":"" + }, + { + "uri":"topic_300000012.html", + "node_id":"topic_300000012.xml", + "product_code":"lts", + "code":"79", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Tag Management", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"CreateTags.html", + "node_id":"createtags.xml", + "product_code":"lts", + "code":"80", + "des":"This API is used to tag a resource.POST /v1/{project_id}/{resource_type}/{resource_id}/tags/actionStatus code: 200Status code: 201Status code: 400Status code: 500Creating", + "doc_type":"api", + "kw":"Tag Management,Tag Management,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Tag Management", + "githuburl":"" + }, + { + "uri":"topic_300000013.html", + "node_id":"topic_300000013.xml", + "product_code":"lts", + "code":"81", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Quick Search", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Quick Search", + "githuburl":"" + }, + { + "uri":"CreateSearchCriterias.html", + "node_id":"createsearchcriterias.xml", + "product_code":"lts", + "code":"82", + "des":"Adding a Quick SearchPOST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 201Status code: 400Status code: 500Adding a Quick SearchStat", + "doc_type":"api", + "kw":"Adding a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Adding a Quick Search", + "githuburl":"" + }, + { + "uri":"ListCriterias.html", + "node_id":"listcriterias.xml", + "product_code":"lts", + "code":"83", + "des":"This API is used to obtain quick search.GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Obtaini", + "doc_type":"api", + "kw":"Obtaining a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Obtaining a Quick Search", + "githuburl":"" + }, + { + "uri":"DeleteSearchCriterias.html", + "node_id":"deletesearchcriterias.xml", + "product_code":"lts", + "code":"84", + "des":"This API is used to delete a quick search.DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 400Status code: 500Deleting a quick s", + "doc_type":"api", + "kw":"Deleting a Quick Search,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Deleting a Quick Search", + "githuburl":"" + }, + { + "uri":"ListQueryAllSearchCriterias.html", + "node_id":"listqueryallsearchcriterias.xml", + "product_code":"lts", + "code":"85", + "des":"This API is used to query all quick searches in a log group.GET /v1.0/{project_id}/lts/groups/{group_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Q", + "doc_type":"api", + "kw":"Querying All Quick Searches in a Log Group,Quick Search,API Reference", + "search_title":"", + "metedata":[ + { + "prodname":"lts", + "documenttype":"api", + "opensource":"true", + "operation_id":"ListHost;ListHostGroup;CreateHostGroup;DeleteHostGroup;UpdateHostGroup;CreateLogGroup;ListLogGroups;DeleteLogGroup;UpdateLogGroup;CreateLogStream;ListLogStream;ListLogStreams;DeleteLogStream;UpdateLogStream;CreateLogStreamIndex;Deletefavorite;ListTopnTrafficStatistics;ListLogHistogram;Createfavorite;ListTimeLineTrafficStatistics;ListLogs;CreateAgencyAccess;ListAccessConfig;CreateAccessConfig;DeleteAccessConfig;UpdateAccessConfig;CreateLogDumpObs;CreateTransfer;DeleteTransfer;UpdateTransfer;ListTransfers;DisableLogCollection;EnableLogCollection;CreateStructConfig;UpdateStructConfig;DeleteStructTemplate;ShowStructTemplate;ListBreifStructTemplate;ListStructTemplate;ListNotificationTopics;CreateNotificationTemplate;UpdateNotificationTemplate;ListNotificationTemplates;DeleteNotificationTemplate;ShowNotificationTemplate;ListNotificationTemplate;CreateKeywordsAlarmRule;UpdateKeywordsAlarmRule;ListKeywordsAlarmRules;DeleteKeywordsAlarmRule;ListActiveOrHistoryAlarms;DeleteActiveAlarms;CreateTags;CreateSearchCriterias;ListCriterias;DeleteSearchCriterias;ListQueryAllSearchCriterias" + } + ], + "title":"Querying All Quick Searches in a Log Group", + "githuburl":"" + }, + { + "uri":"lts_api_0019.html", + "node_id":"lts_api_0019.xml", + "product_code":"lts", + "code":"86", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Appendix", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Appendix", + "githuburl":"" + }, + { + "uri":"lts_api_0020.html", + "node_id":"lts_api_0020.xml", + "product_code":"lts", + "code":"87", + "des":"Table 1 lists the status codes.", + "doc_type":"api", + "kw":"Status Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Status Codes", + "githuburl":"" + }, + { + "uri":"ErrorCode.html", + "node_id":"errorcode_1.xml", + "product_code":"lts", + "code":"88", + "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "doc_type":"api", + "kw":"Error Codes,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Error Codes", "githuburl":"" }, { "uri":"lts_api_0006.html", + "node_id":"lts_api_0006.xml", "product_code":"lts", - "code":"29", - "des":"Account and project IDs are required in URLs when you call some APIs.Obtain the IDs from the console.Log in to the LTS console.On the Log Management page, obtain the log ", + "code":"89", + "des":"Account and project IDs are required in URLs when you call some APIs.Log in to the management console.Hover the mouse pointer over the username and choose My Credentials ", "doc_type":"api", - "kw":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID,Public Parameters,API Reference", - "title":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID", + "kw":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID,Appendix,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], + "title":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID", "githuburl":"" }, { - "uri":"lts_02_0014.html", + "uri":"lts_api_0023.html", + "node_id":"lts_api_0023.xml", "product_code":"lts", - "code":"30", + "code":"90", "des":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "doc_type":"api", "kw":"Change History,API Reference", + "search_title":"", + "metedata":[ + { + "documenttype":"api", + "prodname":"lts", + "opensource":"true" + } + ], "title":"Change History", "githuburl":"" } diff --git a/docs/lts/api-ref/CLASS.TXT.json b/docs/lts/api-ref/CLASS.TXT.json index 8e491cbcc..5306a0ae0 100644 --- a/docs/lts/api-ref/CLASS.TXT.json +++ b/docs/lts/api-ref/CLASS.TXT.json @@ -3,19 +3,73 @@ "desc":"Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform ", "product_code":"lts", "title":"API Description", - "uri":"lts_02_0001.html", + "uri":"lts_api_0000.html", "doc_type":"api", "p_code":"", "code":"1" }, + { + "desc":"LTS extension APIs allow you to use the basic LTS functions. For example, you can query API versions, create, query, and delete log groups or log streams.Table 1 describe", + "product_code":"lts", + "title":"API Overview", + "uri":"lts_api_0002.html", + "doc_type":"api", + "p_code":"", + "code":"2" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Calling APIs", + "uri":"lts_api_0003.html", + "doc_type":"api", + "p_code":"", + "code":"3" + }, + { + "desc":"This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained ", + "product_code":"lts", + "title":"Making an API Request", + "uri":"lts_api_0004.html", + "doc_type":"api", + "p_code":"3", + "code":"4" + }, + { + "desc":"You can use either of the following authentication methods when calling APIs:Token-based authentication: Requests are authenticated using a token.AK/SK-based authenticati", + "product_code":"lts", + "title":"Authentication", + "uri":"lts_api_0005.html", + "doc_type":"api", + "p_code":"3", + "code":"5" + }, + { + "desc":"After sending a request, you will receive a response, including a status code, response header, and response body.A status code is a group of digits, ranging from 1xx to ", + "product_code":"lts", + "title":"Response", + "uri":"lts_api_0007.html", + "doc_type":"api", + "p_code":"3", + "code":"6" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"APIs", + "uri":"lts_api_0010.html", + "doc_type":"api", + "p_code":"", + "code":"7" + }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Group Management (Old Version)", "uri":"lts_02_0002.html", "doc_type":"api", - "p_code":"", - "code":"2" + "p_code":"7", + "code":"8" }, { "desc":"This API is used to create a log group. All API URLs described in this section must be case-sensitive.This function describes how to create a log group for log storage an", @@ -23,8 +77,8 @@ "title":"Creating a Log Group", "uri":"lts_02_0003.html", "doc_type":"api", - "p_code":"2", - "code":"3" + "p_code":"8", + "code":"9" }, { "desc":"This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/{", @@ -32,8 +86,8 @@ "title":"Querying a Log Group", "uri":"lts_02_0004.html", "doc_type":"api", - "p_code":"2", - "code":"4" + "p_code":"8", + "code":"10" }, { "desc":"This function describes how to delete a log group that will not be used.Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log grou", @@ -41,53 +95,8 @@ "title":"Deleting a Log Group", "uri":"lts_02_0005.html", "doc_type":"api", - "p_code":"2", - "code":"5" - }, - { - "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", - "product_code":"lts", - "title":"Log Group Management (New Version)", - "uri":"lts_api_0011.html", - "doc_type":"api", - "p_code":"", - "code":"6" - }, - { - "desc":"This API is used to create a log group for log retention and query. You can create a maximum of 100 log groups.POST /v2/{project_id}/groupsURI parameterParameterMandatory", - "product_code":"lts", - "title":"Creating a Log Group", - "uri":"lts_api_0012.html", - "doc_type":"api", - "p_code":"6", - "code":"7" - }, - { - "desc":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Status code: 200Status c", - "product_code":"lts", - "title":"Querying All Log Groups of an Account", - "uri":"lts_api_0013.html", - "doc_type":"api", - "p_code":"6", - "code":"8" - }, - { - "desc":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", - "product_code":"lts", - "title":"Modifying a Log Group", - "uri":"lts_api_0024.html", - "doc_type":"api", - "p_code":"6", - "code":"9" - }, - { - "desc":"This API is used to delete a specified log group. If the log streams in a log group have been associated with log transfer tasks, you need to delete the tasks first.DELET", - "product_code":"lts", - "title":"Deleting a Log Group", - "uri":"lts_api_0014.html", - "doc_type":"api", - "p_code":"6", - "code":"10" + "p_code":"8", + "code":"11" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", @@ -95,8 +104,8 @@ "title":"Log Stream Management (Old Version)", "uri":"lts_02_0006.html", "doc_type":"api", - "p_code":"", - "code":"11" + "p_code":"7", + "code":"12" }, { "desc":"This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.URI formatPOST /v2.0/{project_id}/log-gro", @@ -104,8 +113,8 @@ "title":"Creating a Log Stream", "uri":"lts_02_0007.html", "doc_type":"api", - "p_code":"11", - "code":"12" + "p_code":"12", + "code":"13" }, { "desc":"This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.URI formatGET /v2.0/{project_id}/log-groups/", @@ -113,8 +122,8 @@ "title":"Querying a Log Stream", "uri":"lts_02_0008.html", "doc_type":"api", - "p_code":"11", - "code":"13" + "p_code":"12", + "code":"14" }, { "desc":"This function describes how to delete a log stream that will not be used.Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log s", @@ -122,151 +131,682 @@ "title":"Deleting a log stream", "uri":"lts_02_0009.html", "doc_type":"api", - "p_code":"11", - "code":"14" + "p_code":"12", + "code":"15" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Log Stream Management (New Version)", + "title":"Host Group Management", + "uri":"lts_api_1015.html", + "doc_type":"api", + "p_code":"7", + "code":"16" + }, + { + "desc":"Query the host list.POST /v3/{project_id}/lts/host-listStatus code: 200Status code: 400Status code: 500Hosts are sorted by filters specified in the request body. If no fi", + "product_code":"lts", + "title":"Querying Host Information", + "uri":"ListHost.html", + "doc_type":"api", + "p_code":"16", + "code":"17" + }, + { + "desc":"Query the host group list.POST /v3/{project_id}/lts/host-group-listStatus code: 200Status code: 400Status code: 500Host groups are sorted by filters specified in the requ", + "product_code":"lts", + "title":"Querying Host Groups", + "uri":"ListHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"18" + }, + { + "desc":"Create a host group.POST /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Create a host group. Parameters host_group_name and host_group_typ", + "product_code":"lts", + "title":"Creating a Host Group", + "uri":"CreateHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"19" + }, + { + "desc":"Delete a host group.DELETE /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Delete one or multiple host groups at a time.Status code: 200Hos", + "product_code":"lts", + "title":"Deleting a Host Group", + "uri":"DeleteHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"20" + }, + { + "desc":"Modify a host group.PUT /v3/{project_id}/lts/host-groupStatus code: 200Status code: 400Status code: 500Update a host group. Parameter host_group_id is mandatory.Status co", + "product_code":"lts", + "title":"Modifying a Host Group", + "uri":"UpdateHostGroup.html", + "doc_type":"api", + "p_code":"16", + "code":"21" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Group Management", + "uri":"lts_api_0011.html", + "doc_type":"api", + "p_code":"7", + "code":"22" + }, + { + "desc":"This API is used to create a log group.POST /v2/{project_id}/groupsStatus code: 201Status code: 400Status code: 401Status code: 403Status code: 500Status code: 503Creatin", + "product_code":"lts", + "title":"Creating a Log Group", + "uri":"CreateLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"23" + }, + { + "desc":"This API is used to query all log groups of an account.GET /v2/{project_id}/groupsStatus code: 200Status code: 401Status code: 403Status code: 500Querying All Log Groups ", + "product_code":"lts", + "title":"Querying All Log Groups of an Account", + "uri":"ListLogGroups.html", + "doc_type":"api", + "p_code":"22", + "code":"24" + }, + { + "desc":"This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.DELE", + "product_code":"lts", + "title":"Deleting a Log Group", + "uri":"DeleteLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"25" + }, + { + "desc":"This API is used to modify the log retention duration of a specified log group.POST /v2/{project_id}/groups/{log_group_id}Status code: 200Status code: 400Status code: 401", + "product_code":"lts", + "title":"Modifying a Log Group", + "uri":"UpdateLogGroup.html", + "doc_type":"api", + "p_code":"22", + "code":"26" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Stream Management", "uri":"lts_api_0015.html", "doc_type":"api", - "p_code":"", - "code":"15" + "p_code":"7", + "code":"27" }, { "desc":"This API is used to create a log stream in a specified log group.POST /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 201Status code: 400Status code: 401Status", "product_code":"lts", "title":"Creating a Log Stream", - "uri":"lts_api_0016.html", + "uri":"CreateLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"16" + "p_code":"27", + "code":"28" }, { "desc":"This API is used to query information about all log streams in a specified log group.GET /v2/{project_id}/groups/{log_group_id}/streamsStatus code: 200Status code: 401Sta", "product_code":"lts", "title":"Querying All Log Streams in a Specified Log Group", - "uri":"lts_api_0017.html", + "uri":"ListLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"17" + "p_code":"27", + "code":"29" }, { - "desc":"This API is used to delete a specified log stream from a specified log group. If a log transfer task has been associated with the log stream, delete the task first.DELETE", + "desc":"This API is used to query log streams.GET /v2/{project_id}/log-streamsStatus code: 200Status code: 400Status code: 500If you leave the request body empty, all log streams", + "product_code":"lts", + "title":"Querying Log Streams", + "uri":"ListLogStreams.html", + "doc_type":"api", + "p_code":"27", + "code":"30" + }, + { + "desc":"This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the", "product_code":"lts", "title":"Deleting a Log Stream", - "uri":"lts_api_0018.html", + "uri":"DeleteLogStream.html", "doc_type":"api", - "p_code":"15", - "code":"18" + "p_code":"27", + "code":"31" + }, + { + "desc":"This API is used to modify the log retention duration of a specified log stream.PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}Status code: 200Stat", + "product_code":"lts", + "title":"Modifying a Log Stream", + "uri":"UpdateLogStream.html", + "doc_type":"api", + "p_code":"27", + "code":"32" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Management", - "uri":"lts_api_0029.html", + "uri":"topic_300000003.html", "doc_type":"api", - "p_code":"", - "code":"19" + "p_code":"7", + "code":"33" + }, + { + "desc":"This API is used to remove a specified resource from favorites.DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}Status code: 200Status code: 400Status code: 500Removing", + "product_code":"lts", + "title":"Removing a Resource from Favorites", + "uri":"Deletefavorite.html", + "doc_type":"api", + "p_code":"33", + "code":"34" + }, + { + "desc":"This API is used to collect traffic statistics on top n log groups or log streams.POST /v2/{project_id}/lts/topn-traffic-statisticsStatus code: 200Status code: 400Status ", + "product_code":"lts", + "title":"Collecting Traffic Statistics on Top N Log Groups or Log Streams", + "uri":"ListTopnTrafficStatistics.html", + "doc_type":"api", + "p_code":"33", + "code":"35" + }, + { + "desc":"This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of ", + "product_code":"lts", + "title":"Querying the Log Histogram", + "uri":"ListLogHistogram.html", + "doc_type":"api", + "p_code":"33", + "code":"36" + }, + { + "desc":"This API is used to add a log to favorites.POST /v1.0/{project_id}/lts/favoriteStatus code: 201Status code: 400Status code: 500Adding a Log to FavoritesStatus code: 201A ", + "product_code":"lts", + "title":"Adding a Log to Favorites", + "uri":"Createfavorite.html", + "doc_type":"api", + "p_code":"33", + "code":"37" + }, + { + "desc":"This API is used to query resources by time segment.POST /v2/{project_id}/lts/timeline-traffic-statisticsStatus code: 200Status code: 400Status code: 500Querying Resource", + "product_code":"lts", + "title":"Querying Resources by Time Segment", + "uri":"ListTimeLineTrafficStatistics.html", + "doc_type":"api", + "p_code":"33", + "code":"38" }, { "desc":"This API is used to query logs in a specified log stream.POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/queryStatus code: 200Status code: 400", "product_code":"lts", "title":"Querying Logs", - "uri":"lts_api_0028.html", + "uri":"ListLogs.html", "doc_type":"api", - "p_code":"19", - "code":"20" + "p_code":"33", + "code":"39" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Log Ingestion", + "uri":"topic_300000004.html", + "doc_type":"api", + "p_code":"7", + "code":"40" + }, + { + "desc":"This API is used to create a cross-account log ingestion configuration.POST /v2.0/{project_id}/lts/createAgencyAccessStatus code: 201Status code: 400Status code: 500Creat", + "product_code":"lts", + "title":"Creating a Cross-Account Log Ingestion Configuration", + "uri":"CreateAgencyAccess.html", + "doc_type":"api", + "p_code":"40", + "code":"41" + }, + { + "desc":"This API is used to query log ingestion configurations in LTS.POST /v3/{project_id}/lts/access-config-listStatus code: 200Status code: 400Status code: 500Log ingestion co", + "product_code":"lts", + "title":"Querying Log Ingestion Configurations", + "uri":"ListAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"42" + }, + { + "desc":"This API is used to create a log ingestion configuration.POST /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Creating a log ingestion c", + "product_code":"lts", + "title":"Creating a Log Ingestion Configuration", + "uri":"CreateAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"43" + }, + { + "desc":"This API is used to delete log ingestion configurations.DELETE /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Deleting Log Ingestion Co", + "product_code":"lts", + "title":"Deleting Log Ingestion Configurations", + "uri":"DeleteAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"44" + }, + { + "desc":"This API is usde to modify a log ingestion configuration.PUT /v3/{project_id}/lts/access-configStatus code: 200Status code: 400Status code: 500Modifying a Log Ingestion C", + "product_code":"lts", + "title":"Modifying a Log Ingestion Configuration", + "uri":"UpdateAccessConfig.html", + "doc_type":"api", + "p_code":"40", + "code":"45" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Log Transfer", - "uri":"lts_api_0026.html", + "uri":"topic_300000005.html", "doc_type":"api", - "p_code":"", - "code":"21" + "p_code":"7", + "code":"46" }, { "desc":"This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).POST /v2/{project_id}/log-dump/obsStatus code: 201Status code: 400S", "product_code":"lts", - "title":"Creating a Log Transfer Task", - "uri":"lts_api_0027.html", + "title":"Creating a Log Transfer Task (Old Version)", + "uri":"lts_api_0029.html", "doc_type":"api", - "p_code":"21", - "code":"22" + "p_code":"46", + "code":"47" + }, + { + "desc":"This API is used to create an OBS transfer task.POST /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Transferring logs to OBSStatus code: 200The", + "product_code":"lts", + "title":"Creating a Log Transfer Task (New Version)", + "uri":"CreateTransfer.html", + "doc_type":"api", + "p_code":"46", + "code":"48" }, { "desc":"This API is used to delete an OBS transfer task.DELETE /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Deleting a log transfer task based on the", "product_code":"lts", "title":"Deleting a Log Transfer Task", - "uri":"lts_api_0030.html", + "uri":"DeleteTransfer.html", "doc_type":"api", - "p_code":"21", - "code":"23" + "p_code":"46", + "code":"49" }, { - "desc":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskPUT https://{en", + "desc":"This API is used to update an OBS transfer task.PUT /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500Updating an OBS transfer taskStatus code: 20", "product_code":"lts", "title":"Updating a Log Transfer Task", - "uri":"lts_api_0031.html", + "uri":"UpdateTransfer.html", "doc_type":"api", - "p_code":"21", - "code":"24" + "p_code":"46", + "code":"50" }, { - "desc":"This API is used to query an OBS transfer task.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfe", + "desc":"This API is used to query OBS transfer tasks.GET /v2/{project_id}/transfersStatus code: 200Status code: 400Status code: 500If no parameter is specified, all log transfer ", "product_code":"lts", "title":"Querying a Log Transfer Task", - "uri":"lts_api_0032.html", + "uri":"ListTransfers.html", "doc_type":"api", - "p_code":"21", - "code":"25" + "p_code":"46", + "code":"51" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Public Parameters", - "uri":"lts_02_0019.html", + "title":"Log Collection Beyond Free Quota", + "uri":"topic_300000006.html", + "doc_type":"api", + "p_code":"7", + "code":"52" + }, + { + "desc":"This API is used to configure log collection to stop when the free quota runs out.POST /v2/{project_id}/collection/disableStatus code: 403Status code: 500Disabling log co", + "product_code":"lts", + "title":"Disabling Log Collection Beyond Free Quota", + "uri":"DisableLogCollection.html", + "doc_type":"api", + "p_code":"52", + "code":"53" + }, + { + "desc":"This API is used to configure log collection to continue when the free quota runs out.POST /v2/{project_id}/collection/enableStatus code: 403Status code: 500Enabling log ", + "product_code":"lts", + "title":"Enabling Log Collection Beyond Free Quota", + "uri":"EnableLogCollection.html", + "doc_type":"api", + "p_code":"52", + "code":"54" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Cloud Structuring", + "uri":"topic_300000007.html", + "doc_type":"api", + "p_code":"7", + "code":"55" + }, + { + "desc":"This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.A user c", + "product_code":"lts", + "title":"Creating Structuring Configurations (Recommended)", + "uri":"CreateStructConfig.html", + "doc_type":"api", + "p_code":"55", + "code":"56" + }, + { + "desc":"This API is used to modify structuring configurations using a structuring template.PUT /v3/{project_id}/lts/struct/templateStatus code: 201Status code: 400Status code: 50", + "product_code":"lts", + "title":"Modifying Structuring Configurations (Recommended)", + "uri":"UpdateStructConfig.html", + "doc_type":"api", + "p_code":"55", + "code":"57" + }, + { + "desc":"This API is used to delete a structuring rule of a log stream.DELETE /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status code: 403S", + "product_code":"lts", + "title":"Deleting a Structuring Rule", + "uri":"lts_api_0044.html", + "doc_type":"api", + "p_code":"55", + "code":"58" + }, + { + "desc":"This API is used to query the structuring rule of a specified log stream.GET /v2/{project_id}/lts/struct/templateStatus code: 200Status code: 400Status code: 401Status co", + "product_code":"lts", + "title":"Querying a Structuring Rule", + "uri":"lts_api_0041.html", + "doc_type":"api", + "p_code":"55", + "code":"59" + }, + { + "desc":"This API is used to query the brief list of structuring templates.GET /v3/{project_id}/lts/struct/customtemplate/listStatus code: 200Status code: 400Status code: 500Obtai", + "product_code":"lts", + "title":"Querying the Brief List of Structuring Templates", + "uri":"ListBreifStructTemplate.html", + "doc_type":"api", + "p_code":"55", + "code":"60" + }, + { + "desc":"This API is used to query a structuring template.Note:A user can call this API for up to 50 times per second.GET /v3/{project_id}/lts/struct/customtemplateStatus code: 20", + "product_code":"lts", + "title":"Querying a Structuring Template", + "uri":"ListStructTemplate.html", + "doc_type":"api", + "p_code":"55", + "code":"61" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Alarm Topics", + "uri":"topic_300000008.html", + "doc_type":"api", + "p_code":"7", + "code":"62" + }, + { + "desc":"This API is used to query an SMN topic.GET /v2/{project_id}/lts/notifications/topicsStatus code: 200Status code: 400Status code: 500Querying an SMN topicStatus code: 200T", + "product_code":"lts", + "title":"Querying an SMN Topic", + "uri":"lts_api_0061.html", + "doc_type":"api", + "p_code":"62", + "code":"63" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Message Template Management", + "uri":"topic_300000009.html", + "doc_type":"api", + "p_code":"7", + "code":"64" + }, + { + "desc":"This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, ", + "product_code":"lts", + "title":"Creating a Message Template", + "uri":"CreateNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"65" + }, + { + "desc":"This API is used to modify a notification template base on its name.PUT /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 201Status code: 400Stat", + "product_code":"lts", + "title":"Modifying a Message Template", + "uri":"UpdateNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"66" + }, + { + "desc":"This API is used to query the message template list.GET /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 200Status code: 500Querying a message t", + "product_code":"lts", + "title":"Querying Message Templates", + "uri":"ListNotificationTemplates.html", + "doc_type":"api", + "p_code":"64", + "code":"67" + }, + { + "desc":"This API is used to delete a notification template.DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templatesStatus code: 400Status code: 500Deleting a message", + "product_code":"lts", + "title":"Deleting a Message Template", + "uri":"DeleteNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"68" + }, + { + "desc":"This API is used to query a notification template.GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}Status code: 200Status code: 401Status ", + "product_code":"lts", + "title":"Querying a Message Template", + "uri":"ShowNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"69" + }, + { + "desc":"This API is used to preview the email format of a notification template.POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/viewStatus code: 200Status cod", + "product_code":"lts", + "title":"Previewing the Email Format of a Message Template", + "uri":"ListNotificationTemplate.html", + "doc_type":"api", + "p_code":"64", + "code":"70" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Keyword Alarm Rules", + "uri":"topic_300000010.html", + "doc_type":"api", + "p_code":"7", + "code":"71" + }, + { + "desc":"This API is used to create a keyword alarm. Currently, each account can create a maximum of 200 keyword alarms and SQL alarms.POST /v2/{project_id}/lts/alarms/keywords-al", + "product_code":"lts", + "title":"Creating a Keyword Alarm Rule", + "uri":"lts_api_0081.html", + "doc_type":"api", + "p_code":"71", + "code":"72" + }, + { + "desc":"This API is used to modify a keyword alarm.PUT /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 400Status code: 500Modifying a keyword alarm ru", + "product_code":"lts", + "title":"Modifying a Keyword Alarm Rule", + "uri":"lts_api_0082.html", + "doc_type":"api", + "p_code":"71", + "code":"73" + }, + { + "desc":"This API is used to query a keyword alarm.GET /v2/{project_id}/lts/alarms/keywords-alarm-ruleStatus code: 200Status code: 500Querying a keyword alarm ruleStatus code: 200", + "product_code":"lts", + "title":"Querying a Keyword Alarm Rule", + "uri":"lts_api_0083.html", + "doc_type":"api", + "p_code":"71", + "code":"74" + }, + { + "desc":"This API is used to delete a keyword alarm.DELETE /v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}Status code: 400Status code: 500Deleting a keywo", + "product_code":"lts", + "title":"Deleting a Keyword Alarm Rule", + "uri":"lts_api_0084.html", + "doc_type":"api", + "p_code":"71", + "code":"75" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Alarm List", + "uri":"topic_300000011.html", + "doc_type":"api", + "p_code":"7", + "code":"76" + }, + { + "desc":"This API is used to query the alarm list.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/queryStatus code: 200Status code: 400Status code: 500Querying the active o", + "product_code":"lts", + "title":"Querying the Active or Historical Alarm List", + "uri":"lts_api_0091.html", + "doc_type":"api", + "p_code":"76", + "code":"77" + }, + { + "desc":"This API is used to delete an active alarm.POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clearNoneDeleting an active alarm by alarm IDNoneSee Error Codes.", + "product_code":"lts", + "title":"Deleting an Active Alarm", + "uri":"lts_api_0092.html", + "doc_type":"api", + "p_code":"76", + "code":"78" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Tag Management", + "uri":"topic_300000012.html", + "doc_type":"api", + "p_code":"7", + "code":"79" + }, + { + "desc":"This API is used to tag a resource.POST /v1/{project_id}/{resource_type}/{resource_id}/tags/actionStatus code: 200Status code: 201Status code: 400Status code: 500Creating", + "product_code":"lts", + "title":"Tag Management", + "uri":"CreateTags.html", + "doc_type":"api", + "p_code":"79", + "code":"80" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Quick Search", + "uri":"topic_300000013.html", + "doc_type":"api", + "p_code":"7", + "code":"81" + }, + { + "desc":"Adding a Quick SearchPOST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 201Status code: 400Status code: 500Adding a Quick SearchStat", + "product_code":"lts", + "title":"Adding a Quick Search", + "uri":"CreateSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"82" + }, + { + "desc":"This API is used to obtain quick search.GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Obtaini", + "product_code":"lts", + "title":"Obtaining a Quick Search", + "uri":"ListCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"83" + }, + { + "desc":"This API is used to delete a quick search.DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criteriasStatus code: 400Status code: 500Deleting a quick s", + "product_code":"lts", + "title":"Deleting a Quick Search", + "uri":"DeleteSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"84" + }, + { + "desc":"This API is used to query all quick searches in a log group.GET /v1.0/{project_id}/lts/groups/{group_id}/search-criteriasStatus code: 200Status code: 400Status code: 500Q", + "product_code":"lts", + "title":"Querying All Quick Searches in a Log Group", + "uri":"ListQueryAllSearchCriterias.html", + "doc_type":"api", + "p_code":"81", + "code":"85" + }, + { + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", + "product_code":"lts", + "title":"Appendix", + "uri":"lts_api_0019.html", "doc_type":"api", "p_code":"", - "code":"26" + "code":"86" }, { - "desc":"Table 1 lists the status code.", + "desc":"Table 1 lists the status codes.", "product_code":"lts", - "title":"Status Code", - "uri":"lts_02_0020.html", + "title":"Status Codes", + "uri":"lts_api_0020.html", "doc_type":"api", - "p_code":"26", - "code":"27" + "p_code":"86", + "code":"87" }, { - "desc":"This section explains the meanings of error code responses returned by LTS APIs.{\"error_msg\":\"Current user is not authenticated correctly, check your token.\",\"error_code\"", + "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", - "title":"Error Code", - "uri":"lts_02_0021.html", + "title":"Error Codes", + "uri":"ErrorCode.html", "doc_type":"api", - "p_code":"26", - "code":"28" + "p_code":"86", + "code":"88" }, { - "desc":"Account and project IDs are required in URLs when you call some APIs.Obtain the IDs from the console.Log in to the LTS console.On the Log Management page, obtain the log ", + "desc":"Account and project IDs are required in URLs when you call some APIs.Log in to the management console.Hover the mouse pointer over the username and choose My Credentials ", "product_code":"lts", - "title":"Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID", + "title":"Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID", "uri":"lts_api_0006.html", "doc_type":"api", - "p_code":"26", - "code":"29" + "p_code":"86", + "code":"89" }, { "desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.", "product_code":"lts", "title":"Change History", - "uri":"lts_02_0014.html", + "uri":"lts_api_0023.html", "doc_type":"api", "p_code":"", - "code":"30" + "code":"90" } ] \ No newline at end of file diff --git a/docs/lts/api-ref/CreateAccessConfig.html b/docs/lts/api-ref/CreateAccessConfig.html new file mode 100644 index 000000000..2f5d1c054 --- /dev/null +++ b/docs/lts/api-ref/CreateAccessConfig.html @@ -0,0 +1,1344 @@ + + +

Creating a Log Ingestion Configuration

+

Function

This API is used to create a log ingestion configuration.

+
+

URI

POST /v3/{project_id}/lts/access-config

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

access_config_name

+

Yes

+

String

+

Ingestion configuration name.

+

It should match the regular expression: ^(?!.)(?!_)(?!.*?.$)[\u4e00-\u9fa5a-zA-Z0-9-_.]{1,64}$.

+

Minimum: 1

+

Maximum: 64

+

access_config_type

+

Yes

+

String

+

Ingestion configuration type. AGENT: ECS access; K8S_CCE: CCE access

+

access_config_detail

+

Yes

+

AccessConfigDeatilCreate object

+

Access configuration details.

+

log_info

+

Yes

+

AccessConfigBaseLogInfoCreate object

+

Log information

+

host_group_info

+

No

+

AccessConfigHostGroupIdListCreate object

+

Host group information

+

access_config_tag

+

No

+

Array of accessConfigTag objects

+

Tag information. A tag key must be unique. Up to 20 tags are allowed.

+

binary_collect

+

No

+

Boolean

+

Binary collection.

+

log_split

+

No

+

Boolean

+

Log splitting.

+

cluster_id

+

No

+

String

+

Cluster ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 AccessConfigDeatilCreate

Parameter

+

Mandatory

+

Type

+

Description

+

paths

+

No

+

Array of strings

+

Collection paths.

+
  1. A path must start with a slash (/), backslash (\), colon (:), or letter.
  2. A path cannot contain special characters (<>'| ") and cannot contain only slashes (/).
  3. A path cannot start with "/**" or "/*".
  4. Only one double asterisk (**) can be contained in a path.

    The container path and host path are mandatory for the CCE type and are not mandatory for the standard output.

    +
+

black_paths

+

No

+

Array of strings

+

Collection path blacklist.

+
  1. A path must start with a slash (/), backslash (\), colon (:), or letter.
  2. A path cannot contain special characters (<>'| ") and cannot contain only slashes (/).
  3. A path cannot start with "/**" or "/*".
  4. Only one double asterisk (**) can be contained in a path.
+

format

+

Yes

+

AccessConfigFormatCreate object

+

Log format.

+

windows_log_info

+

No

+

AccessConfigWindowsLogInfoCreate object

+

Windows event logs.

+

stdout

+

No

+

Boolean

+

Standard output switch. This parameter is used only when logs are collected from CCE.

+

stderr

+

No

+

Boolean

+

Standard error switch. This parameter is used only when logs are collected from CCE.

+

pathType

+

No

+

String

+

Log collection from CCE. This parameter is used only when logs are collected from CCE.

+

namespaceRegex

+

No

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only when logs are collected from CCE.

+

podNameRegex

+

No

+

String

+

Regular expression matching of Kubernetes pods. This parameter is used only when logs are collected from CCE.

+

containerNameRegex

+

No

+

String

+

Regular expression matching of Kubernetes container names. This parameter is used only when logs are collected from CCE.

+

includeLabels

+

No

+

Map<String,String>

+

Container label trustlist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

excludeLabels

+

No

+

Map<String,String>

+

Container label blocklist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

includeEnvs

+

No

+

Map<String,String>

+

Environment variable trustlist. A maximum of 30 environment variable whitelists can be created. Key names must be unique. This parameter is used only when logs are collected from CCE.

+

excludeEnvs

+

No

+

Map<String,String>

+

Environment variable blocklist. A maximum of 30 environment variables can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

logLabels

+

No

+

Map<String,String>

+

Container label log tag. A maximum of 30 tags can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

logEnvs

+

No

+

Map<String,String>

+

Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when logs are collected from CCE.

+

includeK8sLabels

+

No

+

Map<String,String>

+

Kubernetes label trustlist. A maximum of 30 whitelists can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

excludeK8sLabels

+

No

+

Map<String,String>

+

Kubernetes label blocklist. A maximum of 30 blocklists can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+

logK8s

+

No

+

Map<String,String>

+

Kubernetes label log tag. A maximum of 30 tags can be created. The key names must be unique. This parameter is used only when logs are collected from CCE.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 AccessConfigFormatCreate

Parameter

+

Mandatory

+

Type

+

Description

+

single

+

No

+

AccessConfigFormatSingleCreate object

+

Single-line logs.

+

multi

+

No

+

AccessConfigFormatMutilCreate object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 6 AccessConfigFormatSingleCreate

Parameter

+

Mandatory

+

Type

+

Description

+

mode

+

No

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

No

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 7 AccessConfigFormatMutilCreate

Parameter

+

Mandatory

+

Type

+

Description

+

mode

+

No

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

No

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 AccessConfigWindowsLogInfoCreate

Parameter

+

Mandatory

+

Type

+

Description

+

categorys

+

Yes

+

Array of strings

+

Type of Windows event logs to be collected.

+
  • Application: application event logs.
  • System: system event logs.
  • Security: security event logs.
  • Setup: startup event logs.
+

time_offset

+

Yes

+

AccessConfigTimeOffset object

+

Offset from first collection time.

+

event_level

+

Yes

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.
  • warning: warning events, which may affect system running but do not cause system breakdown.
  • error: error events, which cause system breakdown or prevent the service from running properly.
  • critical: critical events, which may cause system or application failures.
  • verbose: detailed event information, which does not affect the system running.
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 AccessConfigTimeOffset

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

Yes

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

Yes

+

String

+

Unit of the time offset.

+
  • day
  • hour
  • sec
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 10 AccessConfigBaseLogInfoCreate

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_id

+

Yes

+

String

+

Log group ID. Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_id

+

Yes

+

String

+

Log stream ID. Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+ +
+ + + + + + + + + + + +
Table 11 AccessConfigHostGroupIdListCreate

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_id_list

+

Yes

+

Array of strings

+

List of host group IDs.

+

Minimum: 36

+

Maximum: 36

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 12 accessConfigTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

access_config_id

+

String

+

Ingestion configuration ID.

+

access_config_name

+

String

+

Ingestion configuration name.

+

access_config_type

+

String

+

Ingestion configuration type. The value AGENT indicates host log ingestion.

+

create_time

+

Long

+

Creation time.

+

access_config_detail

+

AccessConfigDeatilResponse object

+

Ingestion configuration details.

+

log_info

+

AccessConfigQueryLogInfo object

+

Log details.

+

host_group_info

+

AccessConfigHostGroupIdList object

+

Host group ID list.

+

access_config_tag

+

Array of accessConfigTagResponse objects

+

Tag information.

+

log_split

+

Boolean

+

Log splitting.

+

binary_collect

+

Boolean

+

Binary collection.

+

cluster_id

+

String

+

CCE cluster ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 AccessConfigDeatilResponse

Parameter

+

Type

+

Description

+

paths

+

Array of strings

+

Collection paths.

+

black_paths

+

Array of strings

+

Collection path blacklist.

+

format

+

AccessConfigFormatCreate object

+

Log format.

+

windows_log_info

+

AccessConfigWindowsLogInfoCreate object

+

Windows event logs.

+

stdout

+

Boolean

+

Standard output switch. This parameter is used only for CCE log ingestion.

+

stderr

+

Boolean

+

Standard error switch. This parameter is used only for CCE log ingestion.

+

pathType

+

String

+

CCE log ingestion type. This parameter is used only for CCE log ingestion.

+

namespaceRegex

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion.

+

podNameRegex

+

String

+

Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion.

+

containerNameRegex

+

String

+

Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion.

+

includeLabels

+

Map<String,String>

+

Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeLabels

+

Map<String,String>

+

Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeEnvs

+

Map<String,String>

+

Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeEnvs

+

Map<String,String>

+

Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logLabels

+

Map<String,String>

+

Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logEnvs

+

Map<String,String>

+

Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeK8sLabels

+

Map<String,String>

+

Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeK8sLabels

+

Map<String,String>

+

Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logK8s

+

Map<String,String>

+

Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+
+
+ +
+ + + + + + + + + + + + + +
Table 15 AccessConfigFormatCreate

Parameter

+

Type

+

Description

+

single

+

AccessConfigFormatSingleCreate object

+

Single-line logs.

+

multi

+

AccessConfigFormatMutilCreate object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 16 AccessConfigFormatSingleCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + +
Table 17 AccessConfigFormatMutilCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 18 AccessConfigWindowsLogInfoCreate

Parameter

+

Type

+

Description

+

categorys

+

Array of strings

+

Type of Windows event logs to be collected.

+
  • Application: application event logs.
  • System: system event logs.
  • Security: security event logs.
  • Setup: startup event logs.
+

time_offset

+

AccessConfigTimeOffset object

+

Offset from first collection time.

+

event_level

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.
  • warning: warning events, which may affect system running but do not cause system breakdown.
  • error: error events, which cause system breakdown or prevent the service from running properly.
  • critical: critical events, which may cause system or application failures.
  • verbose: detailed event information, which does not affect the system running.
+
+
+ +
+ + + + + + + + + + + + + +
Table 19 AccessConfigTimeOffset

Parameter

+

Type

+

Description

+

offset

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

String

+

Unit of the time offset.

+
  • day
  • hour
  • sec
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 20 AccessConfigQueryLogInfo

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_stream_id

+

String

+

Log stream ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_name

+

String

+

Log stream name.

+

log_group_name_alias

+

String

+

Log group alias.

+

log_stream_name_alias

+

String

+

Log stream alias.

+
+
+ +
+ + + + + + + + + +
Table 21 AccessConfigHostGroupIdList

Parameter

+

Type

+

Description

+

host_group_id_list

+

Array of strings

+

List of host group IDs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 22 accessConfigTagResponse

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 23 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 24 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

The ingestion configuration is created.

+
{
+  "access_config_detail" : {
+    "containerNameRegex" : "container-1",
+    "format" : {
+      "single" : {
+        "mode" : "system",
+        "value" : "1678969382000"
+      }
+    },
+    "namespaceRegex" : "default",
+    "pathType" : "container_stdout",
+    "paths" : [ ],
+    "podNameRegex" : "mystdout-6d7458d77c-rhjcc",
+    "stderr" : true,
+    "stdout" : true
+  },
+  "access_config_id" : "03b16999-95cf-453b-9668-7aa1fafa564e",
+  "access_config_name" : "myapinew32Y",
+  "access_config_tag" : [ {
+    "key" : "my01",
+    "value" : "001"
+  }, {
+    "key" : "my02",
+    "value" : "002"
+  } ],
+  "access_config_type" : "K8S_CCE",
+  "binary_collect" : true,
+  "create_time" : 1685626665176,
+  "log_info" : {
+    "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+    "log_group_name" : "my-group",
+    "log_stream_id" : "eea03c27-e041-4bec-bd03-6afa10a6561a",
+    "log_stream_name" : "lts-topic-cceapi"
+  },
+  "log_split" : true
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid access config name"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The ingestion configuration is created.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateAgencyAccess.html b/docs/lts/api-ref/CreateAgencyAccess.html new file mode 100644 index 000000000..9d9913153 --- /dev/null +++ b/docs/lts/api-ref/CreateAgencyAccess.html @@ -0,0 +1,658 @@ + + +

Creating a Cross-Account Log Ingestion Configuration

+

Function

This API is used to create a cross-account log ingestion configuration.

+
+

URI

POST /v2.0/{project_id}/lts/createAgencyAccess

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=utf8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

preview_agency_list

+

Yes

+

Array of PreviewAgencyLogAccessReqBody objects

+

Preview of the proxy list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 PreviewAgencyLogAccessReqBody

Parameter

+

Mandatory

+

Type

+

Description

+

agency_access_type

+

Yes

+

String

+

Log ingestion type.

+

agency_log_access

+

Yes

+

String

+

Cross-account log ingestion configuration name.

+

log_agencyStream_name

+

Yes

+

String

+

Delegator log stream name.

+

log_agencyStream_id

+

Yes

+

String

+

Delegator log stream ID.

+

log_agencyGroup_name

+

Yes

+

String

+

Delegator log group name.

+

log_agencyGroup_id

+

Yes

+

String

+

Delegator log group ID.

+

log_beAgencystream_name

+

Yes

+

String

+

Delegatee log stream name.

+

log_beAgencystream_id

+

Yes

+

String

+

Delegatee log stream ID.

+

log_beAgencygroup_name

+

Yes

+

String

+

Delegatee log group name.

+

log_beAgencygroup_id

+

Yes

+

String

+

Delegatee log group ID.

+

be_agency_project_id

+

Yes

+

String

+

Delegatee project ID.

+

agency_project_id

+

Yes

+

String

+

Delegator project ID.

+

agency_domain_name

+

Yes

+

String

+

Delegator account name.

+

agency_name

+

Yes

+

String

+

Agency name.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

LTSAgencyAccessConfigInfoList

+

Array of LTSAccessConfigInfoRespon200 objects

+

Response list for creating a log ingestion configuration across accounts.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 LTSAccessConfigInfoRespon200

Parameter

+

Type

+

Description

+

access_config_id

+

String

+

Cross-account log ingestion ID.

+

project_id

+

String

+

Project ID.

+

access_config_name

+

String

+

Cross-account log ingestion name.

+

access_config_type

+

Object

+

Cross-account log ingestion type.

+

group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+

create_time

+

Long

+

Creation time.

+

agency_log_access

+

PreviewAgencyLogAccessReqBody object

+

Information of the delegated ingestion.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 PreviewAgencyLogAccessReqBody

Parameter

+

Type

+

Description

+

agency_access_type

+

String

+

Log ingestion type.

+

agency_log_access

+

String

+

Cross-account log ingestion configuration name.

+

log_agencyStream_name

+

String

+

Delegator log stream name.

+

log_agencyStream_id

+

String

+

Delegator log stream ID.

+

log_agencyGroup_name

+

String

+

Delegator log group name.

+

log_agencyGroup_id

+

String

+

Delegator log group ID.

+

log_beAgencystream_name

+

String

+

Delegatee log stream name.

+

log_beAgencystream_id

+

String

+

Delegatee log stream ID.

+

log_beAgencygroup_name

+

String

+

Delegatee log group name.

+

log_beAgencygroup_id

+

String

+

Delegatee log group ID.

+

be_agency_project_id

+

String

+

Delegatee project ID.

+

agency_project_id

+

String

+

Delegator project ID.

+

agency_domain_name

+

String

+

Delegator account name.

+

agency_name

+

String

+

Agency name.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 11 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a cross-account log ingestion configuration

+
POST https://{endpoint}/v2.0/{project_id}/lts/createAgencyAccess
+
+{
+  "preview_agency_list" : [ {
+    "agency_log_access" : "rule_lb30",
+    "agency_access_type" : "AGENCYACCESS",
+    "agency_name" : "wenshufeng",
+    "agency_domain_name" : "paas_aom_z00418070_01",
+    "agency_project_id" : "a0a12b069ab4491185d7cf26c3e86ada",
+    "be_agency_project_id" : "2a473356cca5487f8373be891bffc1cf",
+    "log_agencyStream_name" : "lts-topic-bug",
+    "log_agencyStream_id" : "beb169ff-e6e9-4bea-8e77-50afdec74071",
+    "log_agencyGroup_name" : "lts-group-sgq",
+    "log_agencyGroup_id" : "f06cbfa0-7243-4031-9380-ae0465bd3997",
+    "log_beAgencystream_name" : "lts-topic-ECS",
+    "log_beAgencystream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+    "log_beAgencygroup_name" : "lts-group-sgqECS",
+    "log_beAgencygroup_id" : "1e749063-d9f5-474f-a537-00cad4e9a108"
+  } ]
+}
+
+

Example Responses

Status code: 201

+

The cross-account log ingestion configuration is created.

+
[ {
+  "access_config_id" : "e929f40e-d1cf-4d59-b656-a2995cbd3229",
+  "access_config_name" : "rule_lb30",
+  "access_config_type" : "AGENCYACCESS",
+  "agency_log_access" : {
+    "agency_accessConfig_id" : "e929f40e-d1cf-4d59-b656-a2995cbd3229",
+    "agency_access_type" : "AGENCYACCESS",
+    "agency_domain_name" : "paas_aom_z00418070_01",
+    "agency_log_access" : "rule_lb30",
+    "agency_name" : "wenshufeng",
+    "agency_project_id" : "a0a12b069ab4491185d7cf26c3e86ada",
+    "be_agency_project_id" : "2a473356cca5487f8373be891bffc1cf",
+    "log_agencyGroup_id" : "f06cbfa0-7243-4031-9380-ae0465bd3997",
+    "log_agencyGroup_name" : "lts-group-sgq",
+    "log_agencyStream_id" : "beb169ff-e6e9-4bea-8e77-50afdec74071",
+    "log_agencyStream_name" : "lts-topic-bug",
+    "log_beAgencygroup_id" : "1e749063-d9f5-474f-a537-00cad4e9a108",
+    "log_beAgencygroup_name" : "lts-group-sgqECS",
+    "log_beAgencystream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+    "log_beAgencystream_name" : "lts-topic-ECS"
+  },
+  "binary_collect" : false,
+  "create_time" : 1694400753168,
+  "group_id" : "1e749063-d9f5-474f-a537-00cad4e9a108",
+  "hostGroupNum" : 0,
+  "hostNum" : 0,
+  "host_group_info_list" : [ ],
+  "host_rule_info" : {
+    "black_paths" : [ ],
+    "pathType" : "host_file",
+    "paths" : [ ],
+    "stderr" : false,
+    "stdout" : false
+  },
+  "id" : "",
+  "indexId" : "",
+  "key" : "",
+  "log_group_name" : "lts-group-sgqECS",
+  "log_split" : false,
+  "log_stream_id" : "36ce06b0-c6bf-436d-9abe-39de86da28bb",
+  "log_stream_name" : "lts-topic-ECS",
+  "pathNum" : 0,
+  "project_id" : "2a473356cca5487f8373be891bffc1cf",
+  "tag_list" : [ ]
+} ]
+

Status code: 400

+

Failed to create cross-account log ingestion configuration.

+
{
+  "message" : {
+    "code" : "LTS.0420",
+    "details" : "Agency not existed, check domain name and agency name"
+  }
+}
+

Status code: 500

+

Internal service error

+
{
+  "message" : {
+    "code" : "LTS.0010",
+    "details" : "The system encountered an internal error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The cross-account log ingestion configuration is created.

+

400

+

Failed to create cross-account log ingestion configuration.

+

500

+

Internal service error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateHostGroup.html b/docs/lts/api-ref/CreateHostGroup.html new file mode 100644 index 000000000..83472ddc1 --- /dev/null +++ b/docs/lts/api-ref/CreateHostGroup.html @@ -0,0 +1,416 @@ + + +

Creating a Host Group

+

Function

Create a host group.

+
+

URI

POST /v3/{project_id}/lts/host-group

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_name

+

Yes

+

String

+

Host group name. Use only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period.

+

Minimum: 1

+

Maximum: 64

+

host_group_type

+

Yes

+

String

+

Host group type.

+
  • Windows
  • Linux
+

host_id_list

+

No

+

Array of strings

+

List of host group IDs. The host type must be the same as the host group type.

+

Minimum: 36

+

Maximum: 36

+

host_group_tag

+

No

+

Array of HostGroupTag objects

+

Tag information. You can add up to 20 tags.

+

agent_access_type

+

No

+

String

+

Host access type.

+
  • LABEL
  • IP
+

labels

+

No

+

Array of strings

+

Host group identifier. If the host access type is LABEL, this field saves the host group identifier.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 HostGroupTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

host_group_id

+

String

+

Host group ID.

+

host_group_name

+

String

+

Host group name.

+

host_group_type

+

String

+

Host group type.

+

host_id_list

+

Array of strings

+

Host ID list.

+

host_group_tag

+

Array of HostGroupTagResBody objects

+

Tag information.

+

create_time

+

Long

+

Creation time.

+

update_time

+

Long

+

Update time.

+

labels

+

Array of strings

+

Host group ID.

+

agent_access_type

+

String

+

Host access type.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 HostGroupTagResBody

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+

tags_to_streams_enable

+

Boolean

+

Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Create a host group. Parameters host_group_name and host_group_type are mandatory.

+
POST https://{endpoint}/v3/{project_id}/lts/host-group
+
+{
+  "host_group_name" : "APIxx3",
+  "host_group_type" : "linux",
+  "host_id_list" : [ "dc1dab7e-b045-4e77xxd1bf7", "713a9fxx2df-24c4ca599def" ],
+  "host_group_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx",
+    "tags_to_streams_enable" : false
+  } ]
+}
+
+

Example Responses

Status code: 200

+

The host group is created.

+
{
+  "host_group_id" : "598c77aa-c69b-42f0-8cb8-983178ad5b38",
+  "host_group_name" : "APIxx3",
+  "host_group_type" : "linux",
+  "host_id_list" : [ "dc1dab7e-b045-4e77-bda4-914d083d1bf7" ],
+  "host_group_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx",
+    "tags_to_streams_enable" : true
+  } ],
+  "create_time" : 1635149410332,
+  "update_time" : 1635149410332
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1812",
+  "error_msg" : "Invalid host group id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The host group is created.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateLogGroup.html b/docs/lts/api-ref/CreateLogGroup.html new file mode 100644 index 000000000..5f3695ae3 --- /dev/null +++ b/docs/lts/api-ref/CreateLogGroup.html @@ -0,0 +1,407 @@ + + +

Creating a Log Group

+

Function

This API is used to create a log group.

+
+

URI

POST /v2/{project_id}/groups

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_name

+

Yes

+

String

+

Name of the log group to be created.

+

The configuration rules are as follows:

+

A name can contain 1 to 64 characters,

+

including only letters, digits, underscores (_), hyphens (-), and periods (.). It cannot start with a period or underscore or end with a period.

+

Minimum: 1

+

Maximum: 64

+

ttl_in_days

+

Yes

+

Integer

+

Log retention duration. (Default: 30 days)

+

Minimum: 1

+

Maximum: 365

+

tags

+

No

+

Array of tagsBody objects

+

Tag field information.

+

log_group_name_alias

+

No

+

String

+

Log group alias.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tagsBody

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

Yes

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

ID of the created log group.

+

Minimum: 36

+

Maximum: 36

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 503

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a log group

+
POST https://{endpoint}/v2/{project_id}/groups
+
+{
+  "log_group_name" : "lts-group-01nh",
+  "ttl_in_days" : 7
+}
+
+

Example Responses

Status code: 201

+

The request is successful and the log group has been created.

+
{
+  "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2d664"
+}
+

Status code: 400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "Failed to validate the request body"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0102",
+  "error_msg" : "Failed to create log group"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successful and the log group has been created.

+

400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+

503

+

ServiceUnavailable.

+

The requested service is unavailable.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateLogStream.html b/docs/lts/api-ref/CreateLogStream.html new file mode 100644 index 000000000..d93ba0cd1 --- /dev/null +++ b/docs/lts/api-ref/CreateLogStream.html @@ -0,0 +1,395 @@ + + +

Creating a Log Stream

+

Function

This API is used to create a log stream in a specified log group.

+
+

URI

POST /v2/{project_id}/groups/{log_group_id}/streams

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_stream_name

+

Yes

+

String

+

Name of the log stream to be created.

+

Minimum: 1

+

Maximum: 64

+

ttl_in_days

+

No

+

Integer

+

Log retention duration.

+

Minimum value: 1

+

Maximum value: 365

+

tags

+

No

+

Array of tagsBody objects

+

Tag field information.

+

log_stream_name_alias

+

No

+

String

+

Log stream alias.

+

Minimum: 1

+

Maximum: 64

+

enterprise_project_name

+

No

+

String

+

Enterprise project name.

+
NOTE:

A project name can only contain letters, digits, underscores (_), and hyphens (-). It cannot contain the word default in any form.

+

The description can contain up to 512 characters.

+
+

Minimum: 1

+

Maximum: 255

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tagsBody

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

Yes

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

log_stream_id

+

String

+

ID of the created log stream.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a log stream

+
POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
+
+{
+  "log_stream_name" : "lts-stream-02kh"
+}
+
+

Example Responses

Status code: 201

+

The request is successful and the log stream has been created.

+
{
+  "log_stream_id" : "c54dbc58-0fd8-48ed-b007-6d54981427a7"
+}
+

Status code: 400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "Failed to validate the request body"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0202",
+  "error_msg" : "Failed to create Log stream"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successful and the log stream has been created.

+

400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateNotificationTemplate.html b/docs/lts/api-ref/CreateNotificationTemplate.html new file mode 100644 index 000000000..6959a538c --- /dev/null +++ b/docs/lts/api-ref/CreateNotificationTemplate.html @@ -0,0 +1,434 @@ + + +

Creating a Message Template

+

Function

This API is used to create a notification template. Currently, each account can create a maximum of 100 notification templates. After a notification template is created, its name cannot be changed.

+
+

URI

POST /v2/{project_id}/{domain_id}/lts/events/notification/templates

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Notification rule name, which is mandatory. The value can contain only digits, letters, underscores (_), and hyphens (-), and cannot start or end with special characters such as underscores. The value can contain 1 to 100 characters and cannot be changed after being created.

+

Minimum: 1

+

Maximum: 100

+

type

+

No

+

Array of strings

+

Notification method.

+

desc

+

No

+

String

+

Template description, which is mandatory. The value can contain only digits, letters, and underscores (_), and cannot start or end with an underscore. The value can contain 0 to 1,024 characters.

+

Minimum: 0

+

Maximum: 1024

+

source

+

Yes

+

String

+

Template source. Currently, this parameter must be set to LTS. Otherwise, the template cannot be filtered.

+

Minimum: 3

+

Maximum: 3

+

locale

+

Yes

+

String

+

Language type, for example, en-us.

+

templates

+

Yes

+

Array of SubTemplate objects

+

Template body is an array.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 SubTemplate

Parameter

+

Mandatory

+

Type

+

Description

+

sub_type

+

Yes

+

String

+

Template subtype, for example, sms or email.

+

content

+

Yes

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types. Currently, the variables supported for keyword alarms are as follows:

+
  • Severity: ${event_severity};

    +
  • Occurred: ${starts_at};

    +
  • Alarm source: $event.metadata.resource_provider;

    +
  • Resource type: $event.metadata.resource_type;

    +
  • Resource ID: ${resources};

    +
  • Statistical type: by keyword;

    +
  • Expression: $event.annotations.condition_expression;

    +
  • Current value: $event.annotations.current_value;

    +
  • Statistical period: $event.annotations.frequency;

    +
  • Query time: $event.annotations.results[0].time;

    +
  • Query log: $event.annotations.results[0].raw_results;

    +
+
NOTE:

Each variable must be followed by an English semicolon (;). Otherwise, the template replacement fails.

+
+

Minimum: 2

+

Maximum: 1024

+

topic

+

No

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Notification rule name.

+

type

+

Array of strings

+

Notification method.

+

desc

+

String

+

Template description.

+

source

+

String

+

Template source.

+

locale

+

String

+

Language.

+

templates

+

Array of SubTemplateResBody objects

+

Template body, which is an array.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 SubTemplateResBody

Parameter

+

Type

+

Description

+

sub_type

+

String

+

Template subtype, for example, sms or email.

+

content

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL).

+

topic

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a message template

+
POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+{
+  "name" : "alarm-template",
+  "desc" : "test",
+  "source" : "LTS",
+  "locale" : "en-us",
+  "templates" : [ {
+    "sub_type" : "sms",
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;"
+  }, {
+    "sub_type" : "email",
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "desc" : "description",
+  "locale" : "en-us",
+  "name" : "postman-test",
+  "source" : "LTS",
+  "templates" : [ {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+    "sub_type" : "sms"
+  }, {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+    "sub_type" : "email"
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.2014",
+  "error_msg" : "desc is invalid!"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2014",
+  "error_msg" : "Failed to create notification template."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateSearchCriterias.html b/docs/lts/api-ref/CreateSearchCriterias.html new file mode 100644 index 000000000..1a467e14d --- /dev/null +++ b/docs/lts/api-ref/CreateSearchCriterias.html @@ -0,0 +1,322 @@ + + +

Adding a Quick Search

+

Function

Adding a Quick Search

+
+

URI

POST /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

group_id

+

Yes

+

String

+

ID of the log group whose log streams will be queried. Generally, it contains 36 characters.

+

Minimum: 36

+

Maximum: 36

+

topic_id

+

Yes

+

String

+

Log stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

criteria

+

Yes

+

String

+

Quick search field. Enter the statement to be queried.

+

eps_id

+

No

+

String

+

Enterprise project ID.

+

name

+

Yes

+

String

+

Quick search name, which contains 1 to 64 characters,

+

including only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period.

+

search_type

+

Yes

+

String

+

Search type, for example, raw logs.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Quick search ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Adding a Quick Search

+
POST /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias
+
+{
+  "name" : "test",
+  "criteria" : "content : 1234567891234567891234567891234567891234567891234567891234567894",
+  "eps_id" : "0",
+  "search_type" : "ORIGINALLOG"
+}
+
+

Example Responses

Status code: 201

+

Quick search added.

+
{
+  "id" : "0eb379f5-f847-4d25-ba89-05967bf1bae3"
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0208",
+    "details" : "The log stream does not existed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "message" : {
+    "code" : "LTS.0203",
+    "details" : "Internal Server Error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Quick search added.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateStructConfig.html b/docs/lts/api-ref/CreateStructConfig.html new file mode 100644 index 000000000..badc3a1f6 --- /dev/null +++ b/docs/lts/api-ref/CreateStructConfig.html @@ -0,0 +1,521 @@ + + +

Creating Structuring Configurations (Recommended)

+

Function

This API is used to create structuring configurations using a structuring template, which facilitates parameter extraction and simplifies the parameter structure.

+

A user can call this API only once per second.

+
+

URI

POST /v3/{project_id}/lts/struct/template

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_id

+

Yes

+

String

+

Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

template_id

+

Yes

+

String

+

Template ID. When the system template is used, the current attribute can be empty.

+

Minimum: 0

+

Maximum: 36

+

template_name

+

Yes

+

String

+

Template name, which cannot be empty and will be verified.

+

Minimum: 1

+

Maximum: 64

+

template_type

+

Yes

+

String

+

Type of the template. The value can be built_in (system templates) or custom (custom templates). For details about system template types, see section "Log Search and Analysis" > "Cloud Structuring Parsing" > "Structuring Templates" in the LTS User Guide.

+

demo_fields

+

No

+

Array of FieldModel objects

+

Example field array. You only need to enter the fields whose status is different from that of is_analysis in the template.

+

tag_fields

+

No

+

Array of FieldModel objects

+

Tag field array. You only need to enter the fields whose status is different from that of is_analysis in the template.

+

quick_analysis

+

No

+

Boolean

+

Indicates whether to enable quick analysis for demo_fields and tag_fields. If this parameter is set to true, quick analysis is enabled for all fields. If this parameter is left blank or set to false, is_analysis in the template is used to determine whether to enable quick analysis.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 FieldModel

Parameter

+

Mandatory

+

Type

+

Description

+

field_name

+

Yes

+

String

+

Field name. A log event can be split into multiple fields with customizable names.

+

Minimum: 1

+

Maximum: 64

+

is_analysis

+

No

+

Boolean

+

Whether quick analysis is enabled.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

The request is successful.

+
 none
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.2014",
+  "error_msg" : "template_id is invalid!"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2014",
+  "error_msg" : "Failed to create struct config."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateTags.html b/docs/lts/api-ref/CreateTags.html new file mode 100644 index 000000000..d1bd1cf43 --- /dev/null +++ b/docs/lts/api-ref/CreateTags.html @@ -0,0 +1,356 @@ + + +

Tag Management

+

Function

This API is used to tag a resource.

+
+

URI

POST /v1/{project_id}/{resource_type}/{resource_id}/tags/action

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

resource_type

+

Yes

+

String

+

Resource type. The value can be groups or topics.

+

resource_id

+

Yes

+

String

+

Resource ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Method of adding tags.

+

is_open

+

Yes

+

Boolean

+

Whether to call external APIs.

+

tags

+

Yes

+

Array of tagsBody objects

+

Tag field information. Up to 20 tag fields are allowed.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tagsBody

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

Yes

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 201

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

Succeeded.

+
none
+

Status code: 201

+

Succeeded.

+
none
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1836",
+  "error_msg" : "action is create or delete"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0203",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Succeeded.

+

201

+

Succeeded.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/CreateTransfer.html b/docs/lts/api-ref/CreateTransfer.html new file mode 100644 index 000000000..b4c2986ba --- /dev/null +++ b/docs/lts/api-ref/CreateTransfer.html @@ -0,0 +1,880 @@ + + +

Creating a Log Transfer Task (New Version)

+

Function

This API is used to create an OBS transfer task.

+
+

URI

POST /v2/{project_id}/transfers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_id

+

Yes

+

String

+

Log group ID.

+

Minimum: 36

+

Maximum: 36

+

log_streams

+

Yes

+

Array of LogStreams objects

+

Log stream list.

+

log_transfer_info

+

Yes

+

log_transfer_info object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 LogStreams

Parameter

+

Mandatory

+

Type

+

Description

+

log_stream_id

+

Yes

+

String

+

Log stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_name

+

No

+

String

+

Log stream name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 log_transfer_info

Parameter

+

Mandatory

+

Type

+

Description

+

log_transfer_type

+

Yes

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+

log_transfer_mode

+

Yes

+

String

+

Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks.

+

log_storage_format

+

Yes

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_status

+

Yes

+

String

+

Log transfer status. The value can be ENABLE, DISABLE, or EXCEPTION. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_agency_transfer

+

No

+

log_agency_transfer object

+

Information about delegated log transfer. This parameter is required if you transfer logs for another account.

+

log_transfer_detail

+

Yes

+

log_transfer_detail object

+

Log transfer details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 log_agency_transfer

Parameter

+

Mandatory

+

Type

+

Description

+

agency_domain_id

+

Yes

+

String

+

Delegator account ID.

+

agency_domain_name

+

Yes

+

String

+

Delegator account name.

+

agency_name

+

Yes

+

String

+

Name of the agency created by the delegator.

+

agency_project_id

+

Yes

+

String

+

Project ID of the delegator.

+

be_agency_domain_id

+

Yes

+

String

+

Account ID of the delegated party (ID of the account that created the log transfer task).

+

be_agency_project_id

+

Yes

+

String

+

Project ID of the delegated party (project ID of the account that created the log transfer task).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 log_transfer_detail

Parameter

+

Mandatory

+

Type

+

Description

+

obs_period

+

Yes

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

Yes

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

Yes

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

Minimum: 3

+

Maximum: 63

+

obs_encrypted_id

+

No

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

Minimum: 36

+

Maximum: 36

+

obs_dir_pre_fix_name

+

No

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

Minimum: 1

+

Maximum: 64

+

obs_prefix_name

+

No

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

Minimum: 1

+

Maximum: 64

+

obs_time_zone

+

No

+

String

+

Time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

No

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

No

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

No

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

No

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

No

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields are logStreamName, regionName, logGroupName, and projectId, which are optional. The tag for enabling transfer is streamTag, which is optional.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_streams

+

Array of log_streams objects

+

Log stream list.

+

log_transfer_id

+

String

+

Log transfer task ID.

+

log_transfer_info

+

log_transfer_info_RespBody object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 log_streams

Parameter

+

Type

+

Description

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 log_transfer_info_RespBody

Parameter

+

Type

+

Description

+

log_agency_transfer

+

log_agency_transfer object

+

Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

+

log_create_time

+

Integer

+

Time when the log transfer task was created.

+

log_storage_format

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_detail

+

TransferDetail object

+

Log transfer details.

+

log_transfer_mode

+

String

+

Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks.

+

log_transfer_status

+

String

+

Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_transfer_type

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 log_agency_transfer

Parameter

+

Type

+

Description

+

agency_domain_id

+

String

+

Delegator account ID.

+

agency_domain_name

+

String

+

Delegator account name.

+

agency_name

+

String

+

Name of the agency created by the delegator.

+

agency_project_id

+

String

+

Project ID of the delegator.

+

be_agency_domain_id

+

String

+

Account ID of the delegated party (ID of the account that created the log transfer task).

+

be_agency_project_id

+

String

+

Project ID of the delegated party (project ID of the account that created the log transfer task).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 TransferDetail

Parameter

+

Type

+

Description

+

obs_period

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

obs_encrypted_id

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

obs_dir_pre_fix_name

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$

+

obs_prefix_name

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^[a-zA-Z0-9._-]*$

+

obs_time_zone

+

String

+

Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields include logStreamName, regionName, logGroupName and projectId, which are optional.

+

The transfer tag streamTag is optional.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Transferring logs to OBS

+
POST https://{endpoint}/v2/{project_id}/transfers
+
+{
+  "log_group_id" : "8ba9e43f-be60-4d8c-9015-xxxxxxxxxxxx",
+  "log_streams" : [ {
+    "log_stream_id" : "c776e1a7-8548-430a-afe5-xxxxxxxxxxxx"
+  } ],
+  "log_transfer_info" : {
+    "log_transfer_type" : "OBS",
+    "log_transfer_mode" : "cycle",
+    "log_storage_format" : "JSON",
+    "log_transfer_status" : "ENABLE",
+    "log_agency_transfer" : {
+      "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+      "agency_name" : "test20210325",
+      "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+      "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+    },
+    "log_transfer_detail" : {
+      "obs_period" : 2,
+      "obs_period_unit" : "min",
+      "obs_bucket_name" : "test0002",
+      "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
+      "obs_dir_pre_fix_name" : "xx",
+      "obs_prefix_name" : "xxxxx",
+      "obs_time_zone" : "UTC+01:00",
+      "obs_time_zone_id" : "Africa/Lagos"
+    }
+  }
+}
+
+

Example Responses

Status code: 200

+

The log transfer task is created.

+

The following parameters are returned for an OBS transfer task:

+
{
+  "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+  "log_group_name" : "lts-group-OBS",
+  "log_streams" : [ {
+    "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+    "log_stream_name" : "lts-topic-OBS"
+  } ],
+  "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+  "log_transfer_info" : {
+    "log_create_time" : 1634802241847,
+    "log_storage_format" : "JSON",
+    "log_agency_transfer" : {
+      "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+      "agency_name" : "test20210325",
+      "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+      "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+    },
+    "log_transfer_detail" : {
+      "obs_period" : 2,
+      "obs_prefix_name" : "",
+      "obs_period_unit" : "min",
+      "obs_transfer_path" : "/0002/LogTanks/xxxx-7/",
+      "obs_bucket_name" : "0002",
+      "obs_encrypted_enable" : false,
+      "obs_dir_pre_fix_name" : "",
+      "obs_time_zone" : "UTC+01:00",
+      "obs_time_zone_id" : "Africa/Lagos",
+      "tags" : [ ]
+    },
+    "log_transfer_mode" : "cycle",
+    "log_transfer_status" : "ENABLE",
+    "log_transfer_type" : "OBS"
+  }
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0207",
+  "error_msg" : "The log stream is associated by transfer"
+}
+

Status code: 500

+

InternalServerError. The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0207",
+  "error_msg" : "The log stream is associated by transfer"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The log transfer task is created.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

InternalServerError. The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/Createfavorite.html b/docs/lts/api-ref/Createfavorite.html new file mode 100644 index 000000000..a3dbd1108 --- /dev/null +++ b/docs/lts/api-ref/Createfavorite.html @@ -0,0 +1,424 @@ + + +

Adding a Log to Favorites

+

Function

This API is used to add a log to favorites.

+
+

URI

POST /v1.0/{project_id}/lts/favorite

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=utf8.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

eps_id

+

No

+

String

+

Enterprise project ID.

+

favorite_resource_id

+

Yes

+

String

+

Favorite resource ID.

+

favorite_resource_type

+

Yes

+

String

+

Favorite resource type.

+
  • LOG_STREAM

    +
  • LOG_GROUP

    +
+

log_group_id

+

Yes

+

String

+

Log group ID.

+

log_group_name

+

No

+

String

+

Log group name.

+

log_stream_id

+

Yes

+

String

+

Log stream ID.

+

log_stream_name

+

No

+

String

+

Log stream name.

+

is_global

+

Yes

+

Boolean

+

Whether global favorites are supported. This parameter must be set to true. Otherwise, logs cannot be added to favorites.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

create_time

+

Integer

+

Creation time.

+

eps_id

+

String

+

Enterprise project ID.

+

favorite_resource_id

+

String

+

Favorite resource ID.

+

favorite_resource_type

+

String

+

Favorite resource type.

+

log_group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+

project_id

+

String

+

Project ID.

+

is_global

+

Boolean

+

Whether to enable the function of adding logs to favorites.

+

log_group_name_alias

+

String

+

Log group alias, which is the same as the log group name by default.

+

log_stream_name_alias

+

String

+

Log stream alias, which is the same as the log stream name by default.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Adding a Log to Favorites

+
POST /v1.0/2a473356cca5487f8373be891bffc1cf/lts/favorite
+
+{
+  "log_group_id" : "d91fff37-9d10-47f1-85de-c2840724908f",
+  "log_group_name" : "lts-group-sgq1",
+  "log_stream_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+  "log_stream_name" : "lts-topic-xxxxtest",
+  "eps_id" : "0",
+  "favorite_resource_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+  "favorite_resource_type" : "log_stream",
+  "is_global" : true
+}
+
+

Example Responses

Status code: 201

+

A log is added to favorites.

+
{
+  "create_time" : 1669018970929,
+  "eps_id" : "0",
+  "favorite_resource_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+  "is_global" : true,
+  "favorite_resource_type" : "LOG_STREAM",
+  "log_group_id" : "d91fff37-9d10-47f1-85de-c2840724908f",
+  "log_group_name" : "lts-group-sgq1",
+  "log_stream_id" : "f2fb0a2d-d4cd-4bc9-ac12-93c6d255883c",
+  "log_stream_name" : "lts-topic-xxxxtest",
+  "project_id" : "2a473356cca5487f8373be891bffc1cf"
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0603",
+    "details" : "group or stream not exist"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "message" : {
+    "code" : "LTS.0203",
+    "details" : "Internal Server Error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

A log is added to favorites.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteAccessConfig.html b/docs/lts/api-ref/DeleteAccessConfig.html new file mode 100644 index 000000000..7ebf23c73 --- /dev/null +++ b/docs/lts/api-ref/DeleteAccessConfig.html @@ -0,0 +1,763 @@ + + +

Deleting Log Ingestion Configurations

+

Function

This API is used to delete log ingestion configurations.

+
+

URI

DELETE /v3/{project_id}/lts/access-config

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

access_config_id_list

+

Yes

+

Array of strings

+

Ingestion configuration ID list.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

result

+

Array of AccessConfigInfo objects

+

Ingestion configuration list.

+

total

+

Long

+

Total number of ingestion configurations.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AccessConfigInfo

Parameter

+

Type

+

Description

+

access_config_id

+

String

+

Ingestion configuration ID.

+

access_config_name

+

String

+

Ingestion configuration name.

+

access_config_type

+

String

+

Ingestion configuration type. The value AGENT indicates host log ingestion.

+

create_time

+

Long

+

Creation time.

+

access_config_detail

+

AccessConfigDeatilResponse object

+

Ingestion configuration details.

+

log_info

+

AccessConfigQueryLogInfo object

+

Log details.

+

host_group_info

+

AccessConfigHostGroupIdList object

+

Host group ID list.

+

access_config_tag

+

Array of accessConfigTagResponse objects

+

Tag information.

+

log_split

+

Boolean

+

Log splitting.

+

binary_collect

+

Boolean

+

Binary collection.

+

cluster_id

+

String

+

CCE cluster ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 AccessConfigDeatilResponse

Parameter

+

Type

+

Description

+

paths

+

Array of strings

+

Collection paths.

+

black_paths

+

Array of strings

+

Collection path blacklist.

+

format

+

AccessConfigFormatCreate object

+

Log format.

+

windows_log_info

+

AccessConfigWindowsLogInfoCreate object

+

Windows event logs.

+

stdout

+

Boolean

+

Standard output switch. This parameter is used only for CCE log ingestion.

+

stderr

+

Boolean

+

Standard error switch. This parameter is used only for CCE log ingestion.

+

pathType

+

String

+

CCE log ingestion type. This parameter is used only for CCE log ingestion.

+

namespaceRegex

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion.

+

podNameRegex

+

String

+

Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion.

+

containerNameRegex

+

String

+

Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion.

+

includeLabels

+

Map<String,String>

+

Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeLabels

+

Map<String,String>

+

Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeEnvs

+

Map<String,String>

+

Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeEnvs

+

Map<String,String>

+

Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logLabels

+

Map<String,String>

+

Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logEnvs

+

Map<String,String>

+

Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeK8sLabels

+

Map<String,String>

+

Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeK8sLabels

+

Map<String,String>

+

Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logK8s

+

Map<String,String>

+

Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 AccessConfigFormatCreate

Parameter

+

Type

+

Description

+

single

+

AccessConfigFormatSingleCreate object

+

Single-line logs.

+

multi

+

AccessConfigFormatMutilCreate object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 AccessConfigFormatSingleCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 AccessConfigFormatMutilCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 10 AccessConfigWindowsLogInfoCreate

Parameter

+

Type

+

Description

+

categorys

+

Array of strings

+

Type of Windows event logs to be collected.

+
  • Application: application event logs.

    +
  • System: system event logs.

    +
  • Security: security event logs.

    +
  • Setup: startup event logs.

    +
+

time_offset

+

AccessConfigTimeOffset object

+

Offset from first collection time.

+

event_level

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.

    +
  • warning: warning events, which may affect system running but do not cause system breakdown.

    +
  • error: error events, which cause system breakdown or prevent the service from running properly.

    +
  • critical: critical events, which may cause system or application failures.

    +
  • verbose: detailed event information, which does not affect the system running.

    +
+
+
+ +
+ + + + + + + + + + + + + +
Table 11 AccessConfigTimeOffset

Parameter

+

Type

+

Description

+

offset

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

String

+

Unit of the time offset.

+
  • day

    +
  • hour

    +
  • sec

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 AccessConfigQueryLogInfo

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_stream_id

+

String

+

Log stream ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_name

+

String

+

Log stream name.

+

log_group_name_alias

+

String

+

Log group alias.

+

log_stream_name_alias

+

String

+

Log stream alias.

+
+
+ +
+ + + + + + + + + +
Table 13 AccessConfigHostGroupIdList

Parameter

+

Type

+

Description

+

host_group_id_list

+

Array of strings

+

List of host group IDs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 accessConfigTagResponse

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 16 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Deleting Log Ingestion Configurations

+
DELETE https://{endpoint}/v3/{project_id}/lts/access-config
+
+/v3/{project_id}/lts/access-config  
+{"access_config_id_list":["xxxx","xxxx"]}
+
+

Example Responses

Status code: 200

+

Ingestion configurations deleted.

+
{
+  "result" : [ {
+    "access_config_detail" : {
+      "black_paths" : [ "/wjy/hei/tesxxx", "/wjy/hei/tesxxx" ],
+      "format" : {
+        "single" : {
+          "mode" : "wildcard",
+          "value" : "1111"
+        }
+      },
+      "paths" : [ "/wjy/tesxxx", "/wjy/texxx", "/wjyxxxxx" ],
+      "windows_log_info" : {
+        "categorys" : [ "System", "Application", "Security", "Setup" ],
+        "event_level" : [ "information", "warning", "error", "critical", "verbose" ],
+        "time_offset" : {
+          "offset" : 168,
+          "unit" : "hour"
+        }
+      }
+    },
+    "access_config_id" : "aa58d29e-21a9-4761-ba16-8xxxxx",
+    "access_config_name" : "CollectionWjyxxxxxt2",
+    "access_config_tag" : [ {
+      "key" : "xxx",
+      "value" : "xxx"
+    }, {
+      "key" : "xxx1",
+      "value" : "xxx1"
+    } ],
+    "access_config_type" : "AGENT",
+    "create_time" : 1635043645628,
+    "host_group_info" : {
+      "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-0xxxxxx6" ]
+    },
+    "log_info" : {
+      "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e89xxxxx0",
+      "log_group_name" : "lts-groupxxxxxka",
+      "log_stream_id" : "c4de0538-53e6-41fd-b951-a8xxxxx58d7",
+      "log_stream_name" : "lts-topic-txxxxx"
+    }
+  } ],
+  "total" : 1
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid access config id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Ingestion configurations deleted.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteHostGroup.html b/docs/lts/api-ref/DeleteHostGroup.html new file mode 100644 index 000000000..cd8b36c4c --- /dev/null +++ b/docs/lts/api-ref/DeleteHostGroup.html @@ -0,0 +1,362 @@ + + +

Deleting a Host Group

+

Function

Delete a host group.

+
+

URI

DELETE /v3/{project_id}/lts/host-group

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_id_list

+

Yes

+

Array of strings

+

List of host group IDs.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

result

+

Array of GetHostGroupInfo objects

+

Host group details.

+

total

+

Long

+

Number of deleted host groups.

+

Minimum: 0

+

Maximum: 1000

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 GetHostGroupInfo

Parameter

+

Type

+

Description

+

host_group_id

+

String

+

Host group ID.

+

host_group_name

+

String

+

Host group name.

+

host_group_type

+

String

+

Host group type.

+

host_id_list

+

Array of strings

+

Host ID list.

+

host_group_tag

+

Array of HostGroupTagResBody objects

+

Tag information.

+

create_time

+

Long

+

Creation time.

+

update_time

+

Long

+

Update time.

+

labels

+

Array of strings

+

Host group ID.

+

agent_access_type

+

String

+

Host access type.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 HostGroupTagResBody

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+

tags_to_streams_enable

+

Boolean

+

Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Delete one or multiple host groups at a time.

+
DELETE https://{endpoint}/v3/{project_id}/lts/host-group
+
+/v3/{project_id}/lts/host-group 
+{"host_group_id_list":["xxxx","xxxx"]}
+
+

Example Responses

Status code: 200

+

Host groups are deleted.

+
{
+    "result" : [{
+            "host_group_id" : "598c77aa-c69b-42f0-8cb8-xxxx5b38",
+            "host_group_name" : "devspoxxxou1",
+            "host_group_type" : "linux",
+            "host_id_list" : ["dc1dab7e-b04xxxx", "xxxxx"],
+            "host_group_tag" : [{
+                    "key" : "xxx",
+                    "value" : "xxx"
+                }, {
+                    "key" : "xxx",
+                    "value" : "xxx"
+                }
+            ],
+            "create_time" : 1635xx9410332,
+            "update_time" : 163xx0332
+        }
+    ],
+    "total" : 1
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1812",
+  "error_msg" : "Invalid host group id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Host groups are deleted.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteLogGroup.html b/docs/lts/api-ref/DeleteLogGroup.html new file mode 100644 index 000000000..bf2a6f2b6 --- /dev/null +++ b/docs/lts/api-ref/DeleteLogGroup.html @@ -0,0 +1,266 @@ + + +

Deleting a Log Group

+

Function

This API is used to delete a specified log group. If log transfer is enabled for log streams in a log group, you need to disable the log transfer before the deletion.

+
+

URI

DELETE /v2/{project_id}/groups/{log_group_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting a log group

+
DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}
+
+/v2/{project_id}/groups/{log_group_id}
+
+

Example Responses

Status code: 400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0201",
+  "error_msg" : "The log group is not existed"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0103",
+  "error_msg" : "Failed to delete log group"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

The request is successful and the log group has been deleted.

+

400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteLogStream.html b/docs/lts/api-ref/DeleteLogStream.html new file mode 100644 index 000000000..d08243d57 --- /dev/null +++ b/docs/lts/api-ref/DeleteLogStream.html @@ -0,0 +1,277 @@ + + +

Deleting a Log Stream

+

Function

This API is used to delete a specified log stream from a specified log group. If log transfer is enabled for a log stream, you need to disable the log transfer before the deletion.

+
+

URI

DELETE /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_id

+

Yes

+

String

+

Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting a log stream

+
DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
+
+/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
+
+

Example Responses

Status code: 400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0208",
+  "error_msg" : "The log stream does not existed"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0203",
+  "error_msg" : "Failed to delete Log stream"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

The request is successful and the log stream has been deleted.

+

400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteNotificationTemplate.html b/docs/lts/api-ref/DeleteNotificationTemplate.html new file mode 100644 index 000000000..13aa93a07 --- /dev/null +++ b/docs/lts/api-ref/DeleteNotificationTemplate.html @@ -0,0 +1,212 @@ + + +

Deleting a Message Template

+

Function

This API is used to delete a notification template.

+
+

URI

DELETE /v2/{project_id}/{domain_id}/lts/events/notification/templates

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

template_names

+

Yes

+

Array of strings

+

Array of names of templates to be deleted.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting a message template

+
DELETE https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+/v2/{project_id}/{domain_id}/lts/events/notification/templates 
+{"template_names":["template1","template2"]}
+
+

Example Responses

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.2015",
+  "error_msg" : "delete template name is empty or projectId is null"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2015",
+  "error_msg" : "Failed to delete notification template."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

If the response body is empty, the request is successfully responded.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteSearchCriterias.html b/docs/lts/api-ref/DeleteSearchCriterias.html new file mode 100644 index 000000000..483c835b1 --- /dev/null +++ b/docs/lts/api-ref/DeleteSearchCriterias.html @@ -0,0 +1,279 @@ + + +

Deleting a Quick Search

+

Function

This API is used to delete a quick search.

+
+

URI

DELETE /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

group_id

+

Yes

+

String

+

ID of the log group whose log streams will be queried. Generally, it contains 36 characters.

+

Minimum: 36

+

Maximum: 36

+

topic_id

+

Yes

+

String

+

Log stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

epsId

+

No

+

String

+

Enterprise project ID.

+

id

+

Yes

+

String

+

Quick search ID.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting a quick search

+
DELETE /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias
+
+{
+  "id" : "345d2276-1ae8-4495-a6ee-bf77c2e5ffb9",
+  "epsId" : "0"
+}
+
+

Example Responses

Status code: 204

+

Quick search deleted.

+
 none
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0208",
+    "details" : "The log stream does not existed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "message" : {
+    "code" : "LTS.0203",
+    "details" : "Internal Server Error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

Quick search deleted.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DeleteTransfer.html b/docs/lts/api-ref/DeleteTransfer.html new file mode 100644 index 000000000..0438453e5 --- /dev/null +++ b/docs/lts/api-ref/DeleteTransfer.html @@ -0,0 +1,530 @@ + + +

Deleting a Log Transfer Task

+

Function

This API is used to delete an OBS transfer task.

+
+

URI

DELETE /v2/{project_id}/transfers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_transfer_id

+

Yes

+

String

+

Log transfer task ID. You can obtain the ID by calling either the API for querying log transfer tasks or the API for creating a log transfer task.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_streams

+

Array of log_streams objects

+

Log stream list.

+

log_transfer_id

+

String

+

Log transfer task ID.

+

log_transfer_info

+

log_transfer_info_RespBody object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 log_streams

Parameter

+

Type

+

Description

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 log_transfer_info_RespBody

Parameter

+

Type

+

Description

+

log_agency_transfer

+

log_agency_transfer object

+

Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

+

log_create_time

+

Integer

+

Time when the log transfer task was created.

+

log_storage_format

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_detail

+

TransferDetail object

+

Log transfer details.

+

log_transfer_mode

+

String

+

Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks.

+

log_transfer_status

+

String

+

Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_transfer_type

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 log_agency_transfer

Parameter

+

Type

+

Description

+

agency_domain_id

+

String

+

Delegator account ID.

+

agency_domain_name

+

String

+

Delegator account name.

+

agency_name

+

String

+

Name of the agency created by the delegator.

+

agency_project_id

+

String

+

Project ID of the delegator.

+

be_agency_domain_id

+

String

+

Account ID of the delegated party (ID of the account that created the log transfer task).

+

be_agency_project_id

+

String

+

Project ID of the delegated party (project ID of the account that created the log transfer task).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 TransferDetail

Parameter

+

Type

+

Description

+

obs_period

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

obs_encrypted_id

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

obs_dir_pre_fix_name

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$

+

obs_prefix_name

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^[a-zA-Z0-9._-]*$

+

obs_time_zone

+

String

+

Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields include logStreamName, regionName, logGroupName and projectId, which are optional.

+

The transfer tag streamTag is optional.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting a log transfer task based on the task ID

+
DELETE https://{endpoint}/v2/{project_id}/transfers
+
+/v2/{project_id}/transfers?log_transfer_id=cfc43c45-9edc-4a03-8578-0eb00cxxxxxx
+
+

Example Responses

Status code: 200

+

The log transfer task is deleted.

+
{
+  "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+  "log_group_name" : "lts-group-OBS",
+  "log_streams" : [ {
+    "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+    "log_stream_name" : "lts-topic-OBS"
+  } ],
+  "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+  "log_transfer_info" : {
+    "log_create_time" : 1634802241847,
+    "log_storage_format" : "JSON",
+    "log_agency_transfer" : {
+      "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+      "agency_name" : "test20210325",
+      "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+      "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+    },
+    "log_transfer_detail" : {
+      "obs_period" : 2,
+      "obs_prefix_name" : "",
+      "obs_period_unit" : "min",
+      "obs_transfer_path" : "/0002/LogTanks/xxx/",
+      "obs_bucket_name" : "0002",
+      "obs_encrypted_enable" : false,
+      "obs_dir_pre_fix_name" : "",
+      "obs_time_zone" : "UTC+01:00",
+      "obs_time_zone_id" : "Africa/Lagos"
+    },
+    "log_transfer_mode" : "cycle",
+    "log_transfer_status" : "ENABLE",
+    "log_transfer_type" : "OBS"
+  }
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0405",
+  "error_msg" : "The log transfer does not existed"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The log transfer task is deleted.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/Deletefavorite.html b/docs/lts/api-ref/Deletefavorite.html new file mode 100644 index 000000000..f885e9c82 --- /dev/null +++ b/docs/lts/api-ref/Deletefavorite.html @@ -0,0 +1,275 @@ + + +

Removing a Resource from Favorites

+

Function

This API is used to remove a specified resource from favorites.

+
+

URI

DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

fav_res_id

+

Yes

+

String

+

ID of a favorite resource, including its log group or stream.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Removing from Favorites

+
DELETE /v1.0/{project_id}/lts/favorite/{fav_res_id}
+
+

Example Responses

Status code: 200

+

Removed from favorites.

+
none
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0009",
+    "details" : "update favorite failed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "message" : {
+    "code" : "LTS.0203",
+    "details" : "Internal Server Error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Removed from favorites.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/DisableLogCollection.html b/docs/lts/api-ref/DisableLogCollection.html new file mode 100644 index 000000000..b49e8eb04 --- /dev/null +++ b/docs/lts/api-ref/DisableLogCollection.html @@ -0,0 +1,177 @@ + + +

Disabling Log Collection Beyond Free Quota

+

Function

This API is used to configure log collection to stop when the free quota runs out.

+
+

URI

POST /v2/{project_id}/collection/disable

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Disabling log collection beyond free quota

+
POST https://{endpoint}/v2/{project_id}/collection/disable
+
+/v2/{project_id}/collection/disable
+
+

Example Responses

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

Failed to change the setting of log collection beyond the free quota.

+
{
+  "error_code" : "LTS.0210",
+  "error_msg" : "Update continue Collection Status error."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

Failed to change the setting of log collection beyond the free quota.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/EnableLogCollection.html b/docs/lts/api-ref/EnableLogCollection.html new file mode 100644 index 000000000..28414ef2b --- /dev/null +++ b/docs/lts/api-ref/EnableLogCollection.html @@ -0,0 +1,182 @@ + + +

Enabling Log Collection Beyond Free Quota

+

Function

This API is used to configure log collection to continue when the free quota runs out.

+
+

URI

POST /v2/{project_id}/collection/enable

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Enabling log collection beyond free quota

+
POST https://{endpoint}/v2/{project_id}/collection/enable
+
+/v2/{project_id}/collection/enable
+
+

Example Responses

Status code: 403

+

Forbidden. The request has been rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

Failed to change the setting of log collection beyond the free quota.

+
{
+  "error_code" : "LTS.0210",
+  "error_msg" : "Update continue Collection Status error."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

403

+

Forbidden. The request has been rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

Failed to change the setting of log collection beyond the free quota.

+

503

+

ServiceUnavailable. The requested service is unavailable.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ErrorCode.html b/docs/lts/api-ref/ErrorCode.html new file mode 100644 index 000000000..9ae70ea39 --- /dev/null +++ b/docs/lts/api-ref/ErrorCode.html @@ -0,0 +1,257 @@ + + +

Error Codes

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Error Codes

+

Error Message

+

Description

+

Solution

+

400

+

LTS.0009

+

Failed to validate the request body.

+

Parameter verification failed.

+

Modify request parameters based on the returned error information and try again.

+

400

+

LTS.0010

+

The system encountered an internal error

+

An internal error occurred

+

An internal error occurred in LTS. Contact technical support.

+

400

+

LTS.0201

+

The log group is not existed

+

Failed to create the log stream because the associated log group does not exist.

+

Check whether the ID of the log group is correct.

+

400

+

LTS.0208

+

Log stream is associated by transfer

+

The log stream does not exist.

+

Check whether the log stream to be deleted exists.

+

400

+

LTS.0301

+

'*' and '?' not allowed as first character

+

Asterisks (*) and question marks (?) are placed in the middle or at the end of a keyword.

+

Check the keywords field based on the error information.

+

400

+

LTS.2001

+

Failed to create alarm rule

+

Creation error.

+

Check whether the project ID is correct.

+

400

+

LTS.2002

+

Failed to delete alarm rule

+

Deletion error.

+

Check whether the database or network connection is normal.

+

400

+

LTS.2003

+

Failed to update alarm rule

+

Modification error.

+

Abnormal connection to the database. Check the database instance status.

+

400

+

LTS.2004

+

The size of alarm rule has exceed the limit: 200

+

The number of alarm rules cannot exceed 200.

+

Delete existing alarm rules that are no longer used.

+

400

+

LTS.2005

+

The parameter is incorrect

+

Incorrect parameter.

+

Correct the parameter based on the returned error information.

+

400

+

LTS.2006

+

Alarm rule name has already exist

+

The alarm rule name already exists.

+

Use another alarm rule name.

+

400

+

LTS.2007

+

Alarm rule not exist

+

The alarm rule does not exist.

+

Check whether the alarm rule exists.

+

400

+

LTS.2008

+

Find Alarm rule failed

+

Failed to query the alarm rule.

+

Check whether the database or network connection is normal.

+

400

+

LTS.2009

+

User must have SMN service authority

+

You must have the permissions on SMN.

+

Acquire the permissions on SMN.

+

400

+

LTS.2010

+

Topics cannot be empty

+

The SMN topic cannot be empty.

+

Check whether the SMN topic is empty.

+

400

+

LTS.2011

+

Alarm rule invalid query frequency or invalid cron expression

+

Invalid query frequency or cron expression.

+

Check the query frequency or cron expression.

+

400

+

LTS.2012

+

The query time range cannot be larger than 1 hour when the query frequency is less than every 5 minutes.

+

The query time range cannot be larger than 1 hour when the query frequency is less than every 5 minutes.

+

Check the query time range and query frequency.

+

400

+

LTS.2013

+

Send Subject Error

+

Incorrect SMN topic.

+

Correct the topic based on the error information.

+

403

+

LTS.0003

+

No permission.

+

Invalid role

+

Grant the LTS service permission.

+

403

+

LTS.0011

+

Invalid projectId

+

Invalid project ID.

+

Ensure that the project ID in the URL is the same as that in the token.

+

500

+

LTS.0107

+

Current user does not have the permission to operate this group

+

Failed to update the log group.

+

Abnormal connection to the database. Check the database instance status.

+
+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListAccessConfig.html b/docs/lts/api-ref/ListAccessConfig.html new file mode 100644 index 000000000..4bc0f6de6 --- /dev/null +++ b/docs/lts/api-ref/ListAccessConfig.html @@ -0,0 +1,947 @@ + + +

Querying Log Ingestion Configurations

+

Function

This API is used to query log ingestion configurations in LTS.

+
+

URI

POST /v3/{project_id}/lts/access-config-list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

access_config_name_list

+

Yes

+

Array of strings

+

List of ingestion configuration names.

+

Minimum: 1

+

Maximum: 64

+

host_group_name_list

+

Yes

+

Array of strings

+

List of host group names.

+

Minimum: 1

+

Maximum: 64

+

log_group_name_list

+

Yes

+

Array of strings

+

List of log group names.

+

Minimum: 1

+

Maximum: 64

+

log_stream_name_list

+

Yes

+

Array of strings

+

List of log stream names.

+

Minimum: 1

+

Maximum: 64

+

access_config_tag_list

+

No

+

Array of accessConfigTag objects

+

Ingestion configuration tags. A tag key must be unique. Up to 20 tags are allowed.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 accessConfigTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

result

+

Array of AccessConfigInfo objects

+

Ingestion configuration list.

+

total

+

Long

+

Total number of ingestion configurations.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 AccessConfigInfo

Parameter

+

Type

+

Description

+

access_config_id

+

String

+

Ingestion configuration ID.

+

access_config_name

+

String

+

Ingestion configuration name.

+

access_config_type

+

String

+

Ingestion configuration type. The value AGENT indicates host log ingestion.

+

create_time

+

Long

+

Creation time.

+

access_config_detail

+

AccessConfigDeatilResponse object

+

Ingestion configuration details.

+

log_info

+

AccessConfigQueryLogInfo object

+

Log details.

+

host_group_info

+

AccessConfigHostGroupIdList object

+

Host group ID list.

+

access_config_tag

+

Array of accessConfigTagResponse objects

+

Tag information.

+

log_split

+

Boolean

+

Log splitting.

+

binary_collect

+

Boolean

+

Binary collection.

+

cluster_id

+

String

+

CCE cluster ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 AccessConfigDeatilResponse

Parameter

+

Type

+

Description

+

paths

+

Array of strings

+

Collection paths.

+

black_paths

+

Array of strings

+

Collection path blacklist.

+

format

+

AccessConfigFormatCreate object

+

Log format.

+

windows_log_info

+

AccessConfigWindowsLogInfoCreate object

+

Windows event logs.

+

stdout

+

Boolean

+

Standard output switch. This parameter is used only for CCE log ingestion.

+

stderr

+

Boolean

+

Standard error switch. This parameter is used only for CCE log ingestion.

+

pathType

+

String

+

CCE log ingestion type. This parameter is used only for CCE log ingestion.

+

namespaceRegex

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion.

+

podNameRegex

+

String

+

Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion.

+

containerNameRegex

+

String

+

Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion.

+

includeLabels

+

Map<String,String>

+

Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeLabels

+

Map<String,String>

+

Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeEnvs

+

Map<String,String>

+

Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeEnvs

+

Map<String,String>

+

Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logLabels

+

Map<String,String>

+

Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logEnvs

+

Map<String,String>

+

Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeK8sLabels

+

Map<String,String>

+

Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeK8sLabels

+

Map<String,String>

+

Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logK8s

+

Map<String,String>

+

Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 AccessConfigFormatCreate

Parameter

+

Type

+

Description

+

single

+

AccessConfigFormatSingleCreate object

+

Single-line logs.

+

multi

+

AccessConfigFormatMutilCreate object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 AccessConfigFormatSingleCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 AccessConfigFormatMutilCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 11 AccessConfigWindowsLogInfoCreate

Parameter

+

Type

+

Description

+

categorys

+

Array of strings

+

Type of Windows event logs to be collected.

+
  • Application: application event logs.
  • System: system event logs.
  • Security: security event logs.
  • Setup: startup event logs.
+

time_offset

+

AccessConfigTimeOffset object

+

Offset from first collection time.

+

event_level

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.
  • warning: warning events, which may affect system running but do not cause system breakdown.
  • error: error events, which cause system breakdown or prevent the service from running properly.
  • critical: critical events, which may cause system or application failures.
  • verbose: detailed event information, which does not affect the system running.
+
+
+ +
+ + + + + + + + + + + + + +
Table 12 AccessConfigTimeOffset

Parameter

+

Type

+

Description

+

offset

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

String

+

Unit of the time offset.

+
  • day
  • hour
  • sec
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 AccessConfigQueryLogInfo

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_stream_id

+

String

+

Log stream ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_name

+

String

+

Log stream name.

+

log_group_name_alias

+

String

+

Log group alias.

+

log_stream_name_alias

+

String

+

Log stream alias.

+
+
+ +
+ + + + + + + + + +
Table 14 AccessConfigHostGroupIdList

Parameter

+

Type

+

Description

+

host_group_id_list

+

Array of strings

+

List of host group IDs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 15 accessConfigTagResponse

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 16 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Log ingestion configurations are filtered by the request body.

+
POST https://{endpoint}/v3/{project_id}/lts/access-config-list
+
+{
+  "access_config_name_list" : [ "Collectionxx2", "22x", "2x", "CollectionWjxxxx" ],
+  "host_group_name_list" : [ "wwxx" ],
+  "log_group_name_list" : [ "lts-grxx", "lts-xx", "lts-gxx" ],
+  "log_stream_name_list" : [ "lts-topixx", "lts-txx" ],
+  "access_config_tag_list" : [ {
+    "key" : "xxx",
+    "value" : "xxx"
+  }, {
+    "key" : "xxx1",
+    "value" : "xxx1"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

The query is successful.

+
{
+  "result" : [ {
+    "access_config_detail" : {
+      "containerNameRegex" : "my",
+      "excludeEnvs" : {
+        "h" : "8"
+      },
+      "excludeK8sLabels" : {
+        "e" : "5"
+      },
+      "excludeLabels" : {
+        "b" : "2"
+      },
+      "format" : {
+        "single" : {
+          "mode" : "system",
+          "value" : "1678969382000"
+        }
+      },
+      "includeEnvs" : {
+        "g" : "7"
+      },
+      "includeK8sLabels" : {
+        "d30" : "4"
+      },
+      "includeLabels" : {
+        "a" : "1"
+      },
+      "logEnvs" : {
+        "i" : "9"
+      },
+      "logK8s" : {
+        "f" : "6"
+      },
+      "logLabels" : {
+        "c" : "3"
+      },
+      "namespaceRegex" : "default",
+      "pathType" : "container_stdout",
+      "paths" : [ ],
+      "podNameRegex" : "abc",
+      "stderr" : false,
+      "stdout" : true
+    },
+    "access_config_id" : "c3152f88-8b06-4f7f-bbbe-129512f49f87",
+    "access_config_name" : "myapinew322",
+    "access_config_tag" : [ {
+      "key" : "my01",
+      "value" : "001"
+    }, {
+      "key" : "my02",
+      "value" : "002"
+    } ],
+    "access_config_type" : "K8S_CCE",
+    "binary_collect" : false,
+    "create_time" : 1684467787996,
+    "host_group_info" : {
+      "host_group_id_list" : [ "12b0bbd1-4eda-456b-a641-647aa66bdeab" ]
+    },
+    "log_info" : {
+      "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+      "log_group_name" : "my-group",
+      "log_stream_id" : "3581bee9-8698-476e-a0ba-b0f310ed99cf",
+      "log_stream_name" : "lts-topic-api"
+    },
+    "log_split" : false
+  }, {
+    "access_config_detail" : {
+      "containerNameRegex" : "my",
+      "excludeEnvs" : {
+        "h" : "8"
+      },
+      "excludeK8sLabels" : {
+        "e" : "5"
+      },
+      "excludeLabels" : {
+        "b" : "2"
+      },
+      "format" : {
+        "single" : {
+          "mode" : "system",
+          "value" : "1678969382000"
+        }
+      },
+      "includeEnvs" : {
+        "g" : "7"
+      },
+      "includeK8sLabels" : {
+        "d10" : "4",
+        "d" : "4",
+        "d12" : "4",
+        "d11" : "4",
+        "d14" : "4",
+        "d13" : "4",
+        "d16" : "4",
+        "d15" : "4",
+        "d18" : "4",
+        "d17" : "4",
+        "d1" : "4",
+        "d2" : "4",
+        "d3" : "4",
+        "d4" : "4",
+        "d5" : "4",
+        "d6" : "4",
+        "d7" : "4",
+        "d8" : "4",
+        "d9" : "4"
+      },
+      "includeLabels" : {
+        "a" : "1"
+      },
+      "logEnvs" : {
+        "i" : "9"
+      },
+      "logK8s" : {
+        "f" : "6"
+      },
+      "logLabels" : {
+        "c" : "3"
+      },
+      "namespaceRegex" : "default",
+      "pathType" : "container_stdout",
+      "paths" : [ ],
+      "podNameRegex" : "abc",
+      "stderr" : false,
+      "stdout" : true
+    },
+    "access_config_id" : "550cd738-7b16-4724-9c59-aba61bf16528",
+    "access_config_name" : "myapinew32",
+    "access_config_tag" : [ {
+      "key" : "my01",
+      "value" : "001"
+    }, {
+      "key" : "my02",
+      "value" : "002"
+    } ],
+    "access_config_type" : "K8S_CCE",
+    "binary_collect" : false,
+    "create_time" : 1684463134956,
+    "host_group_info" : {
+      "host_group_id_list" : [ "12b0bbd1-4eda-456b-a641-647aa66bdeab" ]
+    },
+    "log_info" : {
+      "log_group_id" : "9575cb24-290c-478e-a5db-88d6d1dc513b",
+      "log_group_name" : "my-group",
+      "log_group_name_alias" : "my-group",
+      "log_stream_id" : "3581bee9-8698-476e-a0ba-b0f310ed99cf",
+      "log_stream_name" : "lts-topic-api",
+      "log_stream_name_alias" : "lts-topic-api"
+    },
+    "log_split" : false
+  } ],
+  "total" : 2
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid access config name"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The query is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListBreifStructTemplate.html b/docs/lts/api-ref/ListBreifStructTemplate.html new file mode 100644 index 000000000..e72db4b85 --- /dev/null +++ b/docs/lts/api-ref/ListBreifStructTemplate.html @@ -0,0 +1,276 @@ + + +

Querying the Brief List of Structuring Templates

+

Function

This API is used to query the brief list of structuring templates.

+
+

URI

GET /v3/{project_id}/lts/struct/customtemplate/list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

results

+

Array of BriefStructTemplateModel objects

+

Brief list of structuring templates.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 BriefStructTemplateModel

Parameter

+

Type

+

Description

+

create_time

+

Long

+

Template creation/update time.

+

id

+

String

+

Template ID.

+

template_name

+

String

+

Template name.

+

template_type

+

String

+

Structuring type. Currently, regular expression, JSON, delimiters, and Nginx are supported.

+

project_id

+

String

+

Project ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

message

+

CustomTemplateErrorCode object

+

Request error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 CustomTemplateErrorCode

Parameter

+

Type

+

Description

+

code

+

String

+

LTS error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Obtaining the Brief List of Structuring Templates of the Current Tenant

+
GET https://{endpoint}/v3/{project_id}/lts/struct/customtemplate/list
+
+/v3/{project_id}/lts/struct/customtemplate/list
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "results" : [ {
+    "create_time" : 1632897983441,
+    "id" : "47629e46-287d-478c-8888-xxxxxxxxxxxx",
+    "template_name" : "jsonTemplate",
+    "template_type" : "json",
+    "project_id" : "2a473356cca5487f8373be89xxxxxxxx"
+  } ]
+}
+

Status code: 400

+

Custom log template operation failed.

+
{
+  "message" : {
+    "code" : "LTS.0757",
+    "details" : "Log custom template operation failed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2017",
+  "error_msg" : "Find struct template failed."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

Custom log template operation failed.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListCriterias.html b/docs/lts/api-ref/ListCriterias.html new file mode 100644 index 000000000..4eaa41113 --- /dev/null +++ b/docs/lts/api-ref/ListCriterias.html @@ -0,0 +1,330 @@ + + +

Obtaining a Quick Search

+

Function

This API is used to obtain quick search.

+
+

URI

GET /v1.0/{project_id}/groups/{group_id}/topics/{topic_id}/search-criterias

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

group_id

+

Yes

+

String

+

ID of the log group whose log streams will be queried. Generally, it contains 36 characters.

+

Minimum: 36

+

Maximum: 36

+

topic_id

+

Yes

+

String

+

Log stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

search_type

+

No

+

String

+

Raw logs.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

search_criterias

+

Array of GetQuerySearchCriteriasBody objects

+

Response body.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 GetQuerySearchCriteriasBody

Parameter

+

Type

+

Description

+

criteria

+

String

+

Quick search of a field.

+

name

+

String

+

Quick search of a name.

+

id

+

String

+

Quick search ID.

+

search_type

+

String

+

Quick search type.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Obtaining a Quick Search

+
GET /v1.0/2a473356cca5487f8373be891bffc1cf/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/topics/2b899d46-218c-4f0c-8ace-a36a290a83a0/search-criterias?search_type=ORIGINALLOG
+
+

Example Responses

Status code: 200

+

Quick search obtained.

+
{
+  "search_criterias" : [ {
+    "criteria" : "content : 1234567891234567891234567891234567891234567891234567891234567894",
+    "name" : "Creating a Number",
+    "id" : "0eb379f5-f847-4d25-ba89-05967bf1bae3",
+    "search_type" : "ORIGINALLOG"
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0208",
+    "details" : "The log stream does not existed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0203",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Quick search obtained.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListHost.html b/docs/lts/api-ref/ListHost.html new file mode 100644 index 000000000..b34af702b --- /dev/null +++ b/docs/lts/api-ref/ListHost.html @@ -0,0 +1,404 @@ + + +

Querying Host Information

+

Function

Query the host list.

+
+

URI

POST /v3/{project_id}/lts/host-list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=utf8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

host_id_list

+

No

+

Array of strings

+

Host ID list. You can filter hosts by host ID.

+

Minimum: 36

+

Maximum: 36

+

filter

+

Yes

+

GetHostListFilter object

+

Filters other than host IDs.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 GetHostListFilter

Parameter

+

Mandatory

+

Type

+

Description

+

host_name_list

+

No

+

Array of strings

+

Host name list. You can filter hosts by host name.

+

Minimum: 1

+

Maximum: 128

+

host_ip_list

+

No

+

Array of strings

+

List of host IP addresses. You can filter hosts by host IP address.

+

Minimum: 1

+

Maximum: 16

+

host_status

+

No

+

String

+

Host status. You can filter hosts by host status.

+
  • uninstall: not installed.

    +
  • running: running.

    +
  • offline: offline.

    +
  • error: abnormal.

    +
  • plugin error: plug-in error.

    +
  • installing: installing.

    +
  • install-fail: Installation failed.

    +
  • upgrading: upgrading.

    +
  • upgrade failed: Upgrade failed.

    +
  • uninstalling: being uninstalled.

    +
  • authentication error: Authentication failed.

    +
+

host_version

+

No

+

String

+

Host version. You can filter hosts by host version.

+

Minimum: 1

+

Maximum: 16

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

result

+

Array of GetHostListInfo objects

+

Host list.

+

total

+

Long

+

Total number of hosts.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 GetHostListInfo

Parameter

+

Type

+

Description

+

host_id

+

String

+

Host ID.

+

host_ip

+

String

+

Host IP.

+

host_name

+

String

+

Host name.

+

host_status

+

String

+

Host status.

+
  • uninstall: not installed.

    +
  • running: running.

    +
  • offline: offline.

    +
  • error: abnormal.

    +
  • plugin error: plug-in error.

    +
  • installing: installing.

    +
  • install-fail: Installation failed.

    +
  • upgrading: upgrading.

    +
  • upgrade failed: Upgrade failed.

    +
  • uninstalling: being uninstalled.

    +
  • authentication error: Authentication failed.

    +
+

host_type

+

String

+

Host type.

+
  • Windows

    +
  • Linux

    +
+

host_version

+

String

+

Host version.

+

update_time

+

Long

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Hosts are sorted by filters specified in the request body. If no filters are configured in the body, all host groups are queried.

+
POST https://{endpoint}/v3/{project_id}/lts/host-list
+
+{
+  "host_id_list" : [ "713a9f81-574b-45aa-92df-24c4caxxxxxx", "c7085aa9-2142-4ada-9f78-bf81ffxxxxxx" ],
+  "filter" : {
+    "host_name_list" : [ "ecs-xxxx", "10.66.16xxx" ],
+    "host_ip_list" : [ "192.168xxxx" ],
+    "host_status" : "running",
+    "host_version" : "5.13.xxxx"
+  }
+}
+
+

Example Responses

Status code: 200

+

The host query is successful.

+
{
+  "result" : [ {
+    "host_id" : "dc1dab7e-b045-4e77-bda4-914xxxxxx",
+    "host_ip" : "172.16.xxxx",
+    "host_name" : "ecs-apmtexxxxxx",
+    "host_status" : "running",
+    "host_type" : "linux",
+    "host_version" : "5.13.xx.x",
+    "update_time" : 1637223314526
+  } ],
+  "total" : 1
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid host id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The host query is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListHostGroup.html b/docs/lts/api-ref/ListHostGroup.html new file mode 100644 index 000000000..e13160bae --- /dev/null +++ b/docs/lts/api-ref/ListHostGroup.html @@ -0,0 +1,497 @@ + + +

Querying Host Groups

+

Function

Query the host group list.

+
+

URI

POST /v3/{project_id}/lts/host-group-list

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_id_list

+

No

+

Array of strings

+

List of host group IDs.

+

Minimum: 36

+

Maximum: 36

+

filter

+

Yes

+

GetHostGroupListFilter object

+

Host group filters.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 GetHostGroupListFilter

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_type

+

No

+

String

+

Host group type.

+
  • Windows
  • Linux
+

host_group_name_list

+

No

+

Array of strings

+

List of host group names.

+

Minimum: 1

+

Maximum: 64

+

host_name_list

+

No

+

Array of strings

+

Host name list.

+

Minimum: 1

+

Maximum: 128

+

host_group_tag

+

No

+

GetHostGroupListTag object

+

Host group tags.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 GetHostGroupListTag

Parameter

+

Mandatory

+

Type

+

Description

+

tag_type

+

No

+

String

+

Tag type. Tag filtering logic: AND or OR.

+

tag_list

+

No

+

Array of HostGroupTag objects

+

Host group tags.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 6 HostGroupTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

result

+

Array of GetHostGroupInfo objects

+

Host group list.

+

total

+

Long

+

Total number of host groups.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 GetHostGroupInfo

Parameter

+

Type

+

Description

+

host_group_id

+

String

+

Host group ID.

+

host_group_name

+

String

+

Host group name.

+

host_group_type

+

String

+

Host group type.

+

host_id_list

+

Array of strings

+

Host ID list.

+

host_group_tag

+

Array of HostGroupTagResBody objects

+

Tag information.

+

create_time

+

Long

+

Creation time.

+

update_time

+

Long

+

Update time.

+

labels

+

Array of strings

+

Host group ID.

+

agent_access_type

+

String

+

Host access type.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 9 HostGroupTagResBody

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+

tags_to_streams_enable

+

Boolean

+

Whether to apply the tag to the log stream. Only a tag of a log group can be directly applied to its log stream.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Host groups are sorted by filters specified in the request body. If no filters are configured in the body, all host groups are queried.

+
POST https://{endpoint}/v3/{project_id}/lts/host-group-list
+
+{
+  "host_group_id_list" : [ "bca6d903-3528-42a8-91f4-586722cxxxxx" ],
+  "filter" : {
+    "host_group_type" : "linux",
+    "host_group_name_list" : [ "wjyTxxx" ],
+    "host_name_list" : [ "ecs-apmtexxxdeletion" ],
+    "host_group_tag" : {
+      "tag_type" : "AND",
+      "tag_list" : [ {
+        "key" : "xxx",
+        "value" : "xxx",
+        "tags_to_streams_enable" : true
+      } ]
+    }
+  }
+}
+
+

Example Responses

Status code: 200

+

The host group query is successful.

+
{
+  "result" : [ {
+    "host_group_id" : "598c77aa-c69b-42f0-8cb8-xxxx5b38",
+    "host_group_name" : "wjyTxxx",
+    "host_group_type" : "linux",
+    "host_id_list" : [ "dc1dab7e-b04xxxx", "xxxxx" ],
+    "host_group_tag" : [ {
+      "key" : "xxx",
+      "value" : "xxx"
+    } ],
+    "create_time" : 1635459410332,
+    "update_time" : 163560332
+  } ],
+  "total" : 1
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid host group id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The host group query is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListLogGroups.html b/docs/lts/api-ref/ListLogGroups.html new file mode 100644 index 000000000..dc566d304 --- /dev/null +++ b/docs/lts/api-ref/ListLogGroups.html @@ -0,0 +1,300 @@ + + +

Querying All Log Groups of an Account

+

Function

This API is used to query all log groups of an account.

+
+

URI

GET /v2/{project_id}/groups

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

log_groups

+

Array of LogGroup objects

+

Log group information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 LogGroup

Parameter

+

Type

+

Description

+

creation_time

+

Long

+

Log group creation time.

+

log_group_name

+

String

+

Log group name.

+

Minimum: 1

+

Maximum: 64

+

log_group_id

+

String

+

Log group ID.

+

Minimum: 36

+

Maximum: 36

+

ttl_in_days

+

Integer

+

Log retention duration (days).

+

Minimum: 1

+

Maximum: 365

+

tag

+

Map<String,String>

+

Log group tag.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying All Log Groups of an Account

+
GET https://{endpoint}/v2/{project_id}/groups
+
+/v2/{project_id}/groups
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "log_groups" : [ {
+    "creation_time" : 1630547141853,
+    "log_group_name" : "lts-group-01nh",
+    "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2d664",
+    "ttl_in_days" : 7
+  } ]
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListLogHistogram.html b/docs/lts/api-ref/ListLogHistogram.html new file mode 100644 index 000000000..44e46b0d5 --- /dev/null +++ b/docs/lts/api-ref/ListLogHistogram.html @@ -0,0 +1,384 @@ + + +

Querying the Log Histogram

+

Function

This API is used to query the distribution of reported log events that contain a specified keyword over a certain period. If no keyword is specified, the distribution of all log events reported over the period is returned.

+
+

URI

POST /v2/{project_id}/lts/keyword-count

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_time

+

Yes

+

String

+

Start time, which is a timestamp accurate to millisecond.

+

end_time

+

Yes

+

String

+

End time, which is a timestamp accurate to millisecond.

+

step_interval

+

Yes

+

Long

+

Time step, in milliseconds (ms).

+

Recommended formula:

+

(end_time-start_time)/1000 x 1000/60, where /1000 x 1000 means rounding to an integer.

+
NOTE:

If the calculated result is less than or equal to 1000, the value 1000 is used.

+
+

group_id

+

Yes

+

String

+

Log group ID.

+

Minimum: 36

+

Maximum: 36

+

stream_id

+

Yes

+

String

+

Log stream ID.

+

Minimum: 36

+

Maximum: 36

+

key_word

+

Yes

+

String

+

A keyword is a word between two adjacent delimiters.

+

is_iterative

+

No

+

Boolean

+

Whether the log query is iterative. The default value is false, indicating that the log query is not iterative.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

count

+

Long

+

Number of logs.

+

histogram

+

Map<String,HistogramResponseBody>

+

Histogram result.

+

isQueryComplete

+

Boolean

+

Whether the query is complete.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 HistogramResponseBody

Parameter

+

Type

+

Description

+

count

+

Long

+

Total number of log events.

+

histogram

+

histogram object

+

Log histogram.

+

isQueryComplete

+

Boolean

+

Whether the query is complete.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 histogram

Parameter

+

Type

+

Description

+

num

+

Long

+

Number of log events in a time range.

+

startTime

+

String

+

Start time of a time range, in milliseconds.

+

endTime

+

String

+

End time of a time range, in milliseconds.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying the log histogram

+
POST https://{endpoint}/v2/{project_id}/lts/keyword-count
+
+{
+  "group_id" : "00330565-5baf-4e0d-bd16-ba0c6b951d9a",
+  "stream_id" : "715cda3b-e17f-492a-a6ca-98a1ba16ad8c",
+  "end_time" : 1637820813605,
+  "start_time" : 1637817213605,
+  "key_word" : "test",
+  "step_interval" : 6000
+}
+
+

Example Responses

Status code: 200

+

The query is successful.

+
{
+  "count" : 1,
+  "histogram" : [ {
+    "num" : 1,
+    "startTime" : 1637821594579,
+    "endTime" : 1637821595000
+  }, {
+    "num" : 0,
+    "startTime" : 1637821654000,
+    "endTime" : 1637821654579
+  } ],
+  "isQueryComplete" : true
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0601",
+  "error_msg" : "must be less than or equal to 86400000"
+}
+

Status code: 500

+

InternalServerError. The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0202",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The query is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

InternalServerError. The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListLogStream.html b/docs/lts/api-ref/ListLogStream.html new file mode 100644 index 000000000..cf7898ec5 --- /dev/null +++ b/docs/lts/api-ref/ListLogStream.html @@ -0,0 +1,312 @@ + + +

Querying All Log Streams in a Specified Log Group

+

Function

This API is used to query information about all log streams in a specified log group.

+
+

URI

GET /v2/{project_id}/groups/{log_group_id}/streams

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

log_streams

+

Array of LogStreamResBody objects

+

Log stream.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 LogStreamResBody

Parameter

+

Type

+

Description

+

creation_time

+

Long

+

Creation time.

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+

tag

+

Map<String,String>

+

Log stream tags.

+

filter_count

+

Integer

+

Number of filters.

+

is_favorite

+

Boolean

+

Whether to add a log stream to favorites.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying All Log Streams in a Specified Log Group

+
GET https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
+
+/v2/{project_id}/groups/{log_group_id}/streams
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "log_streams" : [ {
+    "creation_time" : 1630549842955,
+    "log_stream_name" : "lts-stream-02kh",
+    "log_stream_id" : "c54dbc58-0fd8-48ed-b007-6d54981427a7",
+    "filter_count" : 0
+  } ]
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListLogStreams.html b/docs/lts/api-ref/ListLogStreams.html new file mode 100644 index 000000000..1d649102a --- /dev/null +++ b/docs/lts/api-ref/ListLogStreams.html @@ -0,0 +1,296 @@ + + +

Querying Log Streams

+

Function

This API is used to query log streams.

+
+

URI

GET /v2/{project_id}/log-streams

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_name

+

No

+

String

+

Log group name.

+

Minimum: 1

+

Maximum: 64

+

log_stream_name

+

No

+

String

+

Log stream name.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

log_streams

+

Array of LogStreamNoIsFavorite objects

+

List of log groups.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 LogStreamNoIsFavorite

Parameter

+

Type

+

Description

+

creation_time

+

Long

+

Time when a log stream is created.

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+

tag

+

Map<String,String>

+

Log stream tag.

+

filter_count

+

Integer

+

Number of filters.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

If you leave the request body empty, all log streams are queried. If log_group_name and log_stream_name are specified, the corresponding log stream is queried.

+
GET https://{endpoint}/v2/{project_id}/log-streams
+
+/v2/{project_id}/log-streams /v2/{project_id}/log-streams?log_group_name=lts-group-txxxx
+/v2/{project_id}/log-streams?log_stream_name=lts-xunjian-topic-xxxx 
+/v2/{project_id}/log-streams?log_stream_name=lts-xunjian-topic-xxxx&log_group_name=lts-group-xxx
+
+

Example Responses

Status code: 200

+

Log stream information is returned.

+
{
+  "log_streams" : [ {
+    "creation_time" : 1633600371062,
+    "log_stream_name" : "lts-topic-test2",
+    "tag" : {
+      "_sys_enterprise_project_id" : "0",
+      "W" : "J"
+    },
+    "filter_count" : 0,
+    "log_stream_id" : "c4de0538-53e6-41fd-b951-a8669fce58d7"
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0205",
+  "error_msg" : "The log stream name has been existed"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Log stream information is returned.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListLogs.html b/docs/lts/api-ref/ListLogs.html new file mode 100644 index 000000000..1af51f61d --- /dev/null +++ b/docs/lts/api-ref/ListLogs.html @@ -0,0 +1,906 @@ + + +

Querying Logs

+

Function

This API is used to query logs in a specified log stream.

+
+

URI

POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_id

+

Yes

+

String

+

Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_time

+

Yes

+

String

+

UTC start time of the search window (in milliseconds).

+
NOTE:

Maximum query time range: 180 days

+
+

end_time

+

Yes

+

String

+

UTC end time of the search window (in milliseconds).

+
NOTE:

Maximum query time range: 180 days

+
+

labels

+

No

+

Map<String,String>

+

Filter criteria, which vary between log sources.

+

keywords

+

No

+

String

+

Keyword used for log search. A keyword is a word between two adjacent delimiters, for example, error.

+

line_num

+

No

+

String

+

Sequence number of a log event. This parameter is not required for the first query, but is required for subsequent pagination queries. The value can be obtained from the response of the last query. The value of line_num should be between the values of start_time and end_time. If the custom time function is enabled, you need to use both this field and the time field to perform pagination query.

+

Minimum: 19

+

Maximum: 19

+

__time__

+

No

+

String

+

If the custom time function is enabled, use both this field and the line_num field for pagination queries. The parameter values can be obtained from the returned information of the last query.

+

is_desc

+

No

+

Boolean

+

Whether the search order is descending. The default value is false (ascending). You can also set the value to true (descending).

+

search_type

+

No

+

String

+

The value is init (default value) for the first query, or forwards or backwards for a pagination query. This parameter is used together with is_desc for pagination queries.The value can be forwards or backwards.

+

limit

+

No

+

Integer

+

Number of logs to be queried each time. The value is 50 when this parameter is not set. You are advised to set this parameter to 100.

+

Minimum: 1

+

Maximum: 5000

+

highlight

+

No

+

Boolean

+

Whether the keyword is highlighted. The default value is true (highlighted). You can also set the value to false (not highlighted).

+

is_count

+

No

+

Boolean

+

Whether the number of log events is counted. The default value is false (not counted). You can also set the value to true (counted).

+

is_iterative

+

No

+

Boolean

+

Whether the log query is iterative. The default value is false (not iterative). You can also set the value to true (iterative).

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

logs

+

Array of LogContents objects

+

Log information.

+

count

+

Integer

+

Number of logs.

+

isQueryComplete

+

Boolean

+

Indicates whether the query is complete.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 LogContents

Parameter

+

Type

+

Description

+

content

+

String

+

Raw log data.

+

line_num

+

String

+

Sequence number of a log line.

+

labels

+

Map<String,String>

+

Labels contained in a log event. The labels vary depending on log events.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

The request is successful.

+ +

Status code: 400

+

Bad request. The request is invalid or the query statement is incorrect. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "Failed to validate the request body"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0003",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0202",
+  "error_msg" : "Failed to query lts log"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

Bad request. The request is invalid or the query statement is incorrect. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListNotificationTemplate.html b/docs/lts/api-ref/ListNotificationTemplate.html new file mode 100644 index 000000000..17ccab0f9 --- /dev/null +++ b/docs/lts/api-ref/ListNotificationTemplate.html @@ -0,0 +1,243 @@ + + +

Previewing the Email Format of a Message Template

+

Function

This API is used to preview the email format of a notification template.

+
+

URI

POST /v2/{project_id}/{domain_id}/lts/events/notification/templates/view

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

templates

+

Yes

+

String

+

Email template content.

+

Minimum: 2

+

Maximum: 1024

+

language

+

Yes

+

String

+

Language type, for example, en-us.

+

source

+

Yes

+

String

+

Source. The value can only be LTS.

+

Minimum: 3

+

Maximum: 3

+

subject

+

No

+

String

+

The content of this field is rendered to be used as the title of the message template.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

template

+

String

+

The value is an HTML text and needs to be parsed before being displayed.

+

subject

+

String

+

The title displayed after the field is parsed. It is displayed at the top of the returned HTML text.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Previewing the email format of a message template

+
POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates/view
+
+{
+  "templates" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+  "language" : "en-us",
+  "source" : "LTS",
+  "subject" : "${region_name}[${event_severity}_${event_type}_${clear_type}] generated an alarm at ${starts_at}"
+}
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "template" : "<style>    span {        display: inline-block;        float: left;        font-size: 14px;    }    b {        display: inline-block;        float: left;        color: #252B3A;        font-size: 14px    }</style><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"       style=\"font-family:Helvetica,Arial,PingFangSC-Regular,Hiragino Sans GB;border-spacing:0px 14px;font-size:14px;padding-left: 30px;line-height:25px;\">    <thead>    <tr style=\"font-size:14px;\">        <td colspan=\"2\" style=\"line-height:28px;color:#6e6e6e;font-size:14px\">            <b>Dear&nbsp;</b>            <b>user,</b>            <b>&nbsp;, </b>        </td>    </tr>    </thead>    <tr>        <td colspan=\"2\">            <span>One notification has been&nbsp;</span>            <span>added</span>            <span>&nbsp;in region&nbsp;</span>            <b>xx</b>            <span>&nbsp;based on&nbsp;</span>            <span>alarm rule&nbsp;</span>            <b>action_rule</b>            <span>. For more information, go to the LTS console.</span>            <br>            <br>        </td>    </tr>    <tr style=\"font-size:14px;\">        <td colspan=\"2\">            <p style=\"margin-top: -26px;margin-bottom: -20px;\">            <br>                <span style=\"color:#252B3A;line-height:24px\">Here are the details.</span>            </p>        </td>    </tr>    <td><div>Severity: Major;<br>Occurred: 2022-03-21 18:23:20 GMT+08:00;<br>Alarm source: N/A;<br>Resource type: N/A;<br>Resource ID: CCE;<br>Statistical type: by keyword;<br>Expression: N/A;<br>Current value: N/A;<br>Statistical period: N/A;<br>Query time: N/A;<br>Query log: N/A;<br><div/></td>  </table>",
+  "subject" : "[Major_alarm_add] generated an alarm at 2022-03-21 18:23:20 GMT+08:00",
+    }
+}
+

Status code: 500

+

An error is reported when an incorrect domain ID is entered.

+
{
+  "error_code" : "LTS.2019",
+  "error_msg" : "Failed to preview notification template."
+}
+
+

Status Codes

+
+ + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

500

+

An error is reported when an incorrect domain ID is entered.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListNotificationTemplates.html b/docs/lts/api-ref/ListNotificationTemplates.html new file mode 100644 index 000000000..d94c64039 --- /dev/null +++ b/docs/lts/api-ref/ListNotificationTemplates.html @@ -0,0 +1,309 @@ + + +

Querying Message Templates

+

Function

This API is used to query the message template list.

+
+

URI

GET /v2/{project_id}/{domain_id}/lts/events/notification/templates

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

results

+

Array of NotificationTemplate objects

+

Template array.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 NotificationTemplate

Parameter

+

Type

+

Description

+

name

+

String

+

Notification rule name.

+

type

+

Array of strings

+

Notification method.

+

desc

+

String

+

Template description.

+

source

+

String

+

Template source.

+

locale

+

String

+

Language.

+

templates

+

Array of SubTemplateResBody objects

+

Template body, which is an array.

+

create_time

+

Long

+

Creation time (timestamp in milliseconds).

+

modify_time

+

Long

+

Update time (timestamp in milliseconds).

+

project_id

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 SubTemplateResBody

Parameter

+

Type

+

Description

+

sub_type

+

String

+

Template subtype, for example, sms or email.

+

content

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL).

+

topic

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying a message template

+
GET https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "results" : [ {
+    "create_time" : 1701352010150,
+    "desc" : "This is the email test mode.",
+    "locale" : "en-us",
+    "modify_time" : 1701352010150,
+    "name" : "15nWzUsOHA",
+    "project_id" : "2a473356cca5487f8373be891bffc1cf",
+    "source" : "LTS",
+    "templates" : [ {
+      "content" : "\"This is an email test template.\"",
+      "sub_type" : "email"
+    } ],
+    "type" : [ "" ]
+  }, {
+    "create_time" : 1702021411612,
+    "desc" : "This is the SMS test mode.",
+    "locale" : "en-us",
+    "modify_time" : 1702021411612,
+    "name" : "RZ2ObeluNN",
+    "project_id" : "2a473356cca5487f8373be891bffc1cf",
+    "source" : "LTS",
+    "templates" : [ {
+      "content" : "\"This is an SMS test template.\"",
+      "sub_type" : "sms"
+    } ],
+    "type" : [ "" ]
+  } ]
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2017",
+  "error_msg" : "Find Alarm rule failed."
+}
+
+

Status Codes

+
+ + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListQueryAllSearchCriterias.html b/docs/lts/api-ref/ListQueryAllSearchCriterias.html new file mode 100644 index 000000000..656e82830 --- /dev/null +++ b/docs/lts/api-ref/ListQueryAllSearchCriterias.html @@ -0,0 +1,348 @@ + + +

Querying All Quick Searches in a Log Group

+

Function

This API is used to query all quick searches in a log group.

+
+

URI

GET /v1.0/{project_id}/lts/groups/{group_id}/search-criterias

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

group_id

+

Yes

+

String

+

ID of the log group whose log streams will be queried. Generally, it contains 36 characters.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

search_criterias

+

Array of search_criteriasBody objects

+

Quick search.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 search_criteriasBody

Parameter

+

Type

+

Description

+

criterias

+

Array of GetQuerySearchCriteriasBody objects

+

Quick search of a single log stream.

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+

search_type

+

String

+

Quick search type.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 GetQuerySearchCriteriasBody

Parameter

+

Type

+

Description

+

criteria

+

String

+

Quick search of a field.

+

name

+

String

+

Quick search of a name.

+

id

+

String

+

Quick search ID.

+

search_type

+

String

+

Quick search type.

+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

message

+

ErrorMessagebody object

+

Error message body.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 ErrorMessagebody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+
+

Example Requests

Querying All Quick Searches in a Log Group

+
GET /v1.0/2a473356cca5487f8373be891bffc1cf/lts/groups/d1f4240d-5ee2-4e0b-9e2c-e25c7978c001/search-criterias
+
+

Example Responses

Status code: 200

+

Obtained.

+
{
+  "search_criterias" : [ {
+    "criterias" : [ {
+      "criteria" : "234",
+      "name" : "234",
+      "id" : "aee53496-xxxx-xxxx-xxxx-5a83d1aae134",
+      "search_type" : "ORIGINALLOG"
+    }, {
+      "criteria" : "24",
+      "name" : "2342",
+      "id" : "939c930a-xxxx-xxxx-xxxx-a3040d857ce1",
+      "search_type" : "ORIGINALLOG"
+    } ],
+    "log_stream_id" : "85025a4b-xxxx-xxxx-xxxx-2b6851d84ea2",
+    "log_stream_name" : "lts-test-topic",
+    "search_type" : "ORIGINALLOG"
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "message" : {
+    "code" : "LTS.0201",
+    "details" : "The log group does not existed"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "message" : {
+    "code" : "LTS.0203",
+    "details" : "Internal Server Error"
+  }
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Obtained.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListStructTemplate.html b/docs/lts/api-ref/ListStructTemplate.html new file mode 100644 index 000000000..bd4582405 --- /dev/null +++ b/docs/lts/api-ref/ListStructTemplate.html @@ -0,0 +1,544 @@ + + +

Querying a Structuring Template

+

Function

This API is used to query a structuring template.

+

Note:

+

A user can call this API for up to 50 times per second.

+
+

URI

GET /v3/{project_id}/lts/struct/customtemplate

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

id

+

No

+

String

+

ID of the template to be queried. This parameter is optional. If this parameter is not specified, all custom structuring templates used in the project are returned.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

results

+

Array of StructTemplateModel objects

+

Array of queried customized structuring templates.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 StructTemplateModel

Parameter

+

Type

+

Description

+

project_id

+

String

+

Project ID.

+

template_name

+

String

+

Template name.

+

template_type

+

String

+

Template type. The options are regular expression, JSON, delimiter, and Nginx.

+

demo_log

+

String

+

Sample log event.

+

demo_fields

+

Array of DemoField objects

+

Example field array.

+

tag_fields

+

Array of TagFieldNew objects

+

Tag field array.

+

rule

+

TemplateRule object

+

Structuring rule object.

+

demo_label

+

String

+

Example log tag.

+

create_time

+

Long

+

Creation time.

+

id

+

String

+

Template ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 DemoField

Parameter

+

Type

+

Description

+

field_name

+

String

+

Field name.

+

content

+

String

+

Example field content, which is the example value of a field.

+

type

+

String

+

Field data type.

+

Value: string, long, or float

+

is_analysis

+

Boolean

+

Whether to enable quick analysis.

+

index

+

Integer

+

Field number in manual regular expression and delimiter modes.

+

relation

+

String

+

Describes the hierarchical relationship between fields in a multi-level JSON file.

+

user_defined_name

+

String

+

Custom field alias in JSON and Nginx modes.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 TagFieldNew

Parameter

+

Type

+

Description

+

field_name

+

String

+

Field name.

+

content

+

String

+

Example field content, which is the example value of a field.

+

type

+

String

+

Field data type.

+

Value: string, long, or float

+

is_analysis

+

Boolean

+

Whether to enable quick analysis.

+

index

+

Integer

+

Sequence number (starting from 0).

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 TemplateRule

Parameter

+

Type

+

Description

+

type

+

String

+

Structuring type. Currently, regular expression, JSON, delimiters, and Nginx are supported.

+

param

+

String

+

Specific structuring rule. Each structuring type has a unique structure:

+

A manual regular expression is a JSON string that contains the keyObject and regex_rules objects. keyObject contains key-value pairs, where a key indicates the index of an element in the demo_fields array, and a value indicates field_name. regex_rules is a regular expression. Example:

+
{\"keyObject\":{\"1\":\"date\",\"2\":\"num\"},\"regex_rules\":\"^(?<date>[^/]+)(?:[^]* ){8}(?<num>\\\\d+)\"}
+

In JSON mode, param is a JSON string that contains the keyObject and layers objects. keyObject contains key-value pairs, where a key indicates the field_name of an element in the demo_fields array, and a value indicates user_defined_name. layers indicates the maximum number of parsing layers. Its maximum value is 4. Example:

+
{\"keyObject\":{\"metadata.dimension\":\"dimension\",\"metadata.value\":\"\",\"metadata.unit\":\"\",\"collectionTime\":\"\"},\"layers\":3}
+

The delimiter mode uses a JSON string that contains the keyObject and tokenizer objects. keyObject contains key-value pairs, where a key indicates the index of an element in the demo_fields array, and a value indicates field_name. tokenizer indicates delimiters. Example:

+
{\"keyObject\":{\"0\":\"field1\",\"1\":\"field2\",\"2\":\"field3\",\"3\":\"field4\",\"4\":\"field5\",\"5\":\"field6\",\"6\":\"field7\",\"7\":\"field8\",\"8\":\"field9\"},\"tokenizer\":\"\"}
+

The Nginx mode uses a JSON string that contains the keyObject, regex, field_names, and log_format objects. keyObject contains key-value pairs, where a key indicates the field_name of an element in the demo_fields array, and a value indicates user_defined_name. regex is a regular expression, where the field_names object is the combination of field_name of each element in the demo_fields array. field_names are separated by commas (,). The log_format object indicates the Nginx log formatting mode. Example:

+
{\"keyObject\": { 		 \"http_host\": \"host\", 		 \"remote_addr\": \"\", 		 \"request_method\": \"\", 		 \"request_uri\": \"\", 		 \"time_local\": \"\" 	 }, 	 \"regex\": \"(\\\\d+/\\\\S+/\\\\d+:\\\\d+:\\\\d+:\\\\d+)\\\\s+\\\\S+\\\\s+(\\\\S*)\\\\s+(\\\\S*)\\\\s+(\\\\S*)\\\\s+\\\"([^\\\"]*)\\\".*\", 	 \"fieldNames\": \"time_local,remote_addr,request_method,http_host,request_uri\", 	 \"log_format\": \"log_format '$upstreaminfo '$time_local $remote_addr  $request_method $http_host\\\"$request_uri\\\"';\" }
+
+
+

Status code: 400

+ +
+ + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

message

+

CustomTemplateErrorCode object

+

Request error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 CustomTemplateErrorCode

Parameter

+

Type

+

Description

+

code

+

String

+

LTS error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying Details About the Current Structuring Template

+
GET https://{endpoint}/v3/{project_id}/lts/struct/customtemplate?id=bc8e3f2c-87fe-4acd-8439-69cdf29251c1
+
+/v3/{project_id}/lts/struct/customtemplate?id=bc8e3f2c-87fe-4acd-8439-69cdf29251c1
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "results" : [ {
+    "create_time" : 1641258099551,
+    "demo_fields" : [ {
+      "content" : "2022-01-03/14:52:28",
+      "field_name" : "field1",
+      "index" : 0,
+      "is_analysis" : true,
+      "type" : "string"
+    }, {
+      "content" : "this",
+      "field_name" : "field2",
+      "index" : 1,
+      "is_analysis" : true,
+      "type" : "string"
+    }, {
+      "content" : "log",
+      "field_name" : "field3",
+      "index" : 2,
+      "is_analysis" : false,
+      "type" : "string"
+    }, {
+      "content" : "is",
+      "field_name" : "field4",
+      "index" : 3,
+      "is_analysis" : false,
+      "type" : "string"
+    }, {
+      "content" : "Error",
+      "field_name" : "field5",
+      "index" : 4,
+      "is_analysis" : false,
+      "type" : "string"
+    }, {
+      "content" : "NO",
+      "field_name" : "field6",
+      "index" : 5,
+      "is_analysis" : false,
+      "type" : "string"
+    }, {
+      "content" : "13 testing.",
+      "field_name" : "field7",
+      "index" : 6,
+      "is_analysis" : false,
+      "type" : "string"
+    }, {
+      "content" : "286",
+      "field_name" : "field8",
+      "index" : 7,
+      "is_analysis" : false,
+      "type" : "long"
+    } ],
+    "demo_log" : "2022-01-03/14:52:28 this log is Error NO 13 testing 286.",
+    "id" : "43a8cc7b-b632-4c36-a65d-8150e98219f1",
+    "project_id" : "2a473356cca5487f8373be89xxxxxxxx",
+    "rule" : {
+      "param" : "{\"keyObject\":{\"0\":\"field1\",\"1\":\"field2\",\"2\":\"field3\",\"3\":\"field4\",\"4\":\"field5\",\"5\":\"field6\",\"6\":\"field7\",\"7\":\"field8\"},\"tokenizer\":\" \"}",
+      "type" : "split"
+    },
+    "demo_label" : "here is a demo label",
+    "tag_fields" : [ {
+      "content" : "172.16.10.69",
+      "field_name" : "hostIP",
+      "index" : 0,
+      "is_analysis" : true,
+      "type" : "string"
+    } ],
+    "template_name" : "testSplit13",
+    "template_type" : "split"
+  } ]
+}
+

Status code: 400

+

The ID does not exist.

+
{
+  "message" : {
+    "code" : "LTS.0751",
+    "details" : "custom template doesn't exist"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2017",
+  "error_msg" : "Find struct template failed."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

400

+

The ID does not exist.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListTimeLineTrafficStatistics.html b/docs/lts/api-ref/ListTimeLineTrafficStatistics.html new file mode 100644 index 000000000..f3f5065d2 --- /dev/null +++ b/docs/lts/api-ref/ListTimeLineTrafficStatistics.html @@ -0,0 +1,339 @@ + + +

Querying Resources by Time Segment

+

Function

This API is used to query resources by time segment.

+
+

URI

POST /v2/{project_id}/lts/timeline-traffic-statistics

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

timezone

+

Yes

+

String

+

Time zone, for example, Asia/Shanghai, Europe/Paris, or Africa/Cairo.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

start_time

+

Yes

+

Long

+

Start timestamp of the query, in milliseconds. A maximum of 30 days are supported.

+

end_time

+

Yes

+

Long

+

End timestamp, in milliseconds.

+

period

+

Yes

+

Integer

+

Query interval, in hours. The value ranges from 1 to 24.

+

resource_type

+

Yes

+

String

+

Resource type: The value is log_group / log_stream / tenant.

+

search_type

+

Yes

+

String

+

Type of traffic to be queried: write, index, or storage.

+

resource_id

+

No

+

String

+

Resource ID.

+

When resource type is set to log_group, resource_id indicates the log group ID.

+

When resource type is set to log_stream, resource_id indicates the log stream ID.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

results

+

Array of Resulits objects

+

Response result.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 Resulits

Parameter

+

Type

+

Description

+

timestamp

+

Long

+

Timestamp, in milliseconds.

+

value

+

Double

+

Traffic, in bytes.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

errorCode

+

String

+

Error code.

+

errorMessage

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

errorCode

+

String

+

Error code.

+

errorMessage

+

String

+

Error message.

+
+
+
+

Example Requests

Querying Resources by Time Segment

+
POST v2/2a473356cca5487f8373be891bffc1cf/lts/timeline-traffic-statistics?timezone=XX/XX
+
+{
+  "start_time" : 1668614400000,
+  "end_time" : 1668787200000,
+  "search_type" : "write",
+  "period" : 1,
+  "resource_type" : "tenant"
+}
+
+

Example Responses

Status code: 200

+

Query succeeded.

+
{
+  "results" : [ {
+    "timestamp" : 1669046400000,
+    "value" : 8.24859442E7
+  }, {
+    "timestamp" : 1669071600000,
+    "value" : 0
+  }, {
+    "timestamp" : 1669161600000,
+    "value" : 9.06895742E7
+  }, {
+    "timestamp" : 1669215600000,
+    "value" : 8.81524816E7
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "errorCode" : "LTS.0009",
+  "errorMessage" : "resource_id must not be empty"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "errorCode" : "LTS.0203",
+  "errorMessage" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Query succeeded.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListTopnTrafficStatistics.html b/docs/lts/api-ref/ListTopnTrafficStatistics.html new file mode 100644 index 000000000..97deb5f3d --- /dev/null +++ b/docs/lts/api-ref/ListTopnTrafficStatistics.html @@ -0,0 +1,411 @@ + + +

Collecting Traffic Statistics on Top N Log Groups or Log Streams

+

Function

This API is used to collect traffic statistics on top n log groups or log streams.

+
+

URI

POST /v2/{project_id}/lts/topn-traffic-statistics

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

end_time

+

Yes

+

Long

+

End timestamp, in milliseconds.

+

is_desc

+

Yes

+

Boolean

+

Whether to sort data in descending order (true or false).

+

resource_type

+

Yes

+

String

+

Resource type.

+

log_group: log group

+

log_stream: log stream

+

tenant: tenant

+

sort_by

+

Yes

+

String

+

Sorting. Data to be sorted must exist in search_list.

+

index: index

+

write: read and write

+

storage: storage

+

start_time

+

Yes

+

Long

+

Start timestamp of the query, in milliseconds. A maximum of 30 days are supported.

+

topn

+

Yes

+

Integer

+

Number of data records to be queried. The value ranges from 1 to 100.

+

filter

+

Yes

+

Map<String,String>

+

Filter, which is in a map structure with keys as filtering attributes and values as attribute values. It does not support fuzzy match. The format for filter criteria is {"key": "xxxxxx"}, where key can be log_group_id or log_stream_id.

+

search_list

+

Yes

+

Array of strings

+

Query data type. Multiple string arrays can be used together.

+

index: index

+

write: read and write

+

storage: storage

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

results

+

Array of ResultsTopnBody objects

+

Response result.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ResultsTopnBody

Parameter

+

Type

+

Description

+

index_traffic

+

Double

+

Index traffic, in bytes. This parameter is returned when the queried data type contains index.

+

storage

+

Double

+

Storage capacity, in bytes. This parameter is returned when the queried data type contains storage.

+

write_traffic

+

Double

+

Write traffic, in bytes. This parameter is returned when the queried data type contains write.

+

log_group_id

+

String

+

Log group ID. This parameter is returned when the resource type is log group.

+

log_group_name

+

String

+

Log group name. This parameter is returned when the resource type is log group.

+

log_stream_id

+

String

+

Log stream ID. This parameter is returned when the resource type is log stream.

+

log_stream_name

+

String

+

Log stream name. This parameter is returned when the resource type is log stream.

+

log_group_name_alias

+

String

+

Log group alias, which is the same as the log group name by default. The alias is preferentially displayed.

+

log_stream_name_alias

+

String

+

Log stream alias, which is the same as the log stream name by default. The alias is preferentially displayed.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

errorCode

+

String

+

Error code.

+

errorMessage

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

errorCode

+

String

+

Error code.

+

errorMessage

+

String

+

Error message.

+
+
+
+

Example Requests

Collecting Traffic Statistics on Top N Log Groups or Log Streams

+
POST /v2/2a473356cca5487f8373be891bffc1cf/lts/topn-traffic-statistics
+
+{
+  "sort_by" : "storage",
+  "is_desc" : true,
+  "resource_type" : "log_stream",
+  "filter" : { },
+  "start_time" : 1668668183969,
+  "end_time" : 1669272983969,
+  "search_list" : [ "index", "write", "storage" ],
+  "topn" : 100
+}
+
+

Example Responses

Status code: 200

+

Query succeeded.

+
{
+  "results" : [ {
+    "index_traffic" : 0,
+    "log_stream_id" : "6fd93d47-7630-4284-a622-311d0082f6bb",
+    "log_stream_name" : "cmdb-cce-cluster",
+    "storage" : 59810657587,
+    "write_traffic" : 0
+  }, {
+    "index_traffic" : 0,
+    "log_stream_id" : "504ec3dd-ac28-4783-babb-22a49f36afe3",
+    "log_stream_name" : "CMSkaifatest",
+    "storage" : 20033606015,
+    "write_traffic" : 0
+  }, {
+    "index_traffic" : 6825703991,
+    "log_stream_id" : "a14dacb0-5a13-43a8-89a3-ea5424d95133",
+    "log_stream_name" : "ELB",
+    "storage" : 15659303771,
+    "write_traffic" : 1.3651407982E9
+  }, {
+    "index_traffic" : 302172889,
+    "log_stream_id" : "25fe7494-7395-438e-8340-647613673ffa",
+    "log_stream_name" : "LTStest-916-statefulset",
+    "storage" : 316552589,
+    "write_traffic" : 6.04345778E7
+  }, {
+    "index_traffic" : 0,
+    "log_stream_id" : "956586fc-b828-44be-8672-0a323962a8fa",
+    "log_stream_name" : "mongodb_slow",
+    "storage" : 0,
+    "write_traffic" : 0
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "errorCode" : "LTS.0208",
+  "errorMessage" : "The log stream does not existed"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "errorCode" : "LTS.0203",
+  "errorMessage" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Query succeeded.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ListTransfers.html b/docs/lts/api-ref/ListTransfers.html new file mode 100644 index 000000000..070cbfce4 --- /dev/null +++ b/docs/lts/api-ref/ListTransfers.html @@ -0,0 +1,594 @@ + + +

Querying a Log Transfer Task

+

Function

This API is used to query OBS transfer tasks.

+
+

URI

GET /v2/{project_id}/transfers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_transfer_type

+

No

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+

log_group_name

+

No

+

String

+

Log group name.

+

Minimum: 1

+

Maximum: 64

+

log_stream_name

+

No

+

String

+

Log stream name.

+

Minimum: 1

+

Maximum: 64

+

offset

+

No

+

Integer

+

Query cursor. Set the value to 0 in the first query. In subsequent queries, obtain the value from the response to the last request.

+

Minimum: 0

+

Maximum: 1024

+

limit

+

No

+

Integer

+

Number of records on each page. The maximum value is 100.

+

Minimum: 0

+

Maximum: 100

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

log_transfers

+

Array of CreateTransferResponseBody objects

+

Log transfer task information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 CreateTransferResponseBody

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_streams

+

Array of log_streams objects

+

Log stream list.

+

log_transfer_id

+

String

+

Log transfer task ID.

+

log_transfer_info

+

log_transfer_info_RespBody object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 log_streams

Parameter

+

Type

+

Description

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 log_transfer_info_RespBody

Parameter

+

Type

+

Description

+

log_agency_transfer

+

log_agency_transfer object

+

Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

+

log_create_time

+

Integer

+

Time when the log transfer task was created.

+

log_storage_format

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_detail

+

TransferDetail object

+

Log transfer details.

+

log_transfer_mode

+

String

+

Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks.

+

log_transfer_status

+

String

+

Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_transfer_type

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 log_agency_transfer

Parameter

+

Type

+

Description

+

agency_domain_id

+

String

+

Delegator account ID.

+

agency_domain_name

+

String

+

Delegator account name.

+

agency_name

+

String

+

Name of the agency created by the delegator.

+

agency_project_id

+

String

+

Project ID of the delegator.

+

be_agency_domain_id

+

String

+

Account ID of the delegated party (ID of the account that created the log transfer task).

+

be_agency_project_id

+

String

+

Project ID of the delegated party (project ID of the account that created the log transfer task).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 TransferDetail

Parameter

+

Type

+

Description

+

obs_period

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

obs_encrypted_id

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

obs_dir_pre_fix_name

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$

+

obs_prefix_name

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^[a-zA-Z0-9._-]*$

+

obs_time_zone

+

String

+

Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields include logStreamName, regionName, logGroupName and projectId, which are optional.

+

The transfer tag streamTag is optional.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

If no parameter is specified, all log transfer tasks are returned. If log_transfer_type, log_group_name, and log_stream_name are specified, the corresponding log transfer task is returned.

+
GET https://{endpoint}/v2/{project_id}/transfers
+
+/v2/{project_id}/transfers /v2/{project_id}/transfers?log_group_name=lts-group-txxx /v2/{project_id}/transfers?log_transfer_type=OBS /v2/{project_id}/transfers?log_stream_name=lts-topic-testRexxx /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_stream_name=lts-topic-testRxxx /v2/{project_id}/transfers?log_transfer_type=OBS&log_stream_name=lts-topic-testRxxx /v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS&log_stream_name=lts-topic-testRexxx
+
+

Example Responses

Status code: 200

+

The query is successful.

+

The following parameters are returned for an OBS transfer task:

+
{
+  "log_transfers" : [ {
+    "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+    "log_group_name" : "lts-group-OBS",
+    "log_streams" : [ {
+      "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+      "log_stream_name" : "lts-topic-OBS"
+    } ],
+    "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+    "log_transfer_info" : {
+      "log_create_time" : 1634802241847,
+      "log_storage_format" : "JSON",
+      "log_agency_transfer" : {
+        "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+        "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+        "agency_name" : "test20210325",
+        "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+        "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+        "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+      },
+      "log_transfer_detail" : {
+        "obs_period" : 2,
+        "obs_prefix_name" : "",
+        "obs_period_unit" : "min",
+        "obs_transfer_path" : "/0002/LogTanks/xxx/",
+        "obs_bucket_name" : "0002",
+        "obs_encrypted_enable" : false,
+        "obs_dir_pre_fix_name" : "",
+        "obs_time_zone" : "UTC+01:00",
+        "obs_time_zone_id" : "Africa/Lagos"
+      },
+      "log_transfer_mode" : "cycle",
+      "log_transfer_status" : "ENABLE",
+      "log_transfer_type" : "OBS"
+    }
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid log transfer type"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The query is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/ShowNotificationTemplate.html b/docs/lts/api-ref/ShowNotificationTemplate.html new file mode 100644 index 000000000..3eb1d1ed1 --- /dev/null +++ b/docs/lts/api-ref/ShowNotificationTemplate.html @@ -0,0 +1,348 @@ + + +

Querying a Message Template

+

Function

This API is used to query a notification template.

+
+

URI

GET /v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

template_name

+

Yes

+

String

+

template_name

+

Minimum: 1

+

Maximum: 100

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Notification rule name.

+

type

+

Array of strings

+

Notification method.

+

desc

+

String

+

Template description.

+

source

+

String

+

Template source.

+

locale

+

String

+

Language.

+

templates

+

Array of SubTemplateResBody objects

+

Template body, which is an array.

+

create_time

+

Long

+

Creation time (timestamp in milliseconds).

+

modify_time

+

Long

+

Update time (timestamp in milliseconds).

+

project_id

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 4 SubTemplateResBody

Parameter

+

Type

+

Description

+

sub_type

+

String

+

Template subtype, for example, sms or email.

+

content

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL).

+

topic

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

message

+

CodeDetailsRspBody object

+

Error message.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 CodeDetailsRspBody

Parameter

+

Type

+

Description

+

code

+

String

+

Error code.

+

details

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Querying a message template with a specified name

+
GET https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}
+
+/v2/{project_id}/{domain_id}/lts/events/notification/template/{template_name}
+
+

Example Responses

Status code: 200

+

The request is successful.

+
{
+  "create_time" : 1702955600631,
+  "desc" : "description",
+  "locale" : "en-us",
+  "modify_time" : 1702955600631,
+  "name" : "postman-test",
+  "project_id" : "2a473356cca5487f8373be891bffc1cf",
+  "source" : "LTS",
+  "templates" : [ {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+    "sub_type" : "sms"
+  }, {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+    "sub_type" : "email"
+  } ],
+  "type" : [ ]
+}
+

Status code: 401

+

ID verification failed.

+
{
+  "message" : {
+    "code" : "LTS.0001",
+    "details" : "project verify error"
+  }
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2018",
+  "error_msg" : "Failed to get notification template."
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful.

+

401

+

ID verification failed.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateAccessConfig.html b/docs/lts/api-ref/UpdateAccessConfig.html new file mode 100644 index 000000000..cc79841c8 --- /dev/null +++ b/docs/lts/api-ref/UpdateAccessConfig.html @@ -0,0 +1,1229 @@ + + +

Modifying a Log Ingestion Configuration

+

Function

This API is usde to modify a log ingestion configuration.

+
+

URI

PUT /v3/{project_id}/lts/access-config

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Account Tenant ID, Project Resource Set ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

access_config_id

+

Yes

+

String

+

Ingestion configuration ID.

+

Minimum: 36

+

Maximum: 36

+

access_config_detail

+

No

+

AccessConfigDeatilUpdate object

+

Ingestion configuration details.

+

host_group_info

+

No

+

AccessConfigHostGroupIdList object

+

Host group ID list.

+

access_config_tag

+

No

+

Array of accessConfigTag objects

+

Tag information.

+

log_split

+

No

+

Boolean

+

Log splitting.

+

binary_collect

+

No

+

Boolean

+

Binary collection.

+

cluster_id

+

No

+

String

+

CCE cluster ID. This parameter is mandatory for the CCE type.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 AccessConfigDeatilUpdate

Parameter

+

Mandatory

+

Type

+

Description

+

paths

+

No

+

Array of strings

+

Log collection paths.

+

Minimum: 1

+

Maximum: 128

+

black_paths

+

No

+

Array of strings

+

Log collection blacklist paths.

+

Minimum: 1

+

Maximum: 128

+

format

+

No

+

AccessConfigFormatUpdate object

+

Log format.

+

windows_log_info

+

No

+

AccessConfigWindowsLogInfoUpdate object

+

Windows event logs. To stop collecting Windows event logs, leave this parameter to empty.

+

stdout

+

No

+

Boolean

+

Standard output switch. This parameter is used only when the CCE ingestion type is used.

+

stderr

+

No

+

Boolean

+

Standard output error switch. This parameter is used only when the CCE ingestion type is used.

+

pathType

+

No

+

String

+

CCE ingestion type. This parameter is used only when the CCE ingestion type is used.

+

namespaceRegex

+

No

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only when the CCE ingestion type is used.

+

podNameRegex

+

No

+

String

+

Regular expression matching of the Kubernetes container name. This parameter is used only when the CCE ingestion type is used.

+

containerNameRegex

+

No

+

String

+

Regular expression matching of the Kubernetes container name. This parameter is used only when the CCE ingestion type is used.

+

includeLabels

+

No

+

Map<String,String>

+

Container label whitelist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when the access type is CCE.

+

excludeLabels

+

No

+

Map<String,String>

+

Container label blacklist. A maximum of 30 container labels can be created. The key names must be unique. This parameter is used only when the CCE access type is used.

+

includeEnvs

+

No

+

Map<String,String>

+

Environment variable whitelist. A maximum of 30 environment variable whitelists can be created. Key names must be unique. This parameter is used only when the access type is CCE.

+

excludeEnvs

+

No

+

Map<String,String>

+

Environment variable blacklist. A maximum of 30 environment variables can be created. The key names must be unique. This parameter is used only when the CCE access type is used.

+

logLabels

+

No

+

Map<String,String>

+

Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when the access type is CCE.

+

logEnvs

+

No

+

Map<String,String>

+

Environment variable log tag. A maximum of 30 tags can be created. The key name must be unique. This parameter is used only when the access type is CCE.

+

includeK8sLabels

+

No

+

Map<String,String>

+

Specifies the Kubernetes label whitelist. A maximum of 30 Kubernetes label whitelists can be created. The key names must be unique. This parameter is used only when the access type is CCE.

+

excludeK8sLabels

+

No

+

Map<String,String>

+

Specifies the Kubernetes label blacklist. A maximum of 30 Kubernetes label blacklists can be created. The key names must be unique. This parameter is used only when the CCE access type is used.

+

logK8s

+

No

+

Map<String,String>

+

Specifies the Kubernetes label. A maximum of 30 Kubernetes labels can be created. The key names must be unique. This parameter is used only when the access type is CCE.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 AccessConfigFormatUpdate

Parameter

+

Mandatory

+

Type

+

Description

+

single

+

No

+

AccessConfigFormatSingle object

+

Single-line logs.

+

multi

+

No

+

AccessConfigFormatMutil object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 6 AccessConfigFormatSingle

Parameter

+

Mandatory

+

Type

+

Description

+

mode

+

Yes

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

Yes

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used to match the log printing time displayed at the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+

Minimum: 1

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 7 AccessConfigFormatMutil

Parameter

+

Mandatory

+

Type

+

Description

+

mode

+

Yes

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

Yes

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+

Minimum: 1

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 AccessConfigWindowsLogInfoUpdate

Parameter

+

Mandatory

+

Type

+

Description

+

categorys

+

No

+

Array of strings

+

The type of Windows event logs to be collected. Application: application system; System: system; Security: security; Setup: startup

+

time_offset

+

No

+

AccessConfigTimeOffset object

+

Time offset.

+

event_level

+

No

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.
  • warning: warning events, which may affect system running but do not cause system breakdown.
  • error: error events, which cause system breakdown or prevent the service from running properly.
  • critical: critical events, which may cause system or application failures.
  • verbose: detailed event information, which does not affect the system running.
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 AccessConfigTimeOffset

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

Yes

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

Yes

+

String

+

Unit of the time offset.

+
  • day
  • hour
  • sec
+
+
+ +
+ + + + + + + + + + + +
Table 10 AccessConfigHostGroupIdList

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_id_list

+

Yes

+

Array of strings

+

List of host group IDs.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 11 accessConfigTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

access_config_id

+

String

+

Ingestion configuration ID.

+

access_config_name

+

String

+

Ingestion configuration name.

+

access_config_type

+

String

+

Ingestion configuration type. The value AGENT indicates host log ingestion.

+

create_time

+

Long

+

Creation time.

+

access_config_detail

+

AccessConfigDeatilResponse object

+

Ingestion configuration details.

+

log_info

+

AccessConfigQueryLogInfo object

+

Log details.

+

host_group_info

+

AccessConfigHostGroupIdList object

+

Host group ID list.

+

access_config_tag

+

Array of accessConfigTagResponse objects

+

Tag information.

+

log_split

+

Boolean

+

Log splitting.

+

binary_collect

+

Boolean

+

Binary collection.

+

cluster_id

+

String

+

CCE cluster ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 AccessConfigDeatilResponse

Parameter

+

Type

+

Description

+

paths

+

Array of strings

+

Collection paths.

+

black_paths

+

Array of strings

+

Collection path blacklist.

+

format

+

AccessConfigFormatCreate object

+

Log format.

+

windows_log_info

+

AccessConfigWindowsLogInfoCreate object

+

Windows event logs.

+

stdout

+

Boolean

+

Standard output switch. This parameter is used only for CCE log ingestion.

+

stderr

+

Boolean

+

Standard error switch. This parameter is used only for CCE log ingestion.

+

pathType

+

String

+

CCE log ingestion type. This parameter is used only for CCE log ingestion.

+

namespaceRegex

+

String

+

Regular expression matching of Kubernetes namespaces. This parameter is used only for CCE log ingestion.

+

podNameRegex

+

String

+

Regular expression matching of Kubernetes pods. This parameter is used only for CCE log ingestion.

+

containerNameRegex

+

String

+

Regular expression matching of Kubernetes container names. This parameter is used only for CCE log ingestion.

+

includeLabels

+

Map<String,String>

+

Container label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeLabels

+

Map<String,String>

+

Container label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeEnvs

+

Map<String,String>

+

Environment variable whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeEnvs

+

Map<String,String>

+

Environment variable blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logLabels

+

Map<String,String>

+

Container label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logEnvs

+

Map<String,String>

+

Environment variable label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+

includeK8sLabels

+

Map<String,String>

+

Kubernetes label whitelist. You can create up to 30 whitelists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

excludeK8sLabels

+

Map<String,String>

+

Kubernetes label blacklist. You can create up to 30 blacklists. The key names must be unique. This parameter is used only for CCE log ingestion.

+

logK8s

+

Map<String,String>

+

Kubernetes label. You can create up to 30 labels. The key names must be unique. This parameter is used only for CCE log ingestion.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 AccessConfigFormatCreate

Parameter

+

Type

+

Description

+

single

+

AccessConfigFormatSingleCreate object

+

Single-line logs.

+

multi

+

AccessConfigFormatMutilCreate object

+

Multi-line logs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 15 AccessConfigFormatSingleCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. system indicates the system time, whereas wildcard indicates the time wildcard.

+

value

+

String

+

Log time.If mode is system, the value is the current timestamp.If mode is wildcard, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + +
Table 16 AccessConfigFormatMutilCreate

Parameter

+

Type

+

Description

+

mode

+

String

+

Single-line logs. time indicates a time wildcard is used to detect log boundaries, whereas regular indicates that a regular expression is used.

+

value

+

String

+

Log time.If mode is regular, the value is a regular expression.If mode is time, the value is a time wildcard, which is used by ICAgent to look for the log printing time as the beginning of a log event. If the time format in a log event is 2019-01-01 23:59:59, the time wildcard is YYYY-MM-DD hh:mm:ss. If the time format in a log event is 19-1-1 23:59:59, the time wildcard is YY-M-D hh:mm:ss.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 17 AccessConfigWindowsLogInfoCreate

Parameter

+

Type

+

Description

+

categorys

+

Array of strings

+

Type of Windows event logs to be collected.

+
  • Application: application event logs.
  • System: system event logs.
  • Security: security event logs.
  • Setup: startup event logs.
+

time_offset

+

AccessConfigTimeOffset object

+

Offset from first collection time.

+

event_level

+

Array of strings

+

Event level.

+
  • information: common information events, which do not affect system running.
  • warning: warning events, which may affect system running but do not cause system breakdown.
  • error: error events, which cause system breakdown or prevent the service from running properly.
  • critical: critical events, which may cause system or application failures.
  • verbose: detailed event information, which does not affect the system running.
+
+
+ +
+ + + + + + + + + + + + + +
Table 18 AccessConfigTimeOffset

Parameter

+

Type

+

Description

+

offset

+

Long

+

Time offset.

+

When unit is day, the value ranges from 1 to 7.

+

When unit is hour, the value ranges from 1 to 168.

+

When unit is sec, the value ranges from 1 to 604800.

+

unit

+

String

+

Unit of the time offset.

+
  • day
  • hour
  • sec
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 19 AccessConfigQueryLogInfo

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_stream_id

+

String

+

Log stream ID.

+

log_group_name

+

String

+

Log group name.

+

log_stream_name

+

String

+

Log stream name.

+

log_group_name_alias

+

String

+

Log group alias.

+

log_stream_name_alias

+

String

+

Log stream alias.

+
+
+ +
+ + + + + + + + + +
Table 20 AccessConfigHostGroupIdList

Parameter

+

Type

+

Description

+

host_group_id_list

+

Array of strings

+

List of host group IDs.

+
+
+ +
+ + + + + + + + + + + + + +
Table 21 accessConfigTagResponse

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 22 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 23 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Modifying a Log Ingestion Configuration (for ECS)

+
PUT https://{endpoint}/v3/{project_id}/lts/access-config
+
+{
+  "access_config_id" : "ed90802a-8475-4702-955e-e3ee16a5dde9",
+  "access_config_detail" : {
+    "paths" : [ "/test/222", "/test/111" ],
+    "black_paths" : [ ],
+    "format" : {
+      "multi" : {
+        "mode" : "regular",
+        "value" : "aaaa"
+      }
+    },
+    "windows_log_info" : {
+      "categorys" : [ "Application", "System" ],
+      "time_offset" : {
+        "offset" : 7,
+        "unit" : "day"
+      },
+      "event_level" : [ "information", "warning", "error", "critical", "verbose" ]
+    }
+  },
+  "host_group_info" : {
+    "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-096a2a63e036" ]
+  },
+  "access_config_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx"
+  }, {
+    "key" : "xxx1",
+    "value" : "xxx1"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

Ingestion configuration modified.

+
{
+  "access_config_detail" : {
+    "black_paths" : [ "/wjy/hei/tesxxx", "/wjy/hei/tesxxx" ],
+    "format" : {
+      "single" : {
+        "mode" : "wildcard",
+        "value" : "1111"
+      }
+    },
+    "paths" : [ "/wjy/tesxxx" ],
+    "windows_log_info" : {
+      "categorys" : [ "System", "Application", "Security", "Setup" ],
+      "event_level" : [ "information", "warning", "error", "critical", "verbose" ],
+      "time_offset" : {
+        "offset" : 168,
+        "unit" : "hour"
+      }
+    }
+  },
+  "access_config_id" : "aa58d29e-21a9-4761-ba16-8cxxxxd",
+  "access_config_name" : "CollectionWjy_xxxxt2",
+  "access_config_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx"
+  }, {
+    "key" : "xxx1",
+    "value" : "xxx1"
+  } ],
+  "access_config_type" : "AGENT",
+  "create_time" : 163504332654,
+  "host_group_info" : {
+    "host_group_id_list" : [ "de4dbed4-a3bc-4877-a7ee-09xxxxxx" ]
+  },
+  "log_info" : {
+    "log_group_id" : "9a7e2183-2d6d-4732-9axxxxx49e0",
+    "log_group_name" : "lts-groupxxxa",
+    "log_group_name_alias" : "lts-groupxxxa",
+    "log_stream_id" : "c4de0538-53e6-41fd-b951-xxxx8d7",
+    "log_stream_name" : "lts-topixxx",
+    "log_stream_name_alias" : "lts-topixxx"
+  }
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid access config id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Ingestion configuration modified.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateHostGroup.html b/docs/lts/api-ref/UpdateHostGroup.html new file mode 100644 index 000000000..d50b3646c --- /dev/null +++ b/docs/lts/api-ref/UpdateHostGroup.html @@ -0,0 +1,384 @@ + + +

Modifying a Host Group

+

Function

Modify a host group.

+
+

URI

PUT /v3/{project_id}/lts/host-group

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1

+

Maximum: 10000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

host_group_id

+

Yes

+

String

+

Host group ID.

+

Minimum: 36

+

Maximum: 36

+

host_group_name

+

No

+

String

+

Host group name. Use only letters, digits, underscores (_), hyphens (-), and periods (.). Do not start with a period or underscore or end with a period.

+

Minimum: 1

+

Maximum: 64

+

host_id_list

+

No

+

Array of strings

+

Host ID list. The host type must be the same as the host group type.

+

Minimum: 36

+

Maximum: 36

+

host_group_tag

+

No

+

Array of HostGroupTag objects

+

Host group tags. A key must be unique. Up to 20 keys are allowed.

+

labels

+

Yes

+

Array of strings

+

Host group identifier. This parameter is mandatory when the host group type is LABEL.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 HostGroupTag

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

No

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

host_group_id

+

String

+

Host group ID.

+

host_group_name

+

String

+

Host group name.

+

host_group_type

+

String

+

Host group type.

+

host_id_list

+

Array of strings

+

Host ID list.

+

host_group_tag

+

Array of HostGroupTag objects

+

Tag information.

+

create_time

+

Long

+

Creation time.

+

update_time

+

Long

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 HostGroupTag

Parameter

+

Type

+

Description

+

key

+

String

+

Tag key.

+

value

+

String

+

Tag value.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code

+

error_msg

+

String

+

Error description

+
+
+
+

Example Requests

Update a host group. Parameter host_group_id is mandatory.

+
PUT https://{endpoint}/v3/{project_id}/lts/host-group
+
+{
+  "host_group_id" : "xxxxxx",
+  "host_group_name" : "qweqwe",
+  "host_id_list" : [ "host_id_1", "host_id_2" ],
+  "host_group_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

The host group is modified.

+
{
+  "host_group_id" : "xxxxxx",
+  "host_group_name" : "qweqwe",
+  "host_group_type" : "linux",
+  "host_id_list" : [ "host_id_1", "host_id_2" ],
+  "host_group_tag" : [ {
+    "key" : "xxx",
+    "value" : "xxx"
+  } ],
+  "create_time" : 16351494332,
+  "update_time" : 16351494332
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.1807",
+  "error_msg" : "Invalid host group id"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "Internal Server Error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The host group is modified.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateLogGroup.html b/docs/lts/api-ref/UpdateLogGroup.html new file mode 100644 index 000000000..8a5310490 --- /dev/null +++ b/docs/lts/api-ref/UpdateLogGroup.html @@ -0,0 +1,383 @@ + + +

Modifying a Log Group

+

Function

This API is used to modify the log retention duration of a specified log group.

+
+

URI

POST /v2/{project_id}/groups/{log_group_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

ttl_in_days

+

Yes

+

Integer

+

Log retention duration (days).

+

Minimum value: 1

+

Maximum value: 365

+

tags

+

No

+

Array of tagsBody objects

+

Tag field information.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tagsBody

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

Yes

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

creation_time

+

Long

+

Indicates the time when a log group was created, in milliseconds.

+

log_group_name

+

String

+

Log group name.

+

log_group_id

+

String

+

Log group ID.

+

ttl_in_days

+

Integer

+

Log retention period.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a log group

+
POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}
+
+{
+  "ttl_in_days" : 8
+}
+
+

Example Responses

Status code: 200

+

The request is successful and the log group has been modified.

+
{
+  "creation_time" : 156541515155541,
+  "log_group_name" : "groupName",
+  "log_group_id" : "b6b9332b-091f-4b22-b810-264318d2",
+  "ttl_in_days" : 8
+}
+

Status code: 400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "Failed to validate the request body"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0414",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0102",
+  "error_msg" : "Failed to update log group"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request is successful and the log group has been modified.

+

400

+

BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError.

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateLogStream.html b/docs/lts/api-ref/UpdateLogStream.html new file mode 100644 index 000000000..0bb165a67 --- /dev/null +++ b/docs/lts/api-ref/UpdateLogStream.html @@ -0,0 +1,395 @@ + + +

Modifying a Log Stream

+

Function

This API is used to modify the log retention duration of a specified log stream.

+
+

URI

PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum length: 36 characters.

+

Maximum length: 36 characters.

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum length: 36 characters.

+

Maximum length: 36 characters.

+

log_stream_id

+

Yes

+

String

+

Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum length: 36 characters.

+

Maximum length: 36 characters.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. Minimum length: 1000 characters; Maximum length: 2000 characters.

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum length: 30 characters.

+

Maximum length: 30 characters.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

ttl_in_days

+

Yes

+

Integer

+

Log retention duration (days).

+

Minimum: 1

+

Maximum: 365

+

tags

+

No

+

Array of tagsBody objects

+

Tag field information.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 tagsBody

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

Yes

+

String

+

Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.

+

value

+

Yes

+

String

+

Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

creation_time

+

Long

+

Time when a log stream is created.

+

log_topic_name

+

String

+

Name of a log stream.

+

log_topic_id

+

String

+

Log stream ID.

+

ttl_in_days

+

Integer

+

Log retention duration (days).

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modify a log stream.

+
PUT https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}
+
+{
+  "ttl_in_days" : 8
+}
+
+

Example Responses

Status code: 200

+

The request has succeeded and the log group has been modified.

+
{
+  "creation_time" : 1629947408497,
+  "log_topic_name" : "string",
+  "log_topic_id" : "string",
+  "ttl_in_days" : 8
+}
+

Status code: 400

+

BadRequest. Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "Failed to validate the request body"
+}
+

Status code: 401

+

AuthFailed. Authentication failed. Check the token and try again.

+
{
+  "error_code" : "LTS.0414",
+  "error_msg" : "Invalid token"
+}
+

Status code: 403

+

Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+
{
+  "error_code" : "LTS.0001",
+  "error_msg" : "Invalid projectId"
+}
+

Status code: 500

+

InternalServerError. The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0204",
+  "error_msg" : "Failed to update log stream"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The request has succeeded and the log group has been modified.

+

400

+

BadRequest. Invalid request. Modify the request based on the description in error_msg before a retry.

+

401

+

AuthFailed. Authentication failed. Check the token and try again.

+

403

+

Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

+

500

+

InternalServerError. The server has received the request but encountered an internal error.

+

503

+

ServiceUnavailable. The requested service is unavailable.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateNotificationTemplate.html b/docs/lts/api-ref/UpdateNotificationTemplate.html new file mode 100644 index 000000000..c7c8cbb18 --- /dev/null +++ b/docs/lts/api-ref/UpdateNotificationTemplate.html @@ -0,0 +1,434 @@ + + +

Modifying a Message Template

+

Function

This API is used to modify a notification template base on its name.

+
+

URI

PUT /v2/{project_id}/{domain_id}/lts/events/notification/templates

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+

domain_id

+

Yes

+

String

+

Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Notification rule name, which cannot be changed after the rule is created.

+

Minimum: 1

+

Maximum: 100

+

type

+

No

+

Array of strings

+

Notification method.

+

desc

+

No

+

String

+

Template description, which is mandatory. The value can contain only digits, letters, and underscores (_), and cannot start or end with an underscore. The value can contain 0 to 1,024 characters.

+

Minimum: 0

+

Maximum: 1024

+

source

+

Yes

+

String

+

Template source. Currently, this parameter must be set to LTS. Otherwise, the template cannot be filtered.

+

Minimum: 3

+

Maximum: 3

+

locale

+

Yes

+

String

+

Language.

+
  • en-us

    +
+

templates

+

Yes

+

Array of UpdateSubTemplate objects

+

Template body, which is an array.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 UpdateSubTemplate

Parameter

+

Mandatory

+

Type

+

Description

+

sub_type

+

Yes

+

String

+

Template subtype, for example, sms or email.

+

content

+

Yes

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types. Currently, the variables supported for keyword alarms are as follows:

+
  • Severity: ${event_severity};

    +
  • Occurred: ${starts_at};

    +
  • Alarm source: $event.metadata.resource_provider;

    +
  • Resource type: $event.metadata.resource_type;

    +
  • Resource ID: ${resources};

    +
  • Statistical type: by keyword;

    +
  • Expression: $event.annotations.condition_expression;

    +
  • Current value: $event.annotations.current_value;

    +
  • Statistical period: $event.annotations.frequency;

    +
  • Query time: $event.annotations.results[0].time;

    +
  • Query log: $event.annotations.results[0].raw_results;

    +
+
NOTE:

Each variable must be followed by an English semicolon (;). Otherwise, the template replacement fails.

+
+

topic

+

No

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Notification rule name.

+

type

+

Array of strings

+

Notification method.

+

desc

+

String

+

Template description.

+

source

+

String

+

Template source.

+

locale

+

String

+

Language.

+

templates

+

Array of SubTemplateResBody objects

+

Template body, which is an array.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 SubTemplateResBody

Parameter

+

Type

+

Description

+

sub_type

+

String

+

Template subtype, for example, sms or email.

+

content

+

String

+

Sub-template body. A variable following a dollar symbol ($) can only be one of the following variables. The supported variables vary according to alarm types (keyword or SQL).

+

topic

+

String

+

Email subject. This parameter is valid only when sub_type is set to email.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a message template

+
PUT https://{endpoint}/v2/{project_id}/{domain_id}/lts/events/notification/templates
+
+{
+  "name" : "alarm-template",
+  "desc" : "test",
+  "source" : "LTS",
+  "locale" : "en-us",
+  "templates" : [ {
+    "sub_type" : "sms",
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;"
+  }, {
+    "sub_type" : "email",
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;"
+  } ]
+}
+
+

Example Responses

Status code: 201

+

The request is successful.

+
{
+  "desc" : "description",
+  "locale" : "en-us",
+  "name" : "postman-test1",
+  "source" : "LTS",
+  "templates" : [ {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;",
+    "sub_type" : "sms"
+  }, {
+    "content" : "Severity: ${event_severity};\nOccurred: ${starts_at};\nAlarm source: $event.metadata.resource_provider;\nResource type: $event.metadata.resource_type;\nResource ID: ${resources};\nStatistical type: by keyword;\nExpression: $event.annotations.condition_expression;\nCurrent value: $event.annotations.current_value;\nStatistical period: $event.annotations.frequency;\nQuery time: $event.annotations.results[0].time;\nQuery log: $event.annotations.results[0].raw_results;",
+    "sub_type" : "email"
+  } ]
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.2016",
+  "error_msg" : "desc is invalid!"
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2016",
+  "error_msg" : "Failed to update notification template"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateStructConfig.html b/docs/lts/api-ref/UpdateStructConfig.html new file mode 100644 index 000000000..74a9a8f18 --- /dev/null +++ b/docs/lts/api-ref/UpdateStructConfig.html @@ -0,0 +1,498 @@ + + +

Modifying Structuring Configurations (Recommended)

+

Function

This API is used to modify structuring configurations using a structuring template.

+
+

URI

PUT /v3/{project_id}/lts/struct/template

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_group_id

+

Yes

+

String

+

Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

log_stream_id

+

Yes

+

String

+

Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 36

+

Maximum: 36

+

template_id

+

Yes

+

String

+

Template ID. When the system template is used, the current attribute can be empty.

+

Minimum: 0

+

Maximum: 36

+

template_name

+

Yes

+

String

+

Template name, which cannot be empty and will be verified.

+

Minimum: 1

+

Maximum: 64

+

template_type

+

Yes

+

String

+

Type of the template. The value can be built_in (system templates) or custom (custom templates). For details about system template types, see section "Log Search and Analysis" > "Cloud Structuring Parsing" > "Structuring Templates" in the LTS User Guide.

+

demo_fields

+

No

+

Array of FieldModel objects

+

Example field array. You only need to enter the fields whose status is different from that of is_analysis in the template.

+

tag_fields

+

No

+

Array of FieldModel objects

+

Tag field array. You only need to enter the fields whose status is different from that of is_analysis in the template.

+

quick_analysis

+

No

+

Boolean

+

Indicates whether to enable quick analysis for demo_fields and tag_fields. If this parameter is set to true, quick analysis is enabled for all fields. If this parameter is left blank or set to false, is_analysis in the template is used to determine whether to enable quick analysis.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 FieldModel

Parameter

+

Mandatory

+

Type

+

Description

+

field_name

+

Yes

+

String

+

Field name. A log event can be split into multiple fields with customizable names.

+

Minimum: 1

+

Maximum: 64

+

is_analysis

+

No

+

Boolean

+

Whether quick analysis is enabled.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

-

+

String

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

The request is successful.

+
None
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.2014",
+  "error_msg" : "Failed to create struct config."
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.2016",
+  "error_msg" : "Failed to update struct config"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

The request is successful.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/UpdateTransfer.html b/docs/lts/api-ref/UpdateTransfer.html new file mode 100644 index 000000000..a065a94d9 --- /dev/null +++ b/docs/lts/api-ref/UpdateTransfer.html @@ -0,0 +1,729 @@ + + +

Updating a Log Transfer Task

+

Function

This API is used to update an OBS transfer task.

+
+

URI

PUT /v2/{project_id}/transfers

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

+

Minimum: 32

+

Maximum: 32

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

+

Minimum: 1000

+

Maximum: 2000

+

Content-Type

+

Yes

+

String

+

Set this parameter to application/json;charset=UTF-8.

+

Minimum: 30

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

log_transfer_id

+

Yes

+

String

+

Log transfer task ID.

+

Minimum: 36

+

Maximum: 36

+

log_transfer_info

+

Yes

+

update_log_transfer_info object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 update_log_transfer_info

Parameter

+

Mandatory

+

Type

+

Description

+

log_storage_format

+

Yes

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_status

+

Yes

+

String

+

Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_transfer_detail

+

Yes

+

log_transfer_detail object

+

Log transfer details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 log_transfer_detail

Parameter

+

Mandatory

+

Type

+

Description

+

obs_period

+

Yes

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

Yes

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

Yes

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

Minimum: 3

+

Maximum: 63

+

obs_encrypted_id

+

No

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

Minimum: 36

+

Maximum: 36

+

obs_dir_pre_fix_name

+

No

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

Minimum: 1

+

Maximum: 64

+

obs_prefix_name

+

No

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

Minimum: 1

+

Maximum: 64

+

obs_time_zone

+

No

+

String

+

Time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

No

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

No

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

No

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

No

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

No

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields are logStreamName, regionName, logGroupName, and projectId, which are optional. The tag for enabling transfer is streamTag, which is optional.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

log_group_id

+

String

+

Log group ID.

+

log_group_name

+

String

+

Log group name.

+

log_streams

+

Array of log_streams objects

+

Log stream list.

+

log_transfer_id

+

String

+

Log transfer task ID.

+

log_transfer_info

+

log_transfer_info_RespBody object

+

Log transfer information.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 log_streams

Parameter

+

Type

+

Description

+

log_stream_id

+

String

+

Log stream ID.

+

log_stream_name

+

String

+

Log stream name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 log_transfer_info_RespBody

Parameter

+

Type

+

Description

+

log_agency_transfer

+

log_agency_transfer object

+

Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

+

log_create_time

+

Integer

+

Time when the log transfer task was created.

+

log_storage_format

+

String

+

Log transfer format. The value can be RAW or JSON. RAW indicates the raw log format, and JSON indicates the JSON format. Both JSON and RAW are available for OBS transfer tasks.

+

log_transfer_detail

+

TransferDetail object

+

Log transfer details.

+

log_transfer_mode

+

String

+

Log transfer mode. cycle indicates periodical transfer, and realTime indicates real-time transfer. Only cycle is available for OBS transfer tasks.

+

log_transfer_status

+

String

+

Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

+

log_transfer_type

+

String

+

Log transfer type. OBS indicates that logs are transferred to OBS.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 log_agency_transfer

Parameter

+

Type

+

Description

+

agency_domain_id

+

String

+

Delegator account ID.

+

agency_domain_name

+

String

+

Delegator account name.

+

agency_name

+

String

+

Name of the agency created by the delegator.

+

agency_project_id

+

String

+

Project ID of the delegator.

+

be_agency_domain_id

+

String

+

Account ID of the delegated party (ID of the account that created the log transfer task).

+

be_agency_project_id

+

String

+

Project ID of the delegated party (project ID of the account that created the log transfer task).

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 TransferDetail

Parameter

+

Type

+

Description

+

obs_period

+

Integer

+

Length of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_period_unit

+

String

+

Unit of the transfer interval for an OBS transfer task. This parameter is required when you create an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

+

obs_bucket_name

+

String

+

OBS bucket name. This parameter is required when you create an OBS transfer task.

+

obs_encrypted_id

+

String

+

KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

+

obs_dir_pre_fix_name

+

String

+

Custom transfer path of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^(/)?([a-zA-Z0-9._-]+)(/[a-zA-Z0-9._-]+)*(/)?$

+

obs_prefix_name

+

String

+

Transfer file prefix of an OBS transfer task. This parameter is optional.

+

The value must match the regular expression:

+

^[a-zA-Z0-9._-]*$

+

obs_time_zone

+

String

+

Time zone for an OBS transfer task. If this parameter is specified, obs_time_zone_id must also be specified.

+

obs_time_zone_id

+

String

+

ID of the time zone for an OBS transfer task. For details, see Time Zone List for OBS Transfer. If this parameter is specified, obs_time_zone must also be specified.

+

obs_transfer_path

+

String

+

OBS bucket path, which is the log transfer destination.

+

obs_eps_id

+

String

+

Enterprise project ID of an OBS transfer task.

+

obs_encrypted_enable

+

Boolean

+

Whether OBS bucket encryption is enabled.

+

tags

+

Array of strings

+

If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

+

The common fields include logStreamName, regionName, logGroupName and projectId, which are optional.

+

The transfer tag streamTag is optional.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Updating an OBS transfer task

+
PUT https://{endpoint}/v2/{project_id}/transfers
+
+{
+  "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
+  "log_transfer_info" : {
+    "log_storage_format" : "JSON",
+    "log_transfer_status" : "DISABLE",
+    "log_transfer_detail" : {
+      "obs_period" : 3,
+      "obs_period_unit" : "hour",
+      "obs_bucket_name" : "0xxx",
+      "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
+      "obs_dir_pre_fix_name" : "xx",
+      "obs_prefix_name" : "xxxxx",
+      "obs_time_zone" : "UTC+01:00",
+      "obs_time_zone_id" : "Africa/Lagos"
+    }
+  }
+}
+
+

Example Responses

Status code: 200

+

The transfer task is updated.

+

The following parameters are returned for an OBS transfer task:

+
{
+  "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
+  "log_group_name" : "lts-group-OBS",
+  "log_streams" : [ {
+    "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
+    "log_stream_name" : "lts-topic-OBS"
+  } ],
+  "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
+  "log_transfer_info" : {
+    "log_create_time" : 1634802241847,
+    "log_storage_format" : "JSON",
+    "log_agency_transfer" : {
+      "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "agency_domain_name" : "paas_apm_z004xxxxx_xx",
+      "agency_name" : "test20210325",
+      "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
+      "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
+      "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
+    },
+    "log_transfer_detail" : {
+      "obs_period" : 2,
+      "obs_prefix_name" : "",
+      "obs_period_unit" : "min",
+      "obs_transfer_path" : "/0002/LogTanks/xxxx-7/",
+      "obs_bucket_name" : "0002",
+      "obs_encrypted_enable" : false,
+      "obs_dir_pre_fix_name" : "",
+      "obs_time_zone" : "UTC+01:00",
+      "obs_time_zone_id" : "Africa/Lagos",
+      "tags" : [ ]
+    },
+    "log_transfer_mode" : "cycle",
+    "log_transfer_status" : "ENABLE",
+    "log_transfer_type" : "OBS"
+  }
+}
+

Status code: 400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+
{
+  "error_code" : "LTS.0009",
+  "error_msg" : "The Field transfer id is invalid or missing."
+}
+

Status code: 500

+

The server has received the request but encountered an internal error.

+
{
+  "error_code" : "LTS.0010",
+  "error_msg" : "The system encountered an internal error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

The transfer task is updated.

+

400

+

Invalid request. Modify the request based on the description in error_msg before a retry.

+

500

+

The server has received the request but encountered an internal error.

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/lts/api-ref/en-us_image_0000001783032549.png b/docs/lts/api-ref/en-us_image_0000001783032549.png new file mode 100644 index 000000000..dd00276e7 Binary files /dev/null and b/docs/lts/api-ref/en-us_image_0000001783032549.png differ diff --git a/docs/lts/api-ref/en-us_image_0277142587.png b/docs/lts/api-ref/en-us_image_0277142587.png new file mode 100644 index 000000000..d4a37a976 Binary files /dev/null and b/docs/lts/api-ref/en-us_image_0277142587.png differ diff --git a/docs/lts/api-ref/lts_02_0001.html b/docs/lts/api-ref/lts_02_0001.html deleted file mode 100644 index 33930810b..000000000 --- a/docs/lts/api-ref/lts_02_0001.html +++ /dev/null @@ -1,8 +0,0 @@ - - -

API Description

-

Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://lts.eu-de.otc.t-systems.com/uri. In the URL,uri indicates the resource path, that is, the API access path.

-

Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

-

For details about how to use APIs, see API Usage Guidelines.

-
- diff --git a/docs/lts/api-ref/lts_02_0002.html b/docs/lts/api-ref/lts_02_0002.html index c7a40b460..1efe95119 100644 --- a/docs/lts/api-ref/lts_02_0002.html +++ b/docs/lts/api-ref/lts_02_0002.html @@ -1,7 +1,7 @@

Log Group Management (Old Version)

-
+
+ +
diff --git a/docs/lts/api-ref/lts_02_0003.html b/docs/lts/api-ref/lts_02_0003.html index d283ec6c1..393260459 100644 --- a/docs/lts/api-ref/lts_02_0003.html +++ b/docs/lts/api-ref/lts_02_0003.html @@ -1,29 +1,29 @@

Creating a Log Group

-

This API is used to create a log group. All API URLs described in this section must be case-sensitive.

-

Function

This function describes how to create a log group for log storage and query. You can create a maximum of 100 log groups.

+

This API is used to create a log group. All API URLs described in this section must be case-sensitive.

+

Function

This function describes how to create a log group for log storage and query. You can create a maximum of 100 log groups.

-

URI

  • URI format

    POST /v2.0/{project_id}/log-groups

    +

    URI

    • URI format

      POST /v2.0/{project_id}/log-groups

    -
    • Parameter description -
      Table 1 Parameter description

      Parameter

      +
      • Parameter description +
        - - - - - - - @@ -31,86 +31,88 @@ -

        Request

        • Request parameters -
        Table 1 Parameter description

        Parameter

        Mandatory

        +

        Mandatory

        Type

        +

        Type

        Description

        +

        Description

        project_id

        +

        project_id

        Yes

        +

        Yes

        String

        +

        String

        Project ID

        +

        Project ID

        Table 2 Parameter description

        Parameter

        +

        Request

        • Request parameters +
          - - - - - - - - - - - - - -
          Table 2 Parameter description

          Parameter

          Sub-Parameter

          +

          Sub-Parameter

          Mandatory

          +

          Mandatory

          Type

          +

          Type

          Description

          +

          Description

          log_group_name

          +

          log_group_name

          N/A

          +

          N/A

          Yes

          +

          Yes

          String

          +

          String

          Log group name.

          -

          The configuration rules are as follows:

          -
          • Must be a string of 1 to 64 characters.
          • Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. The name cannot start or end with a period.
          +

          Log group name.

          +

          The configuration rules are as follows:

          +
          • Must be a string of 1 to 64 characters.
          • Only allows uppercase and lowercase letters, digits, underscores (_), hyphens (-), and periods (.). The name cannot start with a period or underscore, or end with a period.

          ttl_in_days

          +

          ttl_in_days

          N/A

          +

          N/A

          Yes

          +

          Yes

          Int

          +

          Int

          Log expiration time. The value is fixed to 7 days.

          +

          Log retention duration. (default: 30 days)

          +

          Minimum value: 1

          +

          Maximum value: 365

        -
        • Example request
          POST /v2.0/{project_id}/log-groups 
          +
          • Example request
            POST /v2.0/{project_id}/log-groups 
             { 
             "log_group_name":"test01",
             "ttl_in_days": 7
             }
        -

        Response

        • Response parameters -
          Table 3 Parameter description

          Parameter

          +

          Response

          • Response parameters +
            - - - - - - -
            Table 3 Parameter description

            Parameter

            Sub-Parameter

            +

            Sub-Parameter

            Type

            +

            Type

            Description

            +

            Description

            log_group_id

            +

            log_group_id

            N/A

            +

            N/A

            String

            +

            String

            Log group ID

            +

            Log group ID

          -
          • Example response
            { 
            +
            • Example response
              { 
                "log_group_id":"56b4b31f-3024-11e9-9023-286ed488ce71"
               } 
          -

          Returned Value

          • Normal

            201

            +

            Returned Value

            • Normal

              201

            -
          diff --git a/docs/lts/api-ref/lts_02_0004.html b/docs/lts/api-ref/lts_02_0004.html index c80377933..97ff1cdf3 100644 --- a/docs/lts/api-ref/lts_02_0004.html +++ b/docs/lts/api-ref/lts_02_0004.html @@ -1,37 +1,37 @@

          Querying a Log Group

          -

          Function

          This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.

          +

          Function

          This function describes how to query a log group you have created to obtain its name, ID, expiration time, and creation time.

          -

          URI

          • URI format

            GET /v2.0/{project_id}/log-groups/{group_id}

            +

            URI

            • URI format

              GET /v2.0/{project_id}/log-groups/{group_id}

            -
            • Parameter description -
              Table 1 Parameter description

              Parameter

              +
              • Parameter description +
                - - - - - - - - - - - @@ -39,70 +39,80 @@ -

                Request

                • Request parameters

                  None

                  -
                • Example request
                  GET /v2.0/{project_id}/log-groups/{group_id}
                  +

                  Request

                  • Request parameters

                    None

                    +
                  • Example request
                    GET /v2.0/{project_id}/log-groups/{group_id}
                  -

                  Response

                  • Response parameters -
                Table 1 Parameter description

                Parameter

                Mandatory

                +

                Mandatory

                Type

                +

                Type

                Description

                +

                Description

                project_id

                +

                project_id

                Yes

                +

                Yes

                String

                +

                String

                Project ID

                +

                Project ID

                group_id

                +

                group_id

                Yes

                +

                Yes

                String

                +

                String

                Log group ID

                +

                Log group ID

                Table 2 Parameter description

                Parameter

                +

                Response

                • Response parameters +
                  - - - - - - - - - - - - - - - - - - - + + + + +
                  Table 2 Parameter description

                  Parameter

                  Sub-Parameter

                  +

                  Sub-Parameter

                  Type

                  +

                  Type

                  Description

                  +

                  Description

                  log_group_id

                  +

                  log_group_id

                  -

                  +

                  -

                  String

                  +

                  String

                  Log group ID

                  +

                  Log group ID

                  log_group_name

                  +

                  log_group_name

                  -

                  +

                  -

                  String

                  +

                  String

                  Log group name

                  +

                  Log group name

                  creation_time

                  +

                  creation_time

                  -

                  +

                  -

                  Int64

                  +

                  Int64

                  Log group creation time

                  +

                  Log group creation time

                  ttl_in_days

                  +

                  ttl_in_days

                  -

                  +

                  -

                  Int

                  +

                  Int

                  Log expiration time

                  +

                  Log expiration time

                  +

                  stream_size

                  +

                  -

                  +

                  Int

                  +

                  Number of log streams in a log group

                  -
                • Example response
                  {
                  +
                • Example response
                  {
                               "log_group_id": "8ac95c07-357b-11e9-bc2a-286ed488ce71", 
                               "log_group_name": "lts-group-3h0y", 
                               "creation_time": 1550714033721, 
                  +            "stream_size ": 0,
                               "ttl_in_days": 7
                   } 
                -

                Returned Value

                diff --git a/docs/lts/api-ref/lts_02_0005.html b/docs/lts/api-ref/lts_02_0005.html index 3d6c18933..7c7d22788 100644 --- a/docs/lts/api-ref/lts_02_0005.html +++ b/docs/lts/api-ref/lts_02_0005.html @@ -1,39 +1,39 @@

                Deleting a Log Group

                -

                Function

                This function describes how to delete a log group that will not be used.

                -

                Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log groups cannot be recovered. Therefore, exercise caution when performing this deletion operation.

                +

                Function

                This function describes how to delete a log group that will not be used.

                +

                Before deleting a log group, ensure that the log group has no log transfer tasks. Deleted log groups cannot be recovered. Therefore, exercise caution when performing this deletion operation.

                -

                URI

                • URI format

                  DELETE /v2.0/{project_id}/log-groups/{group_id}

                  +

                  URI

                  • URI format

                    DELETE /v2.0/{project_id}/log-groups/{group_id}

                  -
                  • Parameter description -
                    Table 1 Parameter description

                    Parameter

                    +
                    • Parameter description +
                      - - - - - - - - - - - @@ -41,16 +41,16 @@ -

                      Request

                      • Request parameters

                        None

                        -
                      • Example request
                        DELETE /v2.0/{project_id}/log-groups/{group_id}
                        +

                        Request

                        • Request parameters

                          None

                          +
                        • Example request
                          DELETE /v2.0/{project_id}/log-groups/{group_id}
                        -

                        Response

                        • Response parameters

                          None

                          -
                        • Example response

                          None

                          +

                          Response

                          • Response parameters

                            None

                            +
                          • Example response

                            None

                          -

                          Returned Value

                          • Normal

                            204

                            -
                          • Abnormal

                            For details about status code, see Status Code.

                            +

                            Returned Value

                          diff --git a/docs/lts/api-ref/lts_02_0006.html b/docs/lts/api-ref/lts_02_0006.html index bdae73888..5d3b32186 100644 --- a/docs/lts/api-ref/lts_02_0006.html +++ b/docs/lts/api-ref/lts_02_0006.html @@ -1,7 +1,7 @@

                          Log Stream Management (Old Version)

                          -
                          +
                          + +
                          diff --git a/docs/lts/api-ref/lts_02_0007.html b/docs/lts/api-ref/lts_02_0007.html index e7cbb0413..cb4f88d11 100644 --- a/docs/lts/api-ref/lts_02_0007.html +++ b/docs/lts/api-ref/lts_02_0007.html @@ -1,37 +1,37 @@

                          Creating a Log Stream

                          -

                          Function

                          This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.

                          +

                          Function

                          This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.

                          -

                          URI

                          • URI format

                            POST /v2.0/{project_id}/log-groups/{group_id}/log-topics

                            +

                            URI

                            • URI format

                              POST /v2.0/{project_id}/log-groups/{group_id}/log-topics

                            -
                            • Parameter description -
                      Table 1 Parameter description

                      Parameter

                      Mandatory

                      +

                      Mandatory

                      Type

                      +

                      Type

                      Description

                      +

                      Description

                      project_id

                      +

                      project_id

                      Yes

                      +

                      Yes

                      String

                      +

                      String

                      Project ID

                      +

                      Project ID

                      group_id

                      +

                      group_id

                      Yes

                      +

                      Yes

                      String

                      +

                      String

                      ID of a created log group

                      +

                      ID of a created log group

                      Table 1 Parameter description

                      Parameter

                      +
                      • Parameter description +
                        - - - - - - - - - - - @@ -39,66 +39,66 @@ -

                        Request

                        • Request parameters -
                        Table 1 Parameter description

                        Parameter

                        Mandatory

                        +

                        Mandatory

                        Type

                        +

                        Type

                        Description

                        +

                        Description

                        project_id

                        +

                        project_id

                        Yes

                        +

                        Yes

                        String

                        +

                        String

                        Project ID

                        +

                        Project ID

                        group_id

                        +

                        group_id

                        Yes

                        +

                        Yes

                        String

                        +

                        String

                        ID of a created log group

                        +

                        ID of a created log group

                        Table 2 Parameter description

                        Parameter

                        +

                        Request

                        • Request parameters +
                          - - - - - - -
                          Table 2 Parameter description

                          Parameter

                          Mandatory

                          +

                          Mandatory

                          Type

                          +

                          Type

                          Description

                          +

                          Description

                          log_topic_name

                          +

                          log_topic_name

                          Yes

                          +

                          Yes

                          String

                          +

                          String

                          Log stream name.

                          -

                          The configuration rules are as follows:

                          -
                          • Must be a string of 1 to 64 characters.
                          • Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. The name cannot start or end with a period.
                          +

                          Log stream name.

                          +

                          The configuration rules are as follows:

                          +
                          • Must be a string of 1 to 64 characters.
                          • Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. The name cannot start or end with a period.
                        -
                        • Example request
                          POST  
                          +
                          • Example request
                            POST  
                             /v2.0/{project_id}/log-groups/{group_id}/log-topics
                             { 
                             "log_topic_name":"testTopic01"
                             }
                        -

                        Response

                        • Response parameters -
                          Table 3 Parameter description

                          Parameter

                          +

                          Response

                          • Response parameters +
                            - - - - -
                            Table 3 Parameter description

                            Parameter

                            Type

                            +

                            Type

                            Description

                            +

                            Description

                            log_topic_id

                            +

                            log_topic_id

                            String

                            +

                            String

                            ID of a log stream

                            +

                            ID of a log stream

                          -
                          • Example response
                            {  
                            +
                            • Example response
                              {  
                                  "log_topic_id":"a25d64c8-3028-11e9-9660-286ed488ce71"
                               }
                          -

                          Returned Value

                          • Normal

                            201

                            -
                          • Abnormal

                            For details about status code, see Status Code.

                            +

                            Returned Value

                          diff --git a/docs/lts/api-ref/lts_02_0008.html b/docs/lts/api-ref/lts_02_0008.html index 5fe006812..a2e68e764 100644 --- a/docs/lts/api-ref/lts_02_0008.html +++ b/docs/lts/api-ref/lts_02_0008.html @@ -1,46 +1,46 @@

                          Querying a Log Stream

                          -

                          Function

                          This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.

                          +

                          Function

                          This function describes how to query a log stream you have created to obtain its name, ID, expiration time, and creation time.

                          -

                          URI

                          • URI format

                            GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

                            +

                            URI

                            • URI format

                              GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

                            -
                            • Parameter description -
                              Table 1 Parameter description

                              Parameter

                              +
                              • Parameter description +
                                - - - - - - - - - - - - - - - @@ -48,60 +48,60 @@ -

                                Request

                                • Request parameters

                                  None

                                  -
                                • Example request
                                  GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}
                                  +

                                  Request

                                  • Request parameters

                                    None

                                    +
                                  • Example request
                                    GET /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}
                                  -

                                  Response

                                  • Response parameters -
                                Table 1 Parameter description

                                Parameter

                                Mandatory

                                +

                                Mandatory

                                Type

                                +

                                Type

                                Description

                                +

                                Description

                                project_id

                                +

                                project_id

                                Yes

                                +

                                Yes

                                String

                                +

                                String

                                Project ID

                                +

                                Project ID

                                group_id

                                +

                                group_id

                                Yes

                                +

                                Yes

                                String

                                +

                                String

                                Log group ID

                                +

                                Log group ID

                                topic_id

                                +

                                topic_id

                                Yes

                                +

                                Yes

                                String

                                +

                                String

                                ID of a log stream

                                +

                                ID of a log stream

                                Table 2 Parameter description

                                Parameter

                                +

                                Response

                                • Response parameters +
                                  - - - - - - - - - - - - - - -
                                  Table 2 Parameter description

                                  Parameter

                                  Sub-Parameter

                                  +

                                  Sub-Parameter

                                  Type

                                  +

                                  Type

                                  Description

                                  +

                                  Description

                                  log_topic_name

                                  +

                                  log_topic_name

                                  -

                                  +

                                  -

                                  String

                                  +

                                  String

                                  Log stream name

                                  +

                                  Log stream name

                                  creation_time

                                  +

                                  creation_time

                                  -

                                  +

                                  -

                                  Int64

                                  +

                                  Int64

                                  Log group creation time

                                  +

                                  Log group creation time

                                  index_enabled

                                  +

                                  index_enabled

                                  -

                                  +

                                  -

                                  Bool

                                  +

                                  Bool

                                  Search switch

                                  +

                                  Search switch

                                  -
                                • Example response
                                  { 
                                  +
                                • Example response
                                  { 
                                          "log_topic_name": "lts-topic-jgpv", 
                                          "creation_time": 1550803822973, 
                                          "index_enabled": true
                                   }
                                -

                                Returned Value

                                diff --git a/docs/lts/api-ref/lts_02_0009.html b/docs/lts/api-ref/lts_02_0009.html index c714e2106..84973a77e 100644 --- a/docs/lts/api-ref/lts_02_0009.html +++ b/docs/lts/api-ref/lts_02_0009.html @@ -1,48 +1,48 @@

                                Deleting a log stream

                                -

                                Function

                                This function describes how to delete a log stream that will not be used.

                                -

                                Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log streams cannot be recovered. Therefore, exercise caution when performing this deletion operation.

                                +

                                Function

                                This function describes how to delete a log stream that will not be used.

                                +

                                Before deleting a log stream, ensure that the log stream has no log transfer tasks. Deleted log streams cannot be recovered. Therefore, exercise caution when performing this deletion operation.

                                -

                                URI

                                • URI format

                                  DELETE /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

                                  +

                                  URI

                                  • URI format

                                    DELETE /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}

                                  -
                                  • Parameter description -
                                    Table 1 Parameter description

                                    Parameter

                                    +
                                    • Parameter description +
                                      - - - - - - - - - - - - - - - @@ -50,16 +50,16 @@ -

                                      Request

                                      • Request parameters

                                        None

                                        -
                                      • Example request
                                        DELETE /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}
                                        +

                                        Request

                                        • Request parameters

                                          None

                                          +
                                        • Example request
                                          DELETE /v2.0/{project_id}/log-groups/{group_id}/log-topics/{topic_id}
                                        -

                                        Response

                                        • Parameter description

                                          None

                                          -
                                        • Example response

                                          None

                                          +

                                          Response

                                          • Parameter description

                                            None

                                            +
                                          • Example response

                                            None

                                          -

                                          Returned Value

                                          • Normal

                                            204

                                            -
                                          • Abnormal

                                            For details about status code, see Status Code.

                                            +

                                            Returned Value

                                          diff --git a/docs/lts/api-ref/lts_02_0014.html b/docs/lts/api-ref/lts_02_0014.html deleted file mode 100644 index e48af53f6..000000000 --- a/docs/lts/api-ref/lts_02_0014.html +++ /dev/null @@ -1,43 +0,0 @@ - - -

                                          Change History

                                          -
                                          -
                                      Table 1 Parameter description

                                      Parameter

                                      Mandatory

                                      +

                                      Mandatory

                                      Type

                                      +

                                      Type

                                      Description

                                      +

                                      Description

                                      project_id

                                      +

                                      project_id

                                      Yes

                                      +

                                      Yes

                                      String

                                      +

                                      String

                                      Project ID

                                      +

                                      Project ID

                                      group_id

                                      +

                                      group_id

                                      Yes

                                      +

                                      Yes

                                      String

                                      +

                                      String

                                      ID of a created log group

                                      +

                                      ID of a created log group

                                      topic_id

                                      +

                                      topic_id

                                      Yes

                                      +

                                      Yes

                                      String

                                      +

                                      String

                                      ID of a created log stream

                                      +

                                      ID of a created log stream

                                      - - - - - - - - - - - - - - - - - - - -

                                      Released On

                                      -

                                      Description

                                      -

                                      2022-10-30

                                      -

                                      Modified as follows:

                                      -
                                      1. Added section Log Group Management (New Version).
                                      2. Added section Log Stream Management (New Version).
                                      3. Added section Log Management.
                                      4. Added section Log Transfer.
                                      -

                                      2022-09-22

                                      -

                                      Modified as follows:

                                      -

                                      Added the restriction description of request parameter ttl_in_days in Creating a Log Group.

                                      -

                                      2019-04-26

                                      -

                                      Modified as follows:

                                      -

                                      A maximum of 100 log groups and 100 log streams are supported.

                                      -

                                      2019-04-19

                                      -
                                      1. Changed the Endpoint URL of LTS from https://Endpoint/uri to https://lts.eu-de.otc.t-systems.com/uri.
                                      2. Changed Ttl_in_days to ttl_in_days in the response parameter description table in Querying a Log Group.
                                      3. Deleted the log_topics parameter in the response parameter description table in Querying a Log Stream.
                                      -

                                      2019-03-30

                                      -

                                      This issue is the first official release.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_02_0019.html b/docs/lts/api-ref/lts_02_0019.html deleted file mode 100644 index ca7e40d61..000000000 --- a/docs/lts/api-ref/lts_02_0019.html +++ /dev/null @@ -1,15 +0,0 @@ - - -

                                      Public Parameters

                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_02_0020.html b/docs/lts/api-ref/lts_02_0020.html deleted file mode 100644 index 0ea35c739..000000000 --- a/docs/lts/api-ref/lts_02_0020.html +++ /dev/null @@ -1,100 +0,0 @@ - - -

                                      Status Code

                                      -

                                      Table 1 lists the status code.

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 1 Status code description

                                      Status Code

                                      -

                                      Returned Value

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      OK

                                      -

                                      The results of GET and PUT operations are returned normally.

                                      -

                                      201

                                      -

                                      OK

                                      -

                                      The POST request is successful and the query result is returned.

                                      -

                                      204

                                      -

                                      No Content

                                      -

                                      The result of the DELETE operation is returned normally.

                                      -

                                      400

                                      -

                                      Bad Request

                                      -

                                      Request error.

                                      -

                                      401

                                      -

                                      Unauthorized

                                      -

                                      The authentication information is not provided or is incorrect.

                                      -

                                      403

                                      -

                                      Forbidden

                                      -

                                      You are forbidden to access the requested page.

                                      -

                                      404

                                      -

                                      Not Found

                                      -

                                      The server failed to find the requested resource.

                                      -

                                      408

                                      -

                                      Request Timeout

                                      -

                                      The request timed out.

                                      -

                                      429

                                      -

                                      Too Many Requests

                                      -

                                      The number of requests exceeds the upper limit.

                                      -

                                      500

                                      -

                                      Internal Server Error

                                      -

                                      Failed to complete the request because of a service error.

                                      -

                                      503

                                      -

                                      Service Unavailable

                                      -

                                      Failed to complete the request because the system is unavailable.

                                      -
                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_02_0021.html b/docs/lts/api-ref/lts_02_0021.html deleted file mode 100644 index c6a99a1da..000000000 --- a/docs/lts/api-ref/lts_02_0021.html +++ /dev/null @@ -1,199 +0,0 @@ - - -

                                      Error Code

                                      -

                                      Description

                                      This section explains the meanings of error code responses returned by LTS APIs.

                                      -
                                      -

                                      Response Format

                                      {"error_msg":"Current user is not authenticated correctly, check your token.","error_code":"LTS.0002"}

                                      -
                                      -

                                      Error Code Description

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 1 Error code description

                                      Response Code

                                      -

                                      Error Code

                                      -

                                      Description

                                      -

                                      Error Message

                                      -

                                      Handling Measure

                                      -

                                      400

                                      -

                                      LTS.0101

                                      -

                                      -

                                      Failed to create the log group because a log group with the same name already exists.

                                      -

                                      Failed to create log group, the group name has been existed

                                      -

                                      Check the log group name.

                                      -

                                      400

                                      -

                                      LTS.0104

                                      -

                                      -

                                      Failed to create the log group because the maximum number of log groups has been reached.

                                      -

                                      Failed to create log group, the number of log groups exceeds the quota

                                      -

                                      Check whether the number of log groups reaches the quota (100 by default).

                                      -

                                      400

                                      -

                                      LTS.0105

                                      -

                                      Failed to delete the log group because the log group has associated log transfer tasks.

                                      -

                                      Log group is associated by transfer

                                      -

                                      Check whether the associated log transfer tasks have been deleted.

                                      -

                                      404

                                      -

                                      LTS.0201

                                      -

                                      Failed to create a log stream because the associated log group does not exist.

                                      -

                                      The group is not existed

                                      -

                                      Check the ID of the log group.

                                      -

                                      400

                                      -

                                      LTS.0205

                                      -

                                      Failed to create a log stream because the log stream name already exists.

                                      -

                                      The topic name has been existed

                                      -

                                      Check whether the log stream with the same name already exists.

                                      -

                                      400

                                      -

                                      LTS.0206

                                      -

                                      Failed to create a log stream because the maximum number of log streams has been reached.

                                      -

                                      Failed to create log topic, the number of log topics exceeds the quota

                                      -

                                      Check whether the number of log streams reaches the quota (100 by default).

                                      -

                                      400

                                      -

                                      LTS.0207

                                      -

                                      Failed to delete the log stream because the log stream has associated a log transfer task.

                                      -

                                      Log topic is associated by transfer

                                      -

                                      Check whether the associated log transfer task has been deleted.

                                      -

                                      500

                                      -

                                      LTS.0010

                                      -

                                      -

                                      System internal error.

                                      -

                                      The system encountered an internal error

                                      -

                                      Contact the administrator.

                                      -

                                      500

                                      -

                                      LTS.0102

                                      -

                                      Failed to create the log group.

                                      -

                                      Failed to create log group.

                                      -

                                      Check whether the project ID is correct and whether the log group name meets the requirements.

                                      -

                                      500

                                      -

                                      LTS.0103

                                      -

                                      Failed to delete the log group.

                                      -

                                      Failed to delete log group

                                      -

                                      Check whether the database is normal or whether the network connection is normal.

                                      -

                                      500

                                      -

                                      LTS.0202

                                      -

                                      Failed to create a log stream.

                                      -

                                      Failed to create log topic

                                      -

                                      Check whether the project and group IDs are correct and whether the log stream name meets the requirements.

                                      -

                                      500

                                      -

                                      LTS.0203

                                      -

                                      Failed to delete the log stream.

                                      -

                                      Failed to delete log topic

                                      -

                                      Check whether the database is normal or whether the network connection is normal.

                                      -

                                      400

                                      -

                                      LTS.0001

                                      -

                                      The API version /projectId is invalid or does not exist.

                                      -

                                      API version/project id invalid or missing

                                      -

                                      Check whether the version and projectID information is correct.

                                      -

                                      401

                                      -

                                      LTS.0002

                                      -

                                      Unauthorized user token.

                                      -

                                      Current user is not authenticated correctly, check your token

                                      -

                                      Check the token information of the current user.

                                      -

                                      400

                                      -

                                      LTS.0011

                                      -

                                      Invalid resource ID.

                                      -

                                      The resource id is invalid or missing

                                      -

                                      Check whether the resource ID in the request is correct.

                                      -
                                      -
                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0000.html b/docs/lts/api-ref/lts_api_0000.html new file mode 100644 index 000000000..423338157 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0000.html @@ -0,0 +1,8 @@ + + +

                                      API Description

                                      +

                                      Public cloud APIs comply with the RESTful API design principles. REST-based Web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://lts.eu-de.otc.t-systems.com/uri. In the URL, uri indicates the resource path, that is, the API access path.

                                      +

                                      Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

                                      +

                                      For details about how to use APIs, see API Usage Guidelines.

                                      +
                                      + diff --git a/docs/lts/api-ref/lts_api_0002.html b/docs/lts/api-ref/lts_api_0002.html new file mode 100644 index 000000000..8f9ff2fa8 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0002.html @@ -0,0 +1,88 @@ + + +

                                      API Overview

                                      +

                                      LTS extension APIs allow you to use the basic LTS functions. For example, you can query API versions, create, query, and delete log groups or log streams.

                                      +

                                      Table 1 describes the LTS APIs.

                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 1 API description

                                      Category

                                      +

                                      Description

                                      +

                                      Log group management (old version)

                                      +

                                      APIs for creating, querying, and deleting log groups

                                      +

                                      Log stream management (old version)

                                      +

                                      APIs for creating, querying, and deleting log streams

                                      +

                                      Host group management

                                      +

                                      APIs for creating, querying, deleting, and modifying host groups

                                      +

                                      Log group management

                                      +

                                      APIs for creating, querying, deleting, and modifying log groups

                                      +

                                      Log stream management

                                      +

                                      APIs for creating, querying, deleting, and modifying log streams

                                      +

                                      Log management

                                      +

                                      APIs for querying logs

                                      +

                                      Log ingestion

                                      +

                                      APIs for reporting logs

                                      +

                                      Log transfer

                                      +

                                      APIs for transferring logs of one or more specified log streams to other services

                                      +

                                      Log collection beyond free quota

                                      +

                                      APIs for enabling or disabling log collection beyond free quota

                                      +

                                      Cloud structuring

                                      +

                                      APIs for structuring logs, and querying, modifying, and deleting structuring rules

                                      +

                                      Keyword alarm rules

                                      +

                                      APIs for creating, querying, modifying, and deleting keyword alarm rules

                                      +

                                      Alarm list

                                      +

                                      APIs for querying and deleting alarms

                                      +

                                      Tag management

                                      +

                                      APIs for adding tags to log groups, log streams, and host groups

                                      +

                                      Quick search

                                      +

                                      APIs for creating, querying, and deleting quick search requests

                                      +
                                      +
                                      +
                                      +
                                      + diff --git a/docs/lts/api-ref/lts_api_0003.html b/docs/lts/api-ref/lts_api_0003.html new file mode 100644 index 000000000..752559e1d --- /dev/null +++ b/docs/lts/api-ref/lts_api_0003.html @@ -0,0 +1,15 @@ + + +

                                      Calling APIs

                                      +
                                      + + diff --git a/docs/lts/api-ref/lts_api_0004.html b/docs/lts/api-ref/lts_api_0004.html new file mode 100644 index 000000000..7e22ab550 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0004.html @@ -0,0 +1,144 @@ + + +

                                      Making an API Request

                                      +

                                      This section describes the structure of a REST API request, and uses the IAM API for obtaining a user token as an example to demonstrate how to call an API. The obtained token can then be used to authenticate the calling of other APIs.

                                      +

                                      Request URI

                                      A request URI is in the following format:

                                      +

                                      {URI-scheme} :// {Endpoint} / {resource-path} ? {query-string}

                                      +

                                      Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.

                                      +
                                      • URI-scheme:

                                        Protocol used to transmit requests. All APIs use HTTPS.

                                        +
                                      • Endpoint:

                                        Domain name or IP address of the server bearing the REST service. The endpoint varies between services in different regions. It can be obtained from Regions and Endpoints.

                                        +
                                      • resource-path:

                                        Access path of an API for performing a specified operation. Obtain the path from the URI of an API. For example, the resource-path of the API used to obtain a user token is /v3/auth/tokens.

                                        +
                                      • query-string:

                                        Query parameter, which is optional. Ensure that a question mark (?) is included before each query parameter that is in the format of "Parameter name=Parameter value". For example, ?limit=10 indicates that a maximum of 10 data records will be displayed.

                                        +
                                      +

                                      To simplify the URI display, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.

                                      +
                                      +
                                      +

                                      Request Methods

                                      The HTTPS protocol defines the following request methods that can be used to send a request to the server:

                                      +
                                      • GET: requests a server to return specified resources.
                                      • PUT: requests a server to update specified resources.
                                      • POST: requests a server to add resources or perform special operations.
                                      • DELETE: requests a server to delete specified resources, for example, objects.
                                      • HEAD: same as GET except that the server must return only the response header.
                                      • PATCH: requests a server to update a part of a specified resource. If the resource does not exist, a new resource will be created.
                                      +

                                      For example, in the case of the API used to obtain a user token, the request method is POST. The request is as follows:

                                      +
                                      +

                                      Request Header

                                      You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.

                                      +
                                      Common request header fields are as follows: +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 1 Common request header fields

                                      Parameter

                                      +

                                      Description

                                      +

                                      Mandatory

                                      +

                                      Example Value

                                      +

                                      Host

                                      +

                                      Server domain name and port number of the resources being requested. The value can be obtained from the URL of the service API. The value is in the format of Hostname:Port number. If the port number is not specified, the default port is used. The default port number for https is 443.

                                      +

                                      No

                                      +

                                      This field is mandatory for AK/SK authentication.

                                      +

                                      code.test.com

                                      +

                                      or

                                      +

                                      code.test.com:443

                                      +

                                      Content-Type

                                      +

                                      Type (or format) of the message body. The default value application/json is recommended. Other values of this field will be provided for specific APIs if any.

                                      +

                                      Yes

                                      +

                                      application/json

                                      +

                                      Content-Length

                                      +

                                      Length of the request body. The unit is byte.

                                      +

                                      No

                                      +

                                      3495

                                      +

                                      X-Project-Id

                                      +

                                      Project ID. Obtain the project ID by following the instructions in Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

                                      +

                                      No

                                      +

                                      e9993fc787d94b6c886cbaa340f9c0f4

                                      +
                                      +
                                      +
                                      +

                                      In addition to supporting token-based authentication, APIs also support authentication using access key ID/secret access key (AK/SK). During AK/SK-based authentication, an SDK is used to sign a request, and the Authorization (signature information) and X-Sdk-Date (time when the request is sent) header fields are automatically added to the request.

                                      +

                                      For details, see "AK/SK-based Authentication" in Authentication.

                                      +
                                      +

                                      The API used to obtain a user token does not require authentication. Therefore, only the Content-Type field needs to be added to requests for calling the API. An example of such requests is as follows:

                                      +
                                      +

                                      Request Body (Optional)

                                      This part is optional. A request body is often sent in a structured format (for example, JSON or XML) as defined in the Content-Type header field. All characters in a request body must be UTF-8 encoded.

                                      +

                                      The request body varies between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

                                      +

                                      In the case of the API used to obtain a user token, the request parameters and parameter description can be obtained from the API request. The following provides an example request with a body included. Replace username, domainname, ******** (login password), and xxxxxxxxxxxxxxxxx (project name) with the actual values. Obtain a project name from Regions and Endpoints.

                                      +

                                      The scope parameter specifies where a token takes effect. You can set scope to an account or a project under an account. For details, see Obtaining a User Token.

                                      +
                                      +
                                       1
                                      + 2
                                      + 3
                                      + 4
                                      + 5
                                      + 6
                                      + 7
                                      + 8
                                      + 9
                                      +10
                                      +11
                                      +12
                                      +13
                                      +14
                                      +15
                                      +16
                                      +17
                                      +18
                                      +19
                                      +20
                                      +21
                                      +22
                                      +23
                                      +24
                                      +25
                                      Content-Type: application/json
                                      +
                                      +{
                                      +    "auth": {
                                      +        "identity": {
                                      +            "methods": [
                                      +                "password"
                                      +            ],
                                      +            "password": {
                                      +                "user": {
                                      +                    "name": "username",
                                      +                    "password": "********",
                                      +                    "domain": {
                                      +                        "name": "domainname"
                                      +                    }
                                      +                }
                                      +            }
                                      +        },
                                      +        "scope": {
                                      +            "project": {
                                      +                "name": "xxxxxxxxxxxxxxxxxx"
                                      +            }
                                      +        }
                                      +    }
                                      +}
                                      +
                                      +
                                      +

                                      If all data required for the API request is available, you can send the request to call an API through curl, Postman, or coding. In the response to the API used to obtain a user token, x-subject-token is the desired user token. This token can then be used to authenticate the calling of other APIs.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0005.html b/docs/lts/api-ref/lts_api_0005.html new file mode 100644 index 000000000..e74f920cb --- /dev/null +++ b/docs/lts/api-ref/lts_api_0005.html @@ -0,0 +1,52 @@ + + +

                                      Authentication

                                      +

                                      You can use either of the following authentication methods when calling APIs:

                                      +
                                      • Token-based authentication: Requests are authenticated using a token.
                                      • AK/SK-based authentication: Requests are authenticated by encrypting the request body using an AK/SK pair. AK/SK-based authentication is recommended because it is more secure than token-based authentication.
                                      +

                                      Token-based Authentication

                                      The validity period of a token is 24 hours. When using a token for authentication, cache it to prevent frequently calling the IAM API used to obtain a user token.

                                      +
                                      +

                                      A token is used to acquire temporary permissions. During API authentication using a token, the token is added to requests to get permissions for calling the API.

                                      +

                                      You can obtain a token by calling the Obtaining User Token API. When you call the API, set auth.scope in the request body to project.

                                      +
                                      {
                                      +    "auth": {
                                      +        "identity": {
                                      +            "methods": [
                                      +                "password"
                                      +            ],
                                      +            "password": {
                                      +                "user": {
                                      +                    "name": "username",
                                      +                    "password": "********",
                                      +                    "domain": {
                                      +                        "name": "domainname"
                                      +                    }
                                      +                }
                                      +            }
                                      +        },
                                      +        "scope": {
                                      +            "project": {
                                      +                "name": "xxxxxxxx"
                                      +            }
                                      +        }
                                      +    }
                                      +}
                                      +

                                      After a token is obtained, the X-Auth-Token header field must be added to requests to specify the token when calling other APIs. For example, if the token is ABCDEFJ...., X-Auth-Token: ABCDEFJ.... can be added to a request as follows:

                                      +
                                      +Content-Type: application/json
                                      +X-Auth-Token: ABCDEFJ....
                                      +
                                      +

                                      AK/SK-based Authentication

                                      AK/SK-based authentication supports API requests with a body no larger than 12 MB. For API requests with a larger body, you should use token-based authentication.

                                      +
                                      +

                                      In AK/SK-based authentication, AK/SK is used to sign requests and the signature is then added to the requests for authentication.

                                      +
                                      • AK: access key ID, which is a unique identifier used in conjunction with a secret access key to sign requests cryptographically.
                                      • SK: secret access key used in conjunction with an AK to sign requests cryptographically. It identifies a request sender and prevents the request from being modified.
                                      +

                                      In AK/SK-based authentication, you can use an AK/SK to sign requests based on the signature algorithm or use the signing SDK to sign requests.

                                      +

                                      The signing SDK is only used for signing requests and is different from the SDKs provided by services.

                                      +
                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0006.html b/docs/lts/api-ref/lts_api_0006.html index b6900de13..c21447225 100644 --- a/docs/lts/api-ref/lts_api_0006.html +++ b/docs/lts/api-ref/lts_api_0006.html @@ -1,16 +1,20 @@ -

                                      Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID

                                      -

                                      Obtaining Account and Project IDs

                                      Account and project IDs are required in URLs when you call some APIs.

                                      +

                                      Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID

                                      +

                                      Obtaining Account and Project IDs

                                      Account and project IDs are required in URLs when you call some APIs.

                                      +
                                      1. Log in to the management console.
                                      2. Hover the mouse pointer over the username and choose My Credentials from the drop-down list.

                                        +

                                        +
                                      3. On the My Credentials page, view the account and project IDs.

                                        +

                                        +

                                        +
                                      -

                                      Obtaining Log Group and Log Stream IDs

                                      +

                                      Obtaining Log Group and Log Stream IDs

                                      1. Log in to the LTS console.
                                      2. On the Log Management page, move the cursor to a log group name to view the log group ID.
                                      3. Click of the target log group and move the cursor to a log stream name to view the log stream ID.
                                      diff --git a/docs/lts/api-ref/lts_api_0007.html b/docs/lts/api-ref/lts_api_0007.html new file mode 100644 index 000000000..4024b89f8 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0007.html @@ -0,0 +1,39 @@ + + +

                                      Response

                                      +

                                      Status Code

                                      After sending a request, you will receive a response, including a status code, response header, and response body.

                                      +

                                      A status code is a group of digits, ranging from 1xx to 5xx. It indicates the status of a request. For details, see Error Codes.

                                      +

                                      For example, if status code 201 is returned for calling the API used to obtain a user token, the request is successful.

                                      +
                                      +

                                      Response Header

                                      Similar to a request, a response also has a header, for example, Content-type.

                                      +

                                      Figure 1 shows the response header fields for the API used to obtain a user token. The x-subject-token header field is the desired user token. This token can then be used to authenticate the calling of other APIs.

                                      +
                                      Figure 1 Header fields of the response to the request for obtaining a user token
                                      +
                                      +

                                      Response Body (Optional)

                                      The body of a response is often returned in structured format as specified in the Content-type header field. The response body transfers content except the response header.

                                      +

                                      The following is part of the response body for the API used to obtain a user token.

                                      +
                                      {
                                      +    "token": {
                                      +        "expires_at": "2019-02-13T06:52:13.855000Z",
                                      +        "methods": [
                                      +            "password"
                                      +        ],
                                      +        "catalog": [
                                      +            {
                                      +                "endpoints": [
                                      +                    {
                                      +                        "region_id": "xxxxx",
                                      +......
                                      +

                                      If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

                                      +
                                      {
                                      +    "error_msg": "The format of message is error",
                                      +    "error_code": "AS.0001"
                                      +}
                                      +

                                      In the response body, error_code is an error code, and error_msg provides information about the error.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0010.html b/docs/lts/api-ref/lts_api_0010.html new file mode 100644 index 000000000..f3d87c8a5 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0010.html @@ -0,0 +1,41 @@ + + +

                                      APIs

                                      +
                                      + + diff --git a/docs/lts/api-ref/lts_api_0011.html b/docs/lts/api-ref/lts_api_0011.html index fc0399be4..7b80e191f 100644 --- a/docs/lts/api-ref/lts_api_0011.html +++ b/docs/lts/api-ref/lts_api_0011.html @@ -1,17 +1,22 @@ -

                                      Log Group Management (New Version)

                                      -
                                      +

                                      Log Group Management

                                      +

                                      +
                                      diff --git a/docs/lts/api-ref/lts_api_0012.html b/docs/lts/api-ref/lts_api_0012.html deleted file mode 100644 index 81261f9f8..000000000 --- a/docs/lts/api-ref/lts_api_0012.html +++ /dev/null @@ -1,370 +0,0 @@ - - -

                                      Creating a Log Group

                                      -

                                      Function

                                      This API is used to create a log group for log retention and query. You can create a maximum of 100 log groups.

                                      -
                                      -

                                      URI

                                      POST /v2/{project_id}/groups -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 32 characters

                                      -
                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 3 Request body parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_name

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Name of the log group to be created.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      Enumerated value:

                                      -
                                      • lts-group-01nh
                                      -

                                      ttl_in_days

                                      -

                                      Yes

                                      -

                                      Integer

                                      -

                                      Log retention duration, in days (fixed to 7 days).

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 201

                                      - -
                                      - - - - - - - - - -
                                      Table 4 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      ID of the created log group.

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 8 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 503

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 9 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      POST https://{endpoint}/v2/{project_id}/groups
                                      -
                                      -/v2/{project_id}/groups
                                      -{
                                      -  "log_group_name": "lts-group-01nh",
                                      -  "ttl_in_days": 7
                                      -}
                                      -
                                      -

                                      Example Response

                                      Status code: 201

                                      -
                                      {
                                      -  "log_group_id":"b6b9332b-091f-4b22-b810-264318d2d664"
                                      -}
                                      -

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      {
                                      -  "error_code" : "LTS.0009",
                                      -  "error_msg" : "Failed to validate the request body"
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0102",
                                      -  "error_msg" : "Failed to create log group"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      201

                                      -

                                      The request has succeeded and the log group has been created.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0013.html b/docs/lts/api-ref/lts_api_0013.html deleted file mode 100644 index a8a7850ea..000000000 --- a/docs/lts/api-ref/lts_api_0013.html +++ /dev/null @@ -1,304 +0,0 @@ - - -

                                      Querying All Log Groups of an Account

                                      -

                                      Function

                                      This API is used to query all log groups of an account.

                                      -
                                      -

                                      URI

                                      GET /v2/{project_id}/groups

                                      - -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID. Default value: None

                                      -

                                      Value length: 32 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - -
                                      Table 3 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_groups

                                      -

                                      Array of LogGroup objects

                                      -

                                      Information of log groups.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 4 LogGroup

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      creation_time

                                      -

                                      long

                                      -

                                      Time when a log group was created.

                                      -

                                      log_group_name

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Value length: 36 characters

                                      -

                                      ttl_in_days

                                      -

                                      Integer

                                      -

                                      Log retention duration, in days (fixed to 7 days).

                                      -

                                      tag

                                      -

                                      Map<String,String>

                                      -

                                      Log group tag.

                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      GET https://{endpoint}/v2/{project_id}/groups
                                      -
                                      -/v2/{project_id}/groups
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -
                                      {"log_groups":[{"creation_time":1630547141853,"log_group_name":"lts-group-01nh","log_group_id":"b6b9332b-091f-4b22-b810-264318d2d664","ttl_in_days":7}]}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0010",
                                      -  "error_msg" : "The system encountered an internal error"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The request is successful.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0014.html b/docs/lts/api-ref/lts_api_0014.html deleted file mode 100644 index 9c8577745..000000000 --- a/docs/lts/api-ref/lts_api_0014.html +++ /dev/null @@ -1,285 +0,0 @@ - - -

                                      Deleting a Log Group

                                      -

                                      Function

                                      This API is used to delete a specified log group. If the log streams in a log group have been associated with log transfer tasks, you need to delete the tasks first.

                                      -
                                      -

                                      URI

                                      DELETE /v2/{project_id}/groups/{log_group_id}

                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID. Default value: None

                                      -

                                      Value length: 32 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log group ID. For details about how to obtain a log group ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 3 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 4 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}
                                      -
                                      -/v2/{project_id}/groups/{log_group_id}
                                      -
                                      -

                                      Example Response

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      {
                                      -  "error_code" : "LTS.0201",
                                      -  "error_msg" : "The log group is not existed"
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0103",
                                      -  "error_msg" : "Failed to delete log group"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      204

                                      -

                                      The request has succeeded and the log group has been deleted.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0015.html b/docs/lts/api-ref/lts_api_0015.html index 48510c96e..3f0a79aaf 100644 --- a/docs/lts/api-ref/lts_api_0015.html +++ b/docs/lts/api-ref/lts_api_0015.html @@ -1,15 +1,24 @@ -

                                      Log Stream Management (New Version)

                                      -
                                      +

                                      Log Stream Management

                                      +

                                      +
                                      diff --git a/docs/lts/api-ref/lts_api_0016.html b/docs/lts/api-ref/lts_api_0016.html deleted file mode 100644 index c56e945e0..000000000 --- a/docs/lts/api-ref/lts_api_0016.html +++ /dev/null @@ -1,363 +0,0 @@ - - -

                                      Creating a Log Stream

                                      -

                                      Function

                                      This API is used to create a log stream in a specified log group.

                                      -
                                      -

                                      URI

                                      POST /v2/{project_id}/groups/{log_group_id}/streams

                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID. Default value: None

                                      -

                                      Value length: 32 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      ID of the log group to which the log stream to be created will belong.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - -
                                      Table 3 Request body parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_stream_name

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Name of the log stream to be created.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      Enumerated value:

                                      -
                                      • lts-stream-13ci
                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 201

                                      - -
                                      - - - - - - - - - -
                                      Table 4 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_stream_id

                                      -

                                      String

                                      -

                                      ID of the created log stream.

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 8 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 503

                                      - -
                                      - - - - - - - - - -
                                      Table 9 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      -

                                      -

                                      String

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
                                      -
                                      -/v2/{project_id}/groups/{log_group_id}/streams
                                      -{
                                      -  "log_stream_name": "lts-stream-02kh",
                                      -  "ttl_in_days": 7,
                                      -  
                                      -}
                                      -  
                                      -
                                      -

                                      Example Response

                                      Status code: 201

                                      -
                                      {
                                      -  "log_stream_id":"c54dbc58-0fd8-48ed-b007-6d54981427a7"
                                      -}
                                      -

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      {
                                      -  "error_code" : "LTS.0009",
                                      -  "error_msg" : "Failed to validate the request body"
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0202",
                                      -  "error_msg" : "Failed to create Log stream"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      201

                                      -

                                      The request has succeeded and the log stream has been created.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0017.html b/docs/lts/api-ref/lts_api_0017.html deleted file mode 100644 index 531fdd700..000000000 --- a/docs/lts/api-ref/lts_api_0017.html +++ /dev/null @@ -1,345 +0,0 @@ - - -

                                      Querying All Log Streams in a Specified Log Group

                                      -

                                      Function

                                      This API is used to query information about all log streams in a specified log group.

                                      -
                                      -

                                      URI

                                      GET /v2/{project_id}/groups/{log_group_id}/streams

                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID. Default value: None

                                      -

                                      Value length: 32 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      ID of the log group whose log streams will be queried.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - -
                                      Table 3 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_streams

                                      -

                                      Array of LogStream objects

                                      -

                                      List of log streams.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 4 LogStream

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      creation_time

                                      -

                                      long

                                      -

                                      Creation time.

                                      -

                                      Minimum value: 1577808000000

                                      -

                                      Maximum value: 4102416000000

                                      -

                                      log_stream_name

                                      -

                                      String

                                      -

                                      Log stream name.

                                      -

                                      Value length: 36 characters

                                      -

                                      log_stream_id

                                      -

                                      String

                                      -

                                      Log stream ID.

                                      -

                                      Value length: 36 characters

                                      -

                                      filter_count

                                      -

                                      Integer

                                      -

                                      Number of filters.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 5

                                      -

                                      tag

                                      -

                                      Map<String,String>

                                      -

                                      Log stream tag.

                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 503

                                      - -
                                      - - - - - - - - - -
                                      Table 8 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      -

                                      -

                                      String

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      GET https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams
                                      -
                                      -/v2/{project_id}/groups/{log_group_id}/streams
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -
                                      {
                                      -  "log_streams" : [ {
                                      -    "creation_time":1630549842955,    
                                      -    "log_stream_name":"lts-stream-02kh",
                                      -    "log_stream_id":"c54dbc58-0fd8-48ed-b007-6d54981427a7",
                                      -    "filter_count":0
                                      -     } ]
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0010",
                                      -  "error_msg" : "The system encountered an internal error"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The request is successful.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0018.html b/docs/lts/api-ref/lts_api_0018.html deleted file mode 100644 index ca78493ce..000000000 --- a/docs/lts/api-ref/lts_api_0018.html +++ /dev/null @@ -1,316 +0,0 @@ - - -

                                      Deleting a Log Stream

                                      -

                                      Function

                                      This API is used to delete a specified log stream from a specified log group. If a log transfer task has been associated with the log stream, delete the task first.

                                      -
                                      -

                                      URI

                                      DELETE /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 32 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      ID of the log group whose log streams will be deleted.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -

                                      log_stream_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      ID of the log stream to be deleted. For details about how to obtain the log stream ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Value length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 3 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 4 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 503

                                      - -
                                      - - - - - - - - - -
                                      Table 7 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      -

                                      -

                                      String

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      DELETE https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
                                      -
                                      -/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}
                                      -
                                      -

                                      Example Response

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      {
                                      -  "error_code" : "LTS.0208",
                                      -  "error_msg" : "The log stream does not existed"
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0003",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0203",
                                      -  "error_msg" : "Failed to delete Log stream"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      204

                                      -

                                      The request has succeeded and the log stream has been deleted.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0019.html b/docs/lts/api-ref/lts_api_0019.html new file mode 100644 index 000000000..b68cab606 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0019.html @@ -0,0 +1,15 @@ + + +

                                      Appendix

                                      +
                                      + + diff --git a/docs/lts/api-ref/lts_api_0020.html b/docs/lts/api-ref/lts_api_0020.html new file mode 100644 index 000000000..3d200df99 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0020.html @@ -0,0 +1,100 @@ + + +

                                      Status Codes

                                      +

                                      Table 1 lists the status codes.

                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 1 Status codes

                                      Status Code

                                      +

                                      Returned Value

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      OK

                                      +

                                      The normal response for the GET or PUT operation is returned.

                                      +

                                      201

                                      +

                                      OK

                                      +

                                      The POST request is successful and the query result is returned.

                                      +

                                      204

                                      +

                                      No Content

                                      +

                                      The normal response for the DELETE operation is returned.

                                      +

                                      400

                                      +

                                      Bad Request

                                      +

                                      Request error.

                                      +

                                      401

                                      +

                                      Unauthorized

                                      +

                                      The authentication information is not provided or is incorrect.

                                      +

                                      403

                                      +

                                      Forbidden

                                      +

                                      You are forbidden to access the page requested.

                                      +

                                      404

                                      +

                                      Not Found

                                      +

                                      The server failed to find the requested resource.

                                      +

                                      408

                                      +

                                      Request Timeout

                                      +

                                      The request timed out.

                                      +

                                      429

                                      +

                                      Too Many Requests

                                      +

                                      The number of requests exceeded the upper limit.

                                      +

                                      500

                                      +

                                      Internal Server Error

                                      +

                                      The server encountered an unexpected condition which prevented it from fulfilling the request.

                                      +

                                      503

                                      +

                                      Service Unavailable

                                      +

                                      The service is currently unavailable.

                                      +
                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0023.html b/docs/lts/api-ref/lts_api_0023.html new file mode 100644 index 000000000..4aa9ac950 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0023.html @@ -0,0 +1,59 @@ + + +

                                      Change History

                                      +
                                      +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

                                      Released On

                                      +

                                      Description

                                      +

                                      2024-12-13

                                      +
                                      • Deleted the API for creating an index for a specified log stream.
                                      • Optimized the API description. For example, deleted the maximum, minimum, and default values of response parameters.
                                      +

                                      2024-08-30

                                      +

                                      Added the following APIs: Log Collection Beyond Free Quota, Cloud Structuring, Alarm Topics, Message Template Management, Keyword Alarm Rules, Alarm List, Tag Management, and Quick Search.

                                      +

                                      2024-08-15

                                      +

                                      Updated the following API: Creating a Log Group.

                                      +

                                      2024-05-30

                                      +

                                      Added the following APIs: Host Group Management and Log Ingestion.

                                      +

                                      Optimized description in Log Group Management, Log Stream Management, Log Management, and Log Transfer.

                                      +

                                      2020-08-31

                                      +

                                      Replaced the original APIs with the following ones:

                                      +
                                      • Creating a log group
                                      • Querying all log groups of an account
                                      • Deleting a log group
                                      • Creating a log stream
                                      • Querying all log streams in a specified log group
                                      • Deleting a log stream
                                      • Querying logs
                                      • Creating a log transfer task (old version)
                                      +

                                      2019-04-26

                                      +

                                      Modified the following content:

                                      +

                                      A maximum of 100 log groups and log streams are supported.

                                      +

                                      2019-04-19

                                      +

                                      Modified the following content:

                                      +
                                      • Changed the LTS URL from https://Endpoint/uri to https://lts.eu-de.otc.t-systems.com/uri in the "APIs" section.
                                      • Changed Ttl_in_days to ttl_in_days in the response parameters of the API for querying log groups.
                                      • Deleted log_topics from the response parameters of the API for querying log streams.
                                      +

                                      2019-03-30

                                      +

                                      This issue is the first official release.

                                      +
                                      +
                                      +
                                      + diff --git a/docs/lts/api-ref/lts_api_0024.html b/docs/lts/api-ref/lts_api_0024.html deleted file mode 100644 index eb0180595..000000000 --- a/docs/lts/api-ref/lts_api_0024.html +++ /dev/null @@ -1,358 +0,0 @@ - - -

                                      Modifying a Log Group

                                      -

                                      Function

                                      This API is used to modify the log retention duration of a specified log group.

                                      -
                                      -

                                      URI

                                      POST /v2/{project_id}/groups/{log_group_id}

                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain a project ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log group ID. For details about how to obtain a log group ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - -
                                      Table 3 Request body parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      ttl_in_days

                                      -

                                      Yes

                                      -

                                      Integer

                                      -

                                      Log retention duration, in days (fixed to 7 days).

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - -
                                      Table 4 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      creation_time

                                      -

                                      long

                                      -

                                      Time when a log group was created.

                                      -

                                      log_group_name

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Value length: 36 characters

                                      -

                                      ttl_in_days

                                      -

                                      Integer

                                      -

                                      Log retention duration, in days (fixed to 7 days).

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 8 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}
                                      -
                                      -/v2/{project_id}/groups/{log_group_id}
                                      -{
                                      -  "ttl_in_days": 8
                                      -}
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -
                                      {"creation_time" : "number","log_group_name" : "string","log_group_id" : "string","ttl_in_days" : 8}
                                      -

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      {
                                      -  "error_code" : "LTS.0009",
                                      -  "error_msg" : "Failed to validate the request body"
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      {
                                      -  "error_code" : "LTS.0414",
                                      -  "error_msg" : "Invalid token"
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      {
                                      -  "error_code" : "LTS.0001",
                                      -  "error_msg" : "Invalid projectId"
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      {
                                      -  "error_code" : "LTS.0102",
                                      -  "error_msg" : "Failed to update log group"
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The request has succeeded and the log group has been modified.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0026.html b/docs/lts/api-ref/lts_api_0026.html deleted file mode 100644 index 5ddfaa5b1..000000000 --- a/docs/lts/api-ref/lts_api_0026.html +++ /dev/null @@ -1,17 +0,0 @@ - - -

                                      Log Transfer

                                      -
                                      - - diff --git a/docs/lts/api-ref/lts_api_0027.html b/docs/lts/api-ref/lts_api_0027.html deleted file mode 100644 index a3b249e3f..000000000 --- a/docs/lts/api-ref/lts_api_0027.html +++ /dev/null @@ -1,449 +0,0 @@ - - -

                                      Creating a Log Transfer Task

                                      -

                                      Function

                                      This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).

                                      -
                                      -

                                      URI

                                      POST /v2/{project_id}/log-dump/obs

                                      - -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 32 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 3 Request body parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Value length: 36 characters

                                      -

                                      log_stream_ids

                                      -

                                      Yes

                                      -

                                      Array of strings

                                      -

                                      Indicates IDs of log streams whose logs are to be periodically transferred to OBS. You can specify one or more log streams.

                                      -

                                      Example value:

                                      -
                                      • 7bb6b1e7-xxxx-4255-87f9-b3dc7fb2xxxx
                                      -

                                      obs_bucket_name

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Indicates the name of an OBS bucket.

                                      -

                                      Minimum length: 3 characters

                                      -

                                      Maximum length: 63 characters

                                      -

                                      type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to cycle, which indicates that the log transfer is periodic.

                                      -

                                      Value length: 5 characters

                                      -

                                      storage_format

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Indicates whether the logs are stored in raw or JSON format. The default value is RAW.

                                      -

                                      Minimum length: 3 characters

                                      -

                                      Maximum length: 4 characters

                                      -

                                      switch_on

                                      -

                                      No

                                      -

                                      Boolean

                                      -

                                      Indicates whether the log transfer is enabled. The value is true (default) or false.

                                      -

                                      prefix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Indicates the file name prefix of the log files transferred to an OBS bucket.

                                      -

                                      Minimum length: 0 characters

                                      -

                                      Maximum length: 64 characters

                                      -

                                      dir_prefix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Indicates a custom path to store the log files.

                                      -

                                      Minimum length: 0 characters

                                      -

                                      Maximum length: 64 characters

                                      -

                                      period

                                      -

                                      Yes

                                      -

                                      Integer

                                      -

                                      Indicates the length of the log transfer interval.

                                      -

                                      Example values: 1, 2, 3, 5, 6, 12, and 30

                                      -

                                      period_unit

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Indicates the unit of the log transfer interval.

                                      -

                                      Example values: min and hour

                                      -

                                      Minimum length: 3 characters

                                      -

                                      Maximum length: 4 characters

                                      -
                                      NOTE:

                                      The log transfer interval is specified by the combination of the values of period and period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

                                      -
                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 201

                                      - -
                                      - - - - - - - - - -
                                      Table 4 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_dump_obs_id

                                      -

                                      String

                                      -

                                      Transfer task ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0007
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • The request body format must be json
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Example value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Example value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      POST https://{endpoint}/v2/{project_id}/log-dump/obs 
                                      - 
                                      -/v2/{project_id}/log-dump/obs 
                                      -{ 
                                      -  "log_group_id": "d9dba9f3-xxxx-48bd-xxxx-xxxxa24a8053", 
                                      -  "log_stream_ids": ["45e7f609-xxxx-4cd3-835b-xxxx4a124718"], 
                                      -  "obs_bucket_name": "lts-test", 
                                      -  "type": "cycle", 
                                      -  "storage_format": "RAW", 
                                      -  "switch_on": "true", 
                                      -  "prefix_name": "fileprefixname", 
                                      -  "dir_prefix_name": "dirprefixname", 
                                      -  "period": 5, 
                                      -  "period_unit": "min" 
                                      -}
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -
                                      • The log group does not exist.
                                        {    
                                        -  "error_code": "LTS.0201",    
                                        -  "error_msg": "The log group does not existed"
                                        -}
                                        -
                                      • The log stream does not exist.
                                        {    
                                        -  "error_code": "LTS.0208",      
                                        -  "error_msg": "Log stream id does not exist: 632b9bdc-5afd-4666-a5de-2579f8b80314-"
                                        -}
                                        -
                                      • The OBS bucket does not exist.
                                        {    
                                        -  "error_code": "LTS.0416",    
                                        -  "error_msg": "obs bucket does not exist: zhuanchu"
                                        -}
                                        -
                                      • The log stream ID has been associated with a transfer task.
                                        {    
                                        -  "error_code": "LTS.0207",    
                                        -  "error_msg": "Log stream id is associated by transfer: 632b9bdc-5afd-4666-a5de-2579f8b80314"
                                        -}
                                        -
                                      • Invalid transfer type.
                                        {    
                                        -  "error_code": "LTS.1901",    
                                        -  "error_msg": "type is not in the list [cycle]"
                                        -}
                                        -
                                      • Invalid storage format.
                                        {    
                                        -  "error_code": "LTS.1901",     
                                        -  "error_msg": "storage_format is not in the list [RAW, JSON]"
                                        -}
                                        -
                                      • Invalid log transfer interval.
                                        {    
                                        -  "error_code": "LTS.1901",    
                                        -  "error_msg": "period+period_unit is not in the list [2min, 5min, 30min, 1hour, 3hour, 6hour, 12hour]"
                                        -}
                                        -
                                      • Invalid unit of the log transfer interval.
                                        {    
                                        -  "error_code": "LTS.1901",    
                                        -  "error_msg": "period_unit is not in the list [min, hour]"
                                        -}
                                        -
                                      • Invalid file name prefix.
                                        {
                                        -   "error_code": "LTS.1902",
                                        -   "error_msg": "prefix_name is invalid, please verify if it's provided as required"
                                        -}
                                        -
                                      • Invalid custom path to store log files.
                                        {    
                                        -  "error_code": "LTS.1902",    
                                        -  "error_msg": "dir_prefix_name is invalid, please verify if it's provided as required"
                                        -}
                                        -
                                      -

                                      Status code: 201

                                      -
                                      { 
                                      -  "log_dump_obs_id" : "45fdc36b-xxxx-4567-xxxx-559xxxxdf968" 
                                      -}
                                      -

                                      Status code: 400

                                      -
                                      • The request is invalid. Modify the request based on the description in error_msg before a retry.
                                        { 
                                        -  "error_code" : "LTS.0009", 
                                        -  "error_msg" : "Failed to validate the request body" 
                                        -}
                                        -
                                      • The request is invalid. Modify the request based on the description in error_msg before a retry.
                                        {    
                                        -  "error_code": "LTS.0007",    
                                        -  "error_msg": "The request body format must be json"
                                        -}
                                        -
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0001", 
                                      -  "error_msg" : "Invalid projectId" 
                                      -}
                                      -

                                      Status code: 500

                                      -
                                      • The server has received the request but encountered an internal error.
                                        { 
                                        -  "error_code" : "LTS.0202", 
                                        -  "error_msg" : "Failed to query lts struct log" 
                                        -}
                                        -
                                      -
                                      -
                                      • The server has received the request but encountered an internal error.
                                        {    
                                        -  "error_code": "LTS.0010",    
                                        -  "error_msg": "Internal Server Error"
                                        -}
                                        -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The request has succeeded.

                                      -

                                      201

                                      -

                                      The request has succeeded. The transfer task has been created.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0028.html b/docs/lts/api-ref/lts_api_0028.html deleted file mode 100644 index d0aaded43..000000000 --- a/docs/lts/api-ref/lts_api_0028.html +++ /dev/null @@ -1,921 +0,0 @@ - - -

                                      Querying Logs

                                      -

                                      Function

                                      This API is used to query logs in a specified log stream.

                                      -
                                      -

                                      URI

                                      POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - -
                                      Table 1 URI parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain the ID, see Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 32 characters

                                      -

                                      log_group_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -

                                      log_stream_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log stream ID.

                                      -

                                      Default value: None

                                      -

                                      Value length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Default value: None

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 3 Request body parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      start_time

                                      -

                                      Yes

                                      -

                                      String

                                      -
                                      UTC start time of the search window (in milliseconds).
                                      NOTE:

                                      Maximum query time range: 30 days

                                      -
                                      -
                                      -

                                      end_time

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      UTC end time of the search window (in milliseconds).

                                      -
                                      NOTE:

                                      Maximum query time range: 30 days

                                      -
                                      -

                                      labels

                                      -

                                      No

                                      -

                                      Map<String,String>

                                      -

                                      Filter criteria, which vary between log sources.

                                      -

                                      keywords

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Keyword used for search. A keyword is a word between two adjacent delimiters.

                                      -

                                      Enumerated value:

                                      -
                                      • error
                                      -

                                      line_num

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Sequence number of a log event. This parameter is not required for the first query, but is required for subsequent pagination queries. The value can be obtained from the response of the last query. The value of line_num should be between the values of start_time and end_time.

                                      -

                                      Value length: 19 characters

                                      -

                                      is_desc

                                      -

                                      No

                                      -

                                      Boolean

                                      -

                                      Whether the search order is descending or ascending. The default value is false, indicating that search results are displayed in ascending order.

                                      -

                                      Enumerated value:

                                      -
                                      • false
                                      -

                                      search_type

                                      -

                                      No

                                      -

                                      String

                                      -

                                      The value is init (default value) for the first query, or forwards or backwards for a pagination query. This parameter is used together with is_desc for pagination queries.

                                      -

                                      Enumerated value:

                                      -
                                      • forwards
                                      -

                                      limit

                                      -

                                      No

                                      -

                                      Integer

                                      -

                                      Number of logs to be queried each time. The value is 50 when this parameter is not set. You are advised to set this parameter to 100.

                                      -

                                      Minimum value: 1

                                      -

                                      Maximum value: 5000

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 4 Response body parameter

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      logs

                                      -

                                      Array of LogContents objects

                                      -

                                      Information of logs.

                                      -

                                      count

                                      -

                                      Integer

                                      -

                                      Number of logs.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - -
                                      Table 5 LogContents

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      content

                                      -

                                      String

                                      -

                                      Raw log data.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 10,000 characters

                                      -

                                      line_num

                                      -

                                      String

                                      -

                                      Sequence number of a log event.

                                      -

                                      Value length: 19 characters

                                      -

                                      labels

                                      -

                                      Map<String,String>

                                      -

                                      Labels contained in a log event. The labels vary depending on log events.

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 401

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 403

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 8 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 9 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Enumerated value:

                                      -
                                      • LTS.0403
                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      Log details:

                                      -
                                      2020-07-25/14:44:42 this log is Error NO 1
                                      -2020-07-25/14:44:43 this log is Error NO 2
                                      -2020-07-25/14:44:44 this log is Error NO 3
                                      -2020-07-25/14:44:45 this log is Error NO 4
                                      -2020-07-25/14:44:46 this log is Error NO 5
                                      -2020-07-25/14:44:47 this log is Error NO 6
                                      -2020-07-25/14:44:48 this log is Error NO 7
                                      -2020-07-25/14:44:49 this log is Error NO 8
                                      -2020-07-25/14:44:50 this log is Error NO 9
                                      -2020-07-25/14:44:51 this log is Error NO 10
                                      -

                                      -
                                      POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query 
                                      -
                                      • For the first query:
                                        v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query 
                                        -{ 
                                        -  "start_time": 1595659200000, 
                                        -  "end_time": 1595659500000,
                                        -  "labels":  
                                        -      { 
                                        -        "hostName": "ecs-kwxtest" 
                                        -      }, 
                                        -  "keywords": "log",
                                        -  "limit": 10,
                                        -  "is_count":true
                                        -}
                                        -
                                      -
                                      -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 6, NO 7, and NO 8 are the target log events):
                                        v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
                                        -{ 
                                        -  "start_time": 1595659200000, 
                                        -  "end_time": 1595659500000,
                                        -  "labels":  
                                        -      { 
                                        -        "hostName": "ecs-kwxtest" 
                                        -      }, 
                                        -  "keywords": "log",
                                        -  "line_num": "1595659490239433658",
                                        -  "is_desc": "false",
                                        -  "search_type": "forwards",
                                        -  "limit": "3",
                                        -  "is_count":true
                                        -}
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 8, NO 7, and NO 6 are the target log events):
                                        { 
                                        -  "start_time": 1595659200000, 
                                        -  "end_time": 1595659500000,
                                        -  "labels":  
                                        -      { 
                                        -        "hostName": "ecs-kwxtest" 
                                        -      }, 
                                        -  "keywords": "log",
                                        -  "line_num": "1595659490239433658",
                                        -  "is_desc": "true",
                                        -  "search_type": "backwards",
                                        -  "limit": "3",
                                        -  "is_count":true
                                        -}
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 2, NO 3, and NO 4 are the target log events):
                                        v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
                                        -{ 
                                        -  "start_time": 1595659200000, 
                                        -  "end_time": 1595659500000,
                                        -  "labels":  
                                        -      { 
                                        -        "hostName": "ecs-kwxtest" 
                                        -      }, 
                                        -  "keywords": "log",
                                        -  "line_num": "1595659490239433658",
                                        -  "is_desc": "false",
                                        -  "search_type": "backwards",
                                        -  "limit": "3",
                                        -  "is_count":true
                                        -}
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 4, NO 3, and NO 2 are the target log events):
                                        v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
                                        -{ 
                                        -  "start_time": 1595659200000, 
                                        -  "end_time": 1595659500000,
                                        -  "labels":  
                                        -      { 
                                        -        "hostName": "ecs-kwxtest" 
                                        -      }, 
                                        -  "keywords": "log",
                                        -  "line_num": "1595659490239433658",
                                        -  "is_desc": "true",
                                        -  "search_type": "forwards",
                                        -  "limit": "3",
                                        -  "is_count":true
                                        -}
                                        -
                                      -

                                      Example Response

                                      • For the first query:
                                        { 
                                        -  "count": 32,
                                        -  "logs": [
                                        -        {
                                        -            "content": "2020-07-25/14:44:42 this <HighLightTag>log</HighLightTag> is Error NO 1\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433654"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433655"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433656"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433657"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:46 this <HighLightTag>log</HighLightTag> is Error NO 5\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433658"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433659"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433660"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433661"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:50 this <HighLightTag>log</HighLightTag> is Error NO 9\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490839420574"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:51 this <HighLightTag>log</HighLightTag> is Error NO 10\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659491839412667"
                                        -        }
                                        -]
                                        -}
                                        -
                                      -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 6, NO 7, and NO 8 are the target log events):
                                        {
                                        -    "count": 32,
                                        -    "logs": [
                                        -        {
                                        -            "content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433659"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433660"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433661"
                                        -        }
                                        -    ]
                                        -}     
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 8, NO 7, and NO 6 are the target log events):
                                        {
                                        -    "count": 32,
                                        -    "logs": [
                                        -        {
                                        -            "content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433661"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433660"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433659"
                                        -        }
                                        -    ]
                                        -}
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 2, NO 3, and NO 4 are the target log events):
                                        {
                                        -    "count": 32,
                                        -    "logs": [
                                        -        {
                                        -            "content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433655"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433656"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433657"
                                        -        }
                                        -    ]
                                        -}
                                        -
                                      • For a pagination query (Assume that the search starts from the log event containing NO 5 and the log events containing NO 4, NO 3, and NO 2 are the target log events):
                                        {
                                        -    "count": 32,
                                        -    "logs": [
                                        -        {
                                        -            "content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433657"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433656"
                                        -        },
                                        -        {
                                        -            "content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
                                        -            "labels": {
                                        -                "hostName": "ecs-kwxtest",
                                        -                "hostIP": "192.168.0.156",
                                        -                "appName": "default_appname",
                                        -                "containerName": "CONFIG_FILE",
                                        -                "clusterName": "CONFIG_FILE",
                                        -                "hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
                                        -                "podName": "default_procname",
                                        -                "clusterId": "CONFIG_FILE",
                                        -                "nameSpace": "CONFIG_FILE",
                                        -                "category": "LTS"
                                        -            },
                                        -            "line_num": "1595659490239433655"
                                        -        }
                                        -    ]
                                        -}
                                        -
                                      -

                                      Status code: 400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0009", 
                                      -  "error_msg" : "Failed to validate the request body" 
                                      -}
                                      -

                                      Status code: 401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0003", 
                                      -  "error_msg" : "Invalid token" 
                                      -}
                                      -

                                      Status code: 403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0001", 
                                      -  "error_msg" : "Invalid projectId" 
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0202", 
                                      -  "error_msg" : "Failed to query lts log" 
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The request is successful.

                                      -

                                      400

                                      -

                                      The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      -

                                      401

                                      -

                                      Authentication failed. Check the token and try again.

                                      -

                                      403

                                      -

                                      The server understood the request but refused to authorize it. The client should not repeat the request without modifications.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -

                                      503

                                      -

                                      The requested service is unavailable.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0029.html b/docs/lts/api-ref/lts_api_0029.html index e7b728e31..84262a5a6 100644 --- a/docs/lts/api-ref/lts_api_0029.html +++ b/docs/lts/api-ref/lts_api_0029.html @@ -1,11 +1,430 @@ -

                                      Log Management

                                      -
                                      -
                                      - +

                                      Creating a Log Transfer Task (Old Version)

                                      +

                                      Function

                                      This API is used to transfer logs of one or more specified log streams to Object Storage Service (OBS).

                                      +
                                      +

                                      URI

                                      POST /v2/{project_id}/log-dump/obs

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 3 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_group_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      Minimum: 36

                                      +

                                      Maximum: 36

                                      +

                                      log_stream_ids

                                      +

                                      Yes

                                      +

                                      Array of strings

                                      +

                                      Indicates IDs of log streams whose logs are to be periodically transferred to OBS. You can specify one or more log streams.

                                      +

                                      obs_bucket_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Name of an OBS bucket.

                                      +

                                      Minimum: 3

                                      +

                                      Maximum: 63

                                      +

                                      type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to cycle, which indicates that the log transfer is periodic.

                                      +

                                      Minimum: 5

                                      +

                                      Maximum: 5

                                      +

                                      storage_format

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Whether the logs are stored in raw or JSON format. The default value is RAW.

                                      +

                                      Minimum length: 3 characters.

                                      +

                                      Maximum length: 4 characters.

                                      +

                                      switch_on

                                      +

                                      No

                                      +

                                      Boolean

                                      +

                                      Whether log transfer is enabled. The value is true (default) or false.

                                      +

                                      prefix_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      The file name prefix of the log files transferred to an OBS bucket.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 64

                                      +

                                      dir_prefix_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      A custom path to store the log files.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 64

                                      +

                                      period

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Length of the log transfer interval.

                                      +

                                      period_unit

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Unit of the log transfer interval.>The combination of period and period_unit must be one of ["2min","5min","30min","1hour","3hour","6hour","12hour"].

                                      +

                                      Minimum: 3

                                      +

                                      Maximum: 4

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 201

                                      + +
                                      + + + + + + + + + +
                                      Table 4 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_dump_obs_id

                                      +

                                      String

                                      +

                                      Transfer task ID.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 5 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 403

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 6 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 7 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Creating a log transfer task

                                      +
                                      POST https://{endpoint}/v2/{project_id}/log-dump/obs
                                      +
                                      +{
                                      +  "log_group_id" : "d9dba9f3-xxxx-48bd-xxxx-xxxxa24a8053",
                                      +  "log_stream_ids" : [ "45e7f609-xxxx-4cd3-835b-xxxx4a124718" ],
                                      +  "obs_bucket_name" : "lts-test",
                                      +  "type" : "cycle",
                                      +  "storage_format" : "RAW",
                                      +  "switch_on" : "true",
                                      +  "prefix_name" : "fileprefixname",
                                      +  "dir_prefix_name" : "dirprefixname",
                                      +  "period" : 5,
                                      +  "period_unit" : "min"
                                      +}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      • The log group does not exist.

                                        +
                                        {
                                        +  "error_code" : "LTS.0201",
                                        +  "error_msg" : "The log group does not existed"
                                        +}
                                        +
                                      • The log stream does not exist.

                                        +
                                        {
                                        +  "error_code" : "LTS.0208",
                                        +  "error_msg" : "Log stream id does not exist: 632b9bdc-5afd-4666-a5de-2579f8b80314-"
                                        +}
                                        +
                                      • The OBS bucket does not exist.

                                        +
                                        {
                                        +  "error_code" : "LTS.0416",
                                        +  "error_msg" : "obs bucket does not exist: zhuanchu"
                                        +}
                                        +
                                      • The log stream ID has been associated during log transfer.

                                        +
                                        {
                                        +  "error_code" : "LTS.0207",
                                        +  "error_msg" : "Log stream id is associated by transfer: 632b9bdc-5afd-4666-a5de-2579f8b80314"
                                        +}
                                        +
                                      • The transfer type is not in the list.

                                        +
                                        {
                                        +  "error_code" : "LTS.1901",
                                        +  "error_msg" : "type is not in the list [cycle]"
                                        +}
                                        +
                                      • The transfer format is not in the list.

                                        +
                                        {
                                        +  "error_code" : "LTS.1901",
                                        +  "error_msg" : "storage_format is not in the list [RAW, JSON]"
                                        +}
                                        +
                                      • The transfer interval is not in the list.

                                        +
                                        {
                                        +  "error_code" : "LTS.1901",
                                        +  "error_msg" : "period+period_unit is not in the list [2min, 5min, 30min, 1hour, 3hour, 6hour, 12hour]"
                                        +}
                                        +
                                      • The transfer unit is not in the list.

                                        +
                                        {
                                        +  "error_code" : "LTS.1901",
                                        +  "error_msg" : "period_unit is not in the list [min, hour]"
                                        +}
                                        +
                                      • The prefix of the transferred log file is invalid. Check the prefix.

                                        +
                                        {
                                        +  "error_code" : "LTS.1902",
                                        +  "error_msg" : "prefix_name is invalid, please verify if it's provided as required"
                                        +}
                                        +
                                      • The prefix of the custom transfer path is invalid. Check the prefix.

                                        +
                                        {
                                        +  "error_code" : "LTS.1902",
                                        +  "error_msg" : "dir_prefix_name is invalid, please verify if it's provided as required"
                                        +}
                                        +
                                      +

                                      Status code: 201

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "log_dump_obs_id" : "45fdc36b-xxxx-4567-xxxx-559xxxxdf968"
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +
                                      BadRequest. The request is invalid. Modify the request based on the description in **error_msg** before a retry.
                                      +{     
                                      +  "error_code": "LTS.0007",     
                                      +  "error_msg": "The request body format must be json" 
                                      +}
                                      +

                                      Status code: 403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +
                                      {
                                      +  "error_code" : "LTS.0001",
                                      +  "error_msg" : "Invalid projectId"
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      InternalServerError. The server has received the request but encountered an internal error.
                                      +{    
                                      +  "error_code": "LTS.0010",    
                                      +  "error_msg": "Internal Server Error"}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      201

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +

                                      403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +

                                      500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      +
                                      diff --git a/docs/lts/api-ref/lts_api_0030.html b/docs/lts/api-ref/lts_api_0030.html deleted file mode 100644 index 81c174937..000000000 --- a/docs/lts/api-ref/lts_api_0030.html +++ /dev/null @@ -1,474 +0,0 @@ - - -

                                      Deleting a Log Transfer Task

                                      -

                                      Function

                                      This API is used to delete an OBS transfer task.

                                      -
                                      -

                                      URI

                                      DELETE /v2/{project_id}/transfers

                                      - -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - -
                                      Table 2 Query parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_transfer_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log transfer ID. You can obtain the ID by calling the API for querying a log transfer task or for creating a log transfer task.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 3 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 4 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_group_name

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_streams

                                      -

                                      Array of log_streams objects

                                      -

                                      Log stream list.

                                      -

                                      log_transfer_id

                                      -

                                      String

                                      -

                                      Log transfer task ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_transfer_info

                                      -

                                      Table 6 object

                                      -

                                      Log transfer information.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 5 log_streams

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_stream_id

                                      -

                                      String

                                      -

                                      Log stream ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_stream_name

                                      -

                                      String

                                      -

                                      Log stream name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 6 log_transfer_info

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_agency_transfer

                                      -

                                      Table 7 object

                                      -

                                      Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

                                      -

                                      log_create_time

                                      -

                                      Integer

                                      -

                                      Time when the log transfer task was created.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 9999999999999

                                      -

                                      log_storage_format

                                      -

                                      String

                                      -

                                      Log transfer format. The value can be RAW or JSON. RAW indicates raw log format, whereas JSON indicates JSON format. JSON and RAW are supported for OBS and DIS transfer tasks, but only RAW is supported for DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • JSON
                                      • RAW
                                      -

                                      log_transfer_detail

                                      -

                                      Object

                                      -

                                      Log transfer details.

                                      -

                                      log_transfer_mode

                                      -

                                      String

                                      -

                                      Log transfer mode. cycle indicates periodical transfer, whereas realTime indicates real-time transfer. cycle is available to OBS transfer tasks and realTime is available to DIS and DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • cycle
                                      • realTime
                                      -

                                      log_transfer_status

                                      -

                                      String

                                      -

                                      Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

                                      -

                                      Enumerated values:

                                      -
                                      • ENABLE
                                      • DISABLE
                                      • EXCEPTION
                                      -

                                      log_transfer_type

                                      -

                                      String

                                      -

                                      Log transfer type. You can transfer logs to OBS, DIS, and DMS.

                                      -

                                      Enumerated values:

                                      -
                                      • OBS
                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 7 log_agency_transfer

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      agency_domain_id

                                      -

                                      String

                                      -

                                      Delegator account ID.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_domain_name

                                      -

                                      String

                                      -

                                      Delegator account name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_name

                                      -

                                      String

                                      -

                                      Name of the agency created by the delegator.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegator.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -

                                      be_agency_domain_id

                                      -

                                      String

                                      -

                                      Account ID of the delegated party (ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      be_agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegated party (project ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 8 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 9 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      Deleting a log transfer task based on the task ID

                                      -
                                      DELETE https://{endpoint}/v2/{project_id}/transfers 
                                      - 
                                      -/v2/{project_id}/transfers?log_transfer_id=cfc43c45-9edc-4a03-8578-0eb00cxxxxxx
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -

                                      The log transfer task is deleted.

                                      -
                                      {
                                      -    "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
                                      -    "log_group_name" : "lts-group-kafka",
                                      -    "log_streams" : [{
                                      -            "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
                                      -            "log_stream_name" : "lts-topic-kafka"
                                      -        }
                                      -    ],
                                      -    "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
                                      -    "log_transfer_info" : {
                                      -        "log_create_time" : 1634802241847,
                                      -        "log_storage_format" : "JSON",
                                      -        "log_agency_transfer" : {
                                      -            "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -            "agency_domain_name" : "paas_apm_z004xxxxx_xx",
                                      -            "agency_name" : "test20210325",
                                      -            "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
                                      -            "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -            "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
                                      -        },
                                      -        "log_transfer_detail" : { 
                                      -       //The following parameters are returned for an OBS transfer task:
                                      -        "obs_period":2,
                                      -        "obs_prefix_name":"",
                                      -        "obs_period_unit":"min",
                                      -        "obs_transfer_path":"/0002/LogTanks/xxx/",
                                      -        "obs_bucket_name":"0002",
                                      -        "obs_encrypted_enable":false,
                                      -        "obs_dir_pre_fix_name":"",
                                      -        "obs_time_zone": "UTC+01:00",
                                      -        "obs_time_zone_id": "Africa/Lagos",
                                      -       //The following parameters are returned for a DIS transfer task:
                                      -        "dis_id":"xxxxx",
                                      -        "dis_name":"xxxxxx"
                                      -       //The following parameters are returned for a DMS transfer task:
                                      -        "kafka_id":"xxxxxx",
                                      -        "kafka_topic":"xxxxx"
                                      -        },
                                      -        "log_transfer_mode":"cycle",
                                      -        "log_transfer_status":"ENABLE",
                                      -        "log_transfer_type":"OBS"
                                      -    }
                                      -}
                                      -

                                      Status code: 400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0207", 
                                      -  "error_msg" : "The log stream is associated by transfer" 
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0010", 
                                      -  "error_msg" : "The system encountered an internal error" 
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The log transfer task is deleted.

                                      -

                                      400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0031.html b/docs/lts/api-ref/lts_api_0031.html deleted file mode 100644 index 8ff7dd792..000000000 --- a/docs/lts/api-ref/lts_api_0031.html +++ /dev/null @@ -1,661 +0,0 @@ - - -

                                      Updating a Log Transfer Task

                                      -

                                      Function

                                      This API is used to update an OBS transfer task.

                                      -
                                      -

                                      URI

                                      PUT /v2/{project_id}/transfers

                                      - -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 2 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - -
                                      Table 3 Request body parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_transfer_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log transfer task ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_transfer_info

                                      -

                                      Yes

                                      -

                                      Table 4 object

                                      -

                                      Log transfer information.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - -
                                      Table 4 log_transfer_info

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_storage_format

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log transfer format. The value can be RAW or JSON. RAW indicates raw log format, whereas JSON indicates JSON format. JSON and RAW are supported for OBS and DIS transfer tasks, but only RAW is supported for DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • JSON
                                      • RAW
                                      -

                                      log_transfer_status

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

                                      -

                                      Enumerated values:

                                      -
                                      • ENABLE
                                      • DISABLE
                                      • EXCEPTION
                                      -

                                      log_transfer_detail

                                      -

                                      Yes

                                      -

                                      Table 5 object

                                      -

                                      Log transfer details.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 5 log_transfer_detail

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      obs_period

                                      -

                                      Yes

                                      -

                                      Integer

                                      -

                                      Length of the transfer interval for an OBS transfer task. This parameter is required to update an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

                                      -

                                      Enumerated values:

                                      -
                                      • 1
                                      • 2
                                      • 3
                                      • 5
                                      • 6
                                      • 12
                                      • 30
                                      -

                                      obs_period_unit

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Unit of the transfer interval for an OBS transfer task. This parameter is required to update an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

                                      -

                                      Enumerated values:

                                      -
                                      • min
                                      • hour
                                      -

                                      obs_bucket_name

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      OBS bucket name. This parameter is required to update an OBS transfer task.

                                      -

                                      Minimum length: 3 characters

                                      -

                                      Maximum length: 63 characters

                                      -

                                      obs_encrypted_id

                                      -

                                      No

                                      -

                                      String

                                      -

                                      KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      obs_dir_pre_fix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Custom transfer path of an OBS transfer task. This parameter is optional.

                                      -

                                      The value must match the regular expression:

                                      -

                                      ^(/)?([a-zA-Z0-9\._-]+)(/[a-zA-Z0-9\._-]+)*(/)?$

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      obs_prefix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Transfer file prefix of an OBS transfer task. This parameter is optional.

                                      -

                                      The value must match the regular expression:

                                      -

                                      ^[a-zA-Z0-9\._-]*$

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      obs_transfer_path

                                      -

                                      No

                                      -

                                      string

                                      -

                                      OBS bucket path, which is the log transfer destination.

                                      -

                                      obs_eps_id

                                      -

                                      No

                                      -

                                      string

                                      -

                                      Enterprise project ID of an OBS transfer task.

                                      -

                                      obs_encrypted_enable

                                      -

                                      No

                                      -

                                      boolean

                                      -

                                      Whether OBS bucket encryption is enabled.

                                      -

                                      tags

                                      -

                                      No

                                      -

                                      Array< String >

                                      -

                                      If tag delivery is enabled, this field must contain the following host information: hostIP, hostId, hostName, pathFile, and collectTime.

                                      -

                                      (Optional) Common fields include logStreamName, regionName, logGroupName, and projectId.

                                      -

                                      (Optional) Enable the transfer tag: streamTag.

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 6 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_group_name

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_streams

                                      -

                                      Array of Table 7 objects

                                      -

                                      Log stream list.

                                      -

                                      log_transfer_id

                                      -

                                      String

                                      -

                                      Log transfer task ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_transfer_info

                                      -

                                      Table 8 object

                                      -

                                      Log transfer information.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 7 log_streams

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_stream_id

                                      -

                                      String

                                      -

                                      Log stream ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_stream_name

                                      -

                                      String

                                      -

                                      Log stream name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 8 log_transfer_info

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_agency_transfer

                                      -

                                      Table 9 object

                                      -

                                      Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

                                      -

                                      log_create_time

                                      -

                                      Integer

                                      -

                                      Time when the log transfer task was created.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 9999999999999

                                      -

                                      log_storage_format

                                      -

                                      String

                                      -

                                      Log transfer format. The value can be RAW or JSON. RAW indicates raw log format, whereas JSON indicates JSON format. OBS transfer tasks support JSON.

                                      -

                                      Enumerated values:

                                      -
                                      • JSON
                                      • RAW
                                      -

                                      log_transfer_detail

                                      -

                                      Object

                                      -

                                      Log transfer details.

                                      -

                                      log_transfer_mode

                                      -

                                      String

                                      -

                                      Log transfer mode. cycle indicates periodical transfer, whereas realTime indicates real-time transfer. cycle is available to OBS transfer tasks and realTime is available to DIS and DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • cycle
                                      • realTime
                                      -

                                      log_transfer_status

                                      -

                                      String

                                      -

                                      Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

                                      -

                                      Enumerated values:

                                      -
                                      • ENABLE
                                      • DISABLE
                                      • EXCEPTION
                                      -

                                      log_transfer_type

                                      -

                                      String

                                      -

                                      Log transfer type. You can transfer logs to OBS.

                                      -

                                      Enumerated values:

                                      -
                                      • OBS
                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 9 log_agency_transfer

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      agency_domain_id

                                      -

                                      String

                                      -

                                      Delegator account ID.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_domain_name

                                      -

                                      String

                                      -

                                      Delegator account name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_name

                                      -

                                      String

                                      -

                                      Name of the agency created by the delegator.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegator.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -

                                      be_agency_domain_id

                                      -

                                      String

                                      -

                                      Account ID of the delegated party (ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      be_agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegated party (project ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 10 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 11 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      • Updating an OBS transfer task
                                        PUT https://{endpoint}/v2/{project_id}/transfers
                                        PUT https://{endpoint}/v2/{project_id}/transfers 
                                        -  
                                        - /v2/{project_id}/transfers 
                                        - {
                                        -    "log_transfer_id" : "9f74e101-b969-483c-a610-d3f3064xxxxx",
                                        -    "log_transfer_info" : {
                                        -        "log_storage_format" : "JSON",
                                        -        "log_transfer_status" : "DISABLE",
                                        -        "log_transfer_detail" : {
                                        -            "obs_period" : 3,
                                        -            "obs_period_unit" : "hour",
                                        -            "obs_bucket_name" : "0xxx",
                                        -            "obs_encrypted_id" : "1bd90032-1424-481f-8558-ba49854xxxxx",
                                        -            "obs_dir_pre_fix_name" : "xx",
                                        -            "obs_prefix_name" : "xxxxx"
                                        -        }
                                        -    }
                                        -}
                                        -
                                        -
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -

                                      The transfer task is updated.

                                      -
                                      The following parameters are returned for an OBS transfer task:
                                      {
                                      -    "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
                                      -    "log_group_name" : "lts-group-kafka",
                                      -    "log_streams" : [{
                                      -            "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
                                      -            "log_stream_name" : "lts-topic-kafka"
                                      -        }
                                      -    ],
                                      -    "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
                                      -    "log_transfer_info" : {
                                      -        "log_create_time" : 1634802241847,
                                      -        "log_storage_format" : "JSON",
                                      -        "log_agency_transfer" : {
                                      -            "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -            "agency_domain_name" : "paas_apm_z004xxxxx_xx",
                                      -            "agency_name" : "test20210325",
                                      -            "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
                                      -            "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -            "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
                                      -        },
                                      -        "log_transfer_detail" : { 
                                      -            "obs_period":2,
                                      -            "obs_prefix_name":"",
                                      -            "obs_period_unit":"min",
                                      -            "obs_transfer_path":"/0002/LogTanks/cn-north-7/",
                                      -            "obs_bucket_name":"0002",
                                      -            "obs_encrypted_enable":false,
                                      -            "obs_dir_pre_fix_name":"",
                                      -            "obs_time_zone": "UTC+01:00",
                                      -            "obs_time_zone_id": "Africa/Lagos",
                                      -            "tags": []
                                      -        },
                                      -        "log_transfer_mode":"cycle",
                                      -        "log_transfer_status":"ENABLE",
                                      -        "log_transfer_type":"OBS"
                                      -    }
                                      -}
                                      -
                                      -

                                      Status code: 400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0207", 
                                      -  "error_msg" : "The log stream is associated by transfer" 
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0010", 
                                      -  "error_msg" : "The system encountered an internal error" 
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The transfer task is updated.

                                      -

                                      400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0032.html b/docs/lts/api-ref/lts_api_0032.html deleted file mode 100644 index 77ce086ab..000000000 --- a/docs/lts/api-ref/lts_api_0032.html +++ /dev/null @@ -1,650 +0,0 @@ - - -

                                      Querying a Log Transfer Task

                                      -

                                      Function

                                      This API is used to query an OBS transfer task.

                                      -
                                      -

                                      URI

                                      GET /v2/{project_id}/transfers

                                      - -
                                      - - - - - - - - - - - -
                                      Table 1 URI parameter

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      project_id

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Account ID, Project ID, Log Group ID, and Log Stream ID.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 2 Query parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_transfer_type

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Log transfer type. You can transfer logs to OBS, DIS, and DMS.

                                      -

                                      Enumerated values:

                                      -
                                      • OBS
                                      • DIS
                                      • DMS
                                      -

                                      log_group_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_stream_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Log stream name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      offset

                                      -

                                      No

                                      -

                                      Integer

                                      -

                                      Query cursor. Set the value to 0 in the first query. In subsequent queries, obtain the value from the response to the last request.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 1024

                                      -

                                      limit

                                      -

                                      No

                                      -

                                      Integer

                                      -

                                      Number of records on each page.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 100

                                      -
                                      -
                                      -
                                      -

                                      Request Parameters

                                      -
                                      - - - - - - - - - - - - - - - - -
                                      Table 3 Request header parameters

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      X-Auth-Token

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      User token obtained from IAM.

                                      -

                                      Minimum length: 1000 characters

                                      -

                                      Maximum length: 2000 characters

                                      -

                                      Content-Type

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Set this parameter to application/json;charset=UTF-8.

                                      -

                                      Minimum length: 30 characters

                                      -

                                      Maximum length: 30 characters

                                      -
                                      -
                                      -
                                      -

                                      Response Parameters

                                      Status code: 200

                                      - -
                                      - - - - - - - - - -
                                      Table 4 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_transfers

                                      -

                                      Array of Table 5 objects

                                      -

                                      Log transfer task information.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 5 CreateTransferResponseBody

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_group_id

                                      -

                                      String

                                      -

                                      Log group ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_group_name

                                      -

                                      String

                                      -

                                      Log group name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      log_streams

                                      -

                                      Array of Table 6 objects

                                      -

                                      Log stream list.

                                      -

                                      log_transfer_id

                                      -

                                      String

                                      -

                                      Log transfer task ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_transfer_info

                                      -

                                      Table 7 object

                                      -

                                      Log transfer information.

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 6 log_streams

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_stream_id

                                      -

                                      String

                                      -

                                      Log stream ID.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      log_stream_name

                                      -

                                      String

                                      -

                                      Log stream name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 7 log_transfer_info

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      log_agency_transfer

                                      -

                                      Table 8 object

                                      -

                                      Information about delegated log transfer. This parameter is returned for a delegated log transfer task.

                                      -

                                      log_create_time

                                      -

                                      Integer

                                      -

                                      Time when the log transfer task was created.

                                      -

                                      Minimum value: 0

                                      -

                                      Maximum value: 9999999999999

                                      -

                                      log_storage_format

                                      -

                                      String

                                      -

                                      Log transfer format. The value can be RAW or JSON. RAW indicates raw log format, whereas JSON indicates JSON format. JSON and RAW are supported for OBS and DIS transfer tasks, but only RAW is supported for DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • JSON
                                      • RAW
                                      -

                                      log_transfer_detail

                                      -

                                      Object

                                      -

                                      Log transfer details.

                                      -

                                      log_transfer_mode

                                      -

                                      String

                                      -

                                      Log transfer mode. cycle indicates periodical transfer, whereas realTime indicates real-time transfer. cycle is available to OBS transfer tasks and realTime is available to DIS and DMS transfer tasks.

                                      -

                                      Enumerated values:

                                      -
                                      • cycle
                                      • realTime
                                      -

                                      log_transfer_status

                                      -

                                      String

                                      -

                                      Log transfer status. ENABLE indicates that log transfer is enabled, DISABLE indicates that log transfer is disabled, and EXCEPTION indicates that log transfer is abnormal.

                                      -

                                      Enumerated values:

                                      -
                                      • ENABLE
                                      • DISABLE
                                      • EXCEPTION
                                      -

                                      log_transfer_type

                                      -

                                      String

                                      -

                                      Log transfer type. You can transfer logs to OBS, DIS, and DMS.

                                      -

                                      Enumerated values:

                                      -
                                      • OBS
                                      • DIS
                                      • DMS
                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 8 log_agency_transfer

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      agency_domain_id

                                      -

                                      String

                                      -

                                      Delegator account ID.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_domain_name

                                      -

                                      String

                                      -

                                      Delegator account name.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_name

                                      -

                                      String

                                      -

                                      Name of the agency created by the delegator.

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegator.

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -

                                      be_agency_domain_id

                                      -

                                      String

                                      -

                                      Account ID of the delegated party (ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 128 characters

                                      -

                                      be_agency_project_id

                                      -

                                      String

                                      -

                                      Project ID of the delegated party (project ID of the account that created the log transfer task).

                                      -

                                      Minimum length: 32 characters

                                      -

                                      Maximum length: 32 characters

                                      -
                                      -
                                      -

                                      Status code: 400

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 9 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -

                                      Enumerated value:

                                      -
                                      • Invalid projectId
                                      -
                                      -
                                      - -
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Table 10 log_transfer_detail

                                      Parameter

                                      -

                                      Mandatory

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      obs_period

                                      -

                                      Yes

                                      -

                                      Integer

                                      -

                                      Length of the transfer interval for an OBS transfer task. This parameter is required to update an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

                                      -

                                      Enumerated values:

                                      -
                                      • 1
                                      • 2
                                      • 3
                                      • 5
                                      • 6
                                      • 12
                                      • 30
                                      -

                                      obs_period_unit

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      Unit of the transfer interval for an OBS transfer task. This parameter is required to update an OBS transfer task. The log transfer interval is specified by the combination of the values of obs_period and obs_period_unit, and must be set to one of the following: 2 min, 5 min, 30 min, 1 hour, 3 hours, 6 hours, and 12 hours.

                                      -

                                      Enumerated values:

                                      -
                                      • min
                                      • hour
                                      -

                                      obs_bucket_name

                                      -

                                      Yes

                                      -

                                      String

                                      -

                                      OBS bucket name. This parameter is required to update an OBS transfer task.

                                      -

                                      Minimum length: 3 characters

                                      -

                                      Maximum length: 63 characters

                                      -

                                      obs_encrypted_id

                                      -

                                      No

                                      -

                                      String

                                      -

                                      KMS key ID for an OBS transfer task. This parameter is required if encryption is enabled for the target OBS bucket.

                                      -

                                      Minimum length: 36 characters

                                      -

                                      Maximum length: 36 characters

                                      -

                                      obs_dir_pre_fix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Custom transfer path of an OBS transfer task. This parameter is optional.

                                      -

                                      The value must match the regular expression:

                                      -

                                      ^(/)?([a-zA-Z0-9\._-]+)(/[a-zA-Z0-9\._-]+)*(/)?$

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      obs_prefix_name

                                      -

                                      No

                                      -

                                      String

                                      -

                                      Transfer file prefix of an OBS transfer task. This parameter is optional.

                                      -

                                      The value must match the regular expression:

                                      -

                                      ^[a-zA-Z0-9\._-]*$

                                      -

                                      Minimum length: 1 character

                                      -

                                      Maximum length: 64 characters

                                      -

                                      obs_transfer_path

                                      -

                                      No

                                      -

                                      string

                                      -

                                      OBS bucket path, which is the log transfer destination.

                                      -

                                      obs_eps_id

                                      -

                                      No

                                      -

                                      string

                                      -

                                      Enterprise project ID of an OBS transfer task.

                                      -

                                      obs_encrypted_enable

                                      -

                                      No

                                      -

                                      boolean

                                      -

                                      Whether OBS bucket encryption is enabled.

                                      -
                                      -
                                      -

                                      Status code: 500

                                      - -
                                      - - - - - - - - - - - - - -
                                      Table 11 Response body parameters

                                      Parameter

                                      -

                                      Type

                                      -

                                      Description

                                      -

                                      error_code

                                      -

                                      String

                                      -

                                      Error code.

                                      -

                                      Minimum length: 8 characters

                                      -

                                      Maximum length: 8 characters

                                      -

                                      error_msg

                                      -

                                      String

                                      -

                                      Error message.

                                      -
                                      -
                                      -
                                      -

                                      Example Request

                                      If no parameter is specified, all log transfer tasks are returned. If log_transfer_type, log_group_name, and log_stream_name are specified, the corresponding log transfer task is returned.

                                      -
                                      GET https://{endpoint}/v2/{project_id}/transfers 
                                      - 
                                      -/v2/{project_id}/transfers 
                                      -/v2/{project_id}/transfers?log_group_name=lts-group-txxx 
                                      -/v2/{project_id}/transfers?log_transfer_type=OBS 
                                      -/v2/{project_id}/transfers?log_stream_name=lts-topic-testRexxx 
                                      -/v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS 
                                      -/v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_stream_name=lts-topic-testRxxx 
                                      -/v2/{project_id}/transfers?log_transfer_type=OBS&log_stream_name=lts-topic-testRxxx 
                                      -/v2/{project_id}/transfers?log_group_name=lts-group-txxx&log_transfer_type=OBS&log_stream_name=lts-topic-testRexxx
                                      -
                                      -

                                      Example Response

                                      Status code: 200

                                      -

                                      The query is successful.

                                      -

                                      The following parameters are returned for an OBS transfer task:

                                      -
                                      {
                                      -    "log_transfers" : [{
                                      -            "log_group_id" : "9a7e2183-2d6d-4732-9a9b-e897fd4e49e0",
                                      -            "log_group_name" : "lts-group-kafka",
                                      -            "log_streams" : [{
                                      -                    "log_stream_id" : "839dac89-35af-4db2-ab4a-a7dda0d0d3f8",
                                      -                    "log_stream_name" : "lts-topic-kafka"
                                      -                }
                                      -            ],
                                      -            "log_transfer_id" : "ddced522-233a-4181-a5fc-7b458c819afc",
                                      -            "log_transfer_info" : {
                                      -                "log_create_time" : 1634802241847,
                                      -                "log_storage_format" : "JSON",
                                      -                "log_agency_transfer" : {
                                      -                    "agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -                    "agency_domain_name" : "paas_apm_z004xxxxx_xx",
                                      -                    "agency_name" : "test20210325",
                                      -                    "agency_project_id" : "2a473356cca5487f8373be891bfxxxxx",
                                      -                    "be_agency_domain_id" : "1d26cc8c86a840e28a4f8d0d078xxxxx",
                                      -                    "be_agency_project_id" : "2a473356cca5487f8373be891bfxxxxx"
                                      -                },
                                      -                "log_transfer_detail" : { 
                                      -                "obs_period":2,
                                      -                "obs_prefix_name":"",
                                      -                "obs_period_unit":"min",
                                      -                "obs_transfer_path":"/0002/LogTanks/xxx/",
                                      -                "obs_bucket_name":"0002",
                                      -                "obs_encrypted_enable":false,
                                      -                "obs_dir_pre_fix_name":""
                                      -                },
                                      -                "log_transfer_mode":"cycle",
                                      -                "log_transfer_status":"ENABLE",
                                      -                "log_transfer_type":"OBS"
                                      -            }
                                      -        }
                                      -    ]
                                      -}
                                      -

                                      Status code: 400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0205", 
                                      -  "error_msg" : "The log stream name has been existed" 
                                      -}
                                      -

                                      Status code: 500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      { 
                                      -  "error_code" : "LTS.0010", 
                                      -  "error_msg" : "The system encountered an internal error" 
                                      -}
                                      -
                                      -

                                      Status Codes

                                      -
                                      - - - - - - - - - - - - - -

                                      Status Code

                                      -

                                      Description

                                      -

                                      200

                                      -

                                      The query is successful.

                                      -

                                      400

                                      -

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      -

                                      500

                                      -

                                      The server has received the request but encountered an internal error.

                                      -
                                      -
                                      -
                                      -

                                      Error Codes

                                      For details, see Error Codes.

                                      -
                                      -
                                      -
                                      - -
                                      - diff --git a/docs/lts/api-ref/lts_api_0041.html b/docs/lts/api-ref/lts_api_0041.html new file mode 100644 index 000000000..48cad67b2 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0041.html @@ -0,0 +1,566 @@ + + +

                                      Querying a Structuring Rule

                                      +

                                      Function

                                      This API is used to query the structuring rule of a specified log stream.

                                      +
                                      +

                                      URI

                                      GET /v2/{project_id}/lts/struct/template

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Query Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      logGroupId

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 36

                                      +

                                      Maximum: 36

                                      +

                                      logStreamId

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 36

                                      +

                                      Maximum: 36

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 3 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 4 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      demoFields

                                      +

                                      Array of StructFieldInfoReturn objects

                                      +

                                      Structured field.

                                      +

                                      tagFields

                                      +

                                      Array of tag_fields_info objects

                                      +

                                      Keyword details.

                                      +

                                      demoLog

                                      +

                                      String

                                      +

                                      Sample log event.

                                      +

                                      demoLabel

                                      +

                                      String

                                      +

                                      Attributes of the sample log event.

                                      +

                                      id

                                      +

                                      String

                                      +

                                      Structuring rule ID.

                                      +

                                      logGroupId

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      rule

                                      +

                                      ShowStructTemplateRule object

                                      +

                                      Structuring method.

                                      +

                                      cluster_info

                                      +

                                      ShowStructTemplateclusterInfo object

                                      +

                                      Kafka information.

                                      +

                                      logStreamId

                                      +

                                      String

                                      +

                                      Log stream ID.

                                      +

                                      projectId

                                      +

                                      String

                                      +

                                      Project ID.

                                      +

                                      templateName

                                      +

                                      String

                                      +

                                      Template name.

                                      +

                                      regex

                                      +

                                      String

                                      +

                                      Regular expression.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 StructFieldInfoReturn

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      fieldName

                                      +

                                      String

                                      +

                                      Field name.

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Field data type.

                                      +

                                      content

                                      +

                                      String

                                      +

                                      Field content.

                                      +

                                      isAnalysis

                                      +

                                      Boolean

                                      +

                                      Whether parsing is enabled.

                                      +

                                      index

                                      +

                                      Integer

                                      +

                                      Field sequence number.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 6 tag_fields_info

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      fieldName

                                      +

                                      String

                                      +

                                      Field name.

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Field type.

                                      +

                                      content

                                      +

                                      String

                                      +

                                      Content.

                                      +

                                      isAnalysis

                                      +

                                      Boolean

                                      +

                                      Whether parsing is enabled.

                                      +

                                      index

                                      +

                                      Integer

                                      +

                                      Field sequence number.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 7 ShowStructTemplateRule

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      param

                                      +

                                      String

                                      +

                                      Structuring parameter.

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Structuring type.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + +
                                      Table 8 ShowStructTemplateclusterInfo

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      cluster_name

                                      +

                                      String

                                      +

                                      Kafka cluster name.

                                      +

                                      kafka_bootstrap_servers

                                      +

                                      String

                                      +

                                      Kafka cluster server address.

                                      +

                                      kafka_ssl_enable

                                      +

                                      Boolean

                                      +

                                      Whether SSL encrypted authentication is enabled for Kafka.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 9 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 401

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 10 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 403

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 11 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 12 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      GET https://{endpoint}/v2/{project_id}/lts/struct/template?logGroupId=123456&logStreamId=654321
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      Details of the structuring rule are returned.

                                      +
                                      {
                                      +  "demoFields" : [ {
                                      +    "content" : "100.19.10.178",
                                      +    "fieldName" : "authority",
                                      +    "index" : 0,
                                      +    "isAnalysis" : true,
                                      +    "type" : "string"
                                      +  }, {
                                      +    "content" : "0",
                                      +    "fieldName" : "bytes_received",
                                      +    "index" : 0,
                                      +    "isAnalysis" : true,
                                      +    "type" : "string"
                                      +  }, {
                                      +    "content" : "1127",
                                      +    "fieldName" : "bytes_sent",
                                      +    "index" : 0,
                                      +    "isAnalysis" : true,
                                      +    "type" : "string"
                                      +  } ]
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +
                                      {
                                      +  "errorCode" : "SVCSTG.ALS.200201",
                                      +  "errorMessage" : "Query Param is error."
                                      +}
                                      +

                                      Status code: 401

                                      +

                                      AuthFailed. Authentication failed. Check the token and try again.

                                      +
                                      {
                                      +  "error_code" : "LTS.0414",
                                      +  "error_msg" : "Invalid token"
                                      +}
                                      +

                                      Status code: 403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +
                                      {
                                      +  "error_code" : "LTS.0001",
                                      +  "error_msg" : "Invalid projectId"
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.0102",
                                      +  "error_msg" : "Query empty."
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      Details of the structuring rule are returned.

                                      +

                                      400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +

                                      401

                                      +

                                      AuthFailed. Authentication failed. Check the token and try again.

                                      +

                                      403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +

                                      500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +

                                      503

                                      +

                                      ServiceUnavailable. The requested service is unavailable.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0044.html b/docs/lts/api-ref/lts_api_0044.html new file mode 100644 index 000000000..903468e14 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0044.html @@ -0,0 +1,320 @@ + + +

                                      Deleting a Structuring Rule

                                      +

                                      Function

                                      This API is used to delete a structuring rule of a log stream.

                                      +
                                      +

                                      URI

                                      DELETE /v2/{project_id}/lts/struct/template

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + +
                                      Table 3 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Structuring rule ID.

                                      +

                                      Minimum: 106

                                      +

                                      Maximum: 106

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 4 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      SVCSTG.ALS.200200

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      delete struct config successfully

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 5 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 401

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 6 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 403

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 7 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 8 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Deleting the structuring rule of the current ID

                                      +
                                      DELETE https://{endpoint}/v2/{project_id}/lts/struct/template
                                      +
                                      +/v2/{project_id}/lts/struct/template
                                      +{
                                      +  "id": "2a473356cca5487f8373be891bffc1cf_8a75b77d-7d72-4d7e-8c50-a24562cf8b0b_fd5e1a7c-7412-475d-a013-8891d539574e"
                                      +}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The structuring rule is deleted.

                                      +
                                      {
                                      +  "id" : "xxxxxx"
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +
                                      {
                                      +  "errorCode" : "LTS.0612",
                                      +  "errorMessage" : "timee fieldType is error"
                                      +}
                                      +

                                      Status code: 401

                                      +

                                      AuthFailed. Authentication failed. Check the token and try again.

                                      +
                                      {
                                      +  "error_code" : "LTS.0414",
                                      +  "error_msg" : "Invalid token"
                                      +}
                                      +

                                      Status code: 403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +
                                      {
                                      +  "error_code" : "LTS.0001",
                                      +  "error_msg" : "Invalid projectId"
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.0010",
                                      +  "error_msg" : "Internal Server Error"
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The structuring rule is deleted.

                                      +

                                      400

                                      +

                                      BadRequest. The request is invalid. Modify the request based on the description in error_msg before a retry.

                                      +

                                      401

                                      +

                                      AuthFailed. Authentication failed. Check the token and try again.

                                      +

                                      403

                                      +

                                      Forbidden.The request has been rejected.The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.

                                      +

                                      500

                                      +

                                      InternalServerError.

                                      +

                                      The server has received the request but encountered an internal error.

                                      +

                                      503

                                      +

                                      ServiceUnavailable. The requested service is unavailable.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0061.html b/docs/lts/api-ref/lts_api_0061.html new file mode 100644 index 000000000..a81817719 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0061.html @@ -0,0 +1,308 @@ + + +

                                      Querying an SMN Topic

                                      +

                                      Function

                                      This API is used to query an SMN topic.

                                      +
                                      +

                                      URI

                                      GET /v2/{project_id}/lts/notifications/topics

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 2 Query Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      offset

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Query cursor. Set the value to 0 in the first query. In subsequent queries, obtain the value from the response to the last request.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 1024

                                      +

                                      limit

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Number of records on each page. The maximum value is 100.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 100

                                      +

                                      fuzzy_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Specifies the name of the topic to be searched for, which is fuzzy match. startwith is used for the fuzzy match.

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 3 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + + + + + + + + + +
                                      Table 4 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      request_id

                                      +

                                      String

                                      +

                                      Unique ID of a request.

                                      +

                                      topic_count

                                      +

                                      Integer

                                      +

                                      Number of topics.

                                      +

                                      topics

                                      +

                                      Array of Topics objects

                                      +

                                      Topic information.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 Topics

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      name

                                      +

                                      String

                                      +

                                      Topic name.

                                      +

                                      topic_urn

                                      +

                                      String

                                      +

                                      Specifies the resource identifier of the topic, which is unique.

                                      +

                                      display_name

                                      +

                                      String

                                      +

                                      Specifies the topic display name, which is presented as the name of the email sender in email messages.

                                      +

                                      push_policy

                                      +

                                      Integer

                                      +

                                      Specifies the message push policy.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 6 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 7 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Querying an SMN topic

                                      +
                                      GET https://{endpoint}/v2/{project_id}/lts/notifications/topics
                                      +
                                      +/v2/{project_id}/lts/notifications/topics?offset={offset}&limit={limit} 
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "request_id" : "1",
                                      +  "topic_count" : 100,
                                      +  "topics" : [ {
                                      +    "name" : "test",
                                      +    "topic_urn" : "urn:smn:xxxx-7:{projectId}:fyy",
                                      +    "display_name" : "username",
                                      +    "push_policy" : 0
                                      +  } ]
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      Insufficient permissions.

                                      +
                                      {
                                      +  "error_code" : "LTS.2009",
                                      +  "error_msg" : "User must have SMN service authority."
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      The request is successful but the service is abnormal.

                                      +
                                      {
                                      +  "error_code" : "LTS.0010",
                                      +  "error_msg" : "Internal Server Error"
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      Insufficient permissions.

                                      +

                                      500

                                      +

                                      The request is successful but the service is abnormal.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0081.html b/docs/lts/api-ref/lts_api_0081.html new file mode 100644 index 000000000..e62f95817 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0081.html @@ -0,0 +1,674 @@ + + +

                                      Creating a Keyword Alarm Rule

                                      +

                                      Function

                                      This API is used to create a keyword alarm. Currently, each account can create a maximum of 200 keyword alarms and SQL alarms.

                                      +
                                      +

                                      URI

                                      POST /v2/{project_id}/lts/alarms/keywords-alarm-rule

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 3 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      keywords_alarm_rule_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Keyword alarm rule names.

                                      +
                                      NOTE:

                                      Cannot start with a period (.) or underscore (_) or end with a period (.).

                                      +
                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 64

                                      +

                                      keywords_alarm_rule_description

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Keyword alarm description.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 64

                                      +

                                      keywords_requests

                                      +

                                      Yes

                                      +

                                      Array of KeywordsRequest objects

                                      +

                                      Keyword details.

                                      +

                                      frequency

                                      +

                                      Yes

                                      +

                                      Frequency object

                                      +

                                      Alarm statistical period.

                                      +

                                      keywords_alarm_level

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      keywords_alarm_send

                                      +

                                      Yes

                                      +

                                      Boolean

                                      +

                                      Whether to send an alarm.

                                      +

                                      domain_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +

                                      trigger_condition_count

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of times that log events meet the trigger condition. The default value is 1.

                                      +

                                      trigger_condition_frequency

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is met. The default value is 1.

                                      +

                                      whether_recovery_policy

                                      +

                                      No

                                      +

                                      Boolean

                                      +

                                      Whether to enable the alarm clearance notification. The default value is false.

                                      +

                                      recovery_policy

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is not met. The alarm is cleared when this number reaches the value (3 by default) of this parameter.

                                      +

                                      notification_frequency

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Notification frequency, in minutes.

                                      +

                                      alarm_action_rule_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Alarm action rule name.

                                      +
                                      NOTE:

                                      Set alarm_action_rule_name or notification_save_rule. If you set both of them, the value of alarm_action_rule_name is prioritized.

                                      +
                                      +

                                      notification_save_rule

                                      +

                                      No

                                      +

                                      SqlNotificationSaveRule object

                                      +

                                      Notification topic, which will be unavailable soon. You are advised to use the alarm action rule function.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 4 KeywordsRequest

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_stream_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log stream ID.

                                      +

                                      log_stream_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Log stream name.

                                      +

                                      log_group_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      log_group_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Log group name.

                                      +

                                      keywords

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Keyword.

                                      +

                                      condition

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Condition.

                                      +

                                      number

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Keyword threshold, which forms a condition with keyword and condition. An alarm is triggered when the condition is met.

                                      +

                                      search_time_range

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Time range for querying the latest data when a task is executed.

                                      +

                                      search_time_range_unit

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Query time unit.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 Frequency

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Time type.

                                      +

                                      cron_expr

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Cron expression, which uses the 24-hour format and is precise down to the minute.

                                      +

                                      • 0/10 * * * *: The query starts from 00:00 and is performed every 10 minutes at 00:00, 00:10, 00:20, 00:30, 00:40, 00:50, 01:00, and so on. For example, if the current time is 16:37, the next query is at 16:50.

                                      +

                                      • 0 0/5 * * *: The query starts from 00:00 and is performed every 5 hours at 00:00, 05:00, 10:00, 15:00, 20:00, and so on. For example, if the current time is 16:37, the next query is at 20:00.

                                      +

                                      • 0 14 * * *: The query is performed at 14:00 every day.

                                      +

                                      • 0 0 10 * *: The query is performed at 00:00 on the 10th day of every month.

                                      +

                                      hour_of_day

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to DAILY or WEEKLY.

                                      +

                                      DAILY ranges from 0 to 23.

                                      +

                                      WEEKLY ranges from 0 to 23.

                                      +

                                      day_of_week

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to WEEKLY (from Sunday to Saturday).

                                      +

                                      fixed_rate

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Value of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate_unit to indicate a fixed period.

                                      +

                                      fixed_rate_unit

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Unit of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate to indicate a fixed period.

                                      +

                                      The value can be hour or minute.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 6 SqlNotificationSaveRule

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      language

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Language of the preference.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 10

                                      +

                                      timezone

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Time zone information used in a notification. Example: +08:00

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 1024

                                      +

                                      user_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Username used in a notification. It is generally displayed in the first line of the greeting.

                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 1024

                                      +

                                      topics

                                      +

                                      Yes

                                      +

                                      Array of Topics objects

                                      +

                                      Topic information, which will be unavailable soon. You are advised to use the action rule function.

                                      +

                                      template_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Message template name.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 7 Topics

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Topic name.

                                      +

                                      topic_urn

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Specifies the resource identifier of the topic, which is unique.

                                      +

                                      display_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Specifies the topic display name, which is presented as the name of the email sender in email messages.

                                      +

                                      push_policy

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Specifies the message push policy.

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + +
                                      Table 8 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      keywords_alarm_rule_id

                                      +

                                      String

                                      +

                                      Alarm rule ID.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 9 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 10 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Creating a keyword alarm rule

                                      +
                                      POST https://{endpoint}/v2/{project_id}/lts/alarms/keywords-alarm-rule 
                                      +
                                      +{
                                      +  "keywords_alarm_rule_name" : "test",
                                      +  "keywords_alarm_rule_description" : "test",
                                      +  "keywords_requests" : [ {
                                      +    "log_stream_id" : "1",
                                      +    "log_group_id" : "1",
                                      +    "keywords" : "test",
                                      +    "condition" : ">",
                                      +    "number" : "100",
                                      +    "search_time_range" : 10,
                                      +    "search_time_range_unit" : "minute"
                                      +  } ],
                                      +  "frequency" : {
                                      +    "type" : "FIXED_RATE",
                                      +    "cron_expr" : "",
                                      +    "hour_of_day" : 0,
                                      +    "day_of_week" : 0,
                                      +    "fixed_rate" : 10,
                                      +    "fixed_rate_unit" : "minute"
                                      +  },
                                      +  "keywords_alarm_level" : "Critical",
                                      +  "keywords_alarm_send" : true,
                                      +  "domain_id" : "",
                                      +  "notification_frequency" : 5,
                                      +  "alarm_action_rule_name" : "",
                                      +  "notification_save_rule" : {
                                      +    "language" : "en-us",
                                      +    "timezone" : "xx/xx",
                                      +    "user_name" : "test",
                                      +    "template_name" : "Message template name.",
                                      +    "topics" : [ {
                                      +      "name" : "test",
                                      +      "topic_urn" : "urn:smn:xxxx-7:1b06fc5dc0814a4da1594a9ade9cb93c:test",
                                      +      "display_name" : "",
                                      +      "push_policy" : 0
                                      +    } ]
                                      +  }
                                      +}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "keywords_alarm_rule_id" : "cf46fce8-f8b5-4aff-85c0-35d0c828ea0c"
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      +
                                      {
                                      +  "error_code" : "LTS.2005",
                                      +  "error_msg" : "Alarm rule params validator error."
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.2001",
                                      +  "error_msg" : "Failed to create alarm rule."
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      +

                                      500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0082.html b/docs/lts/api-ref/lts_api_0082.html new file mode 100644 index 000000000..58289f4a0 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0082.html @@ -0,0 +1,1032 @@ + + +

                                      Modifying a Keyword Alarm Rule

                                      +

                                      Function

                                      This API is used to modify a keyword alarm.

                                      +
                                      +

                                      URI

                                      PUT /v2/{project_id}/lts/alarms/keywords-alarm-rule

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 3 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      keywords_alarm_rule_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Keyword alarm rule ID.

                                      +

                                      Minimum: 36

                                      +

                                      Maximum: 36

                                      +

                                      keywords_alarm_rule_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Original rule name, which cannot be changed.

                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 64

                                      +

                                      alarm_rule_alias

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Rule name.

                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 64

                                      +

                                      keywords_alarm_rule_description

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Keyword alarm description.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 64

                                      +

                                      keywords_requests

                                      +

                                      Yes

                                      +

                                      Array of KeywordsRequest objects

                                      +

                                      Keyword details.

                                      +

                                      frequency

                                      +

                                      Yes

                                      +

                                      Frequency object

                                      +

                                      Alarm statistical period.

                                      +

                                      keywords_alarm_level

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      keywords_alarm_send

                                      +

                                      Yes

                                      +

                                      Boolean

                                      +

                                      Whether to send an alarm.

                                      +

                                      keywords_alarm_send_code

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Subject. 0: unchanged; 1: added; 2: modified; 3: deleted.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 3

                                      +

                                      domain_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +

                                      notification_save_rule

                                      +

                                      No

                                      +

                                      SqlNotificationSaveRule object

                                      +

                                      Notification topic, which will be unavailable soon. You are advised to use the alarm action rule function.

                                      +

                                      trigger_condition_count

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of times that log events meet the trigger condition. The default value is 1.

                                      +

                                      trigger_condition_frequency

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is met. The default value is 1.

                                      +

                                      whether_recovery_policy

                                      +

                                      No

                                      +

                                      Boolean

                                      +

                                      Whether to enable the alarm clearance notification. The default value is false.

                                      +

                                      recovery_policy

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is not met. The alarm is cleared when this number reaches the value (3 by default) of this parameter.

                                      +

                                      notification_frequency

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Notification frequency, in minutes.

                                      +

                                      alarm_action_rule_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Alarm action rule name.

                                      +
                                      NOTE:

                                      Set alarm_action_rule_name or notification_save_rule. If you set both of them, the value of alarm_action_rule_name is prioritized.

                                      +
                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 4 KeywordsRequest

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_stream_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log stream ID.

                                      +

                                      log_stream_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Log stream name.

                                      +

                                      log_group_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      log_group_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Log group name.

                                      +

                                      keywords

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Keyword.

                                      +

                                      condition

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Condition.

                                      +

                                      number

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Keyword threshold, which forms a condition with keyword and condition. An alarm is triggered when the condition is met.

                                      +

                                      search_time_range

                                      +

                                      Yes

                                      +

                                      Integer

                                      +

                                      Time range for querying the latest data when a task is executed.

                                      +

                                      search_time_range_unit

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Query time unit.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 Frequency

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Time type.

                                      +

                                      cron_expr

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Cron expression, which uses the 24-hour format and is precise down to the minute.

                                      +

                                      • 0/10 * * * *: The query starts from 00:00 and is performed every 10 minutes at 00:00, 00:10, 00:20, 00:30, 00:40, 00:50, 01:00, and so on. For example, if the current time is 16:37, the next query is at 16:50.

                                      +

                                      • 0 0/5 * * *: The query starts from 00:00 and is performed every 5 hours at 00:00, 05:00, 10:00, 15:00, 20:00, and so on. For example, if the current time is 16:37, the next query is at 20:00.

                                      +

                                      • 0 14 * * *: The query is performed at 14:00 every day.

                                      +

                                      • 0 0 10 * *: The query is performed at 00:00 on the 10th day of every month.

                                      +

                                      hour_of_day

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to DAILY or WEEKLY.

                                      +

                                      DAILY ranges from 0 to 23.

                                      +

                                      WEEKLY ranges from 0 to 23.

                                      +

                                      day_of_week

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to WEEKLY (from Sunday to Saturday).

                                      +

                                      fixed_rate

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Value of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate_unit to indicate a fixed period.

                                      +

                                      fixed_rate_unit

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Unit of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate to indicate a fixed period.

                                      +

                                      The value can be hour or minute.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 6 SqlNotificationSaveRule

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      language

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Language of the preference.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 10

                                      +

                                      timezone

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Time zone information used in a notification. Example: +08:00

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 1024

                                      +

                                      user_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Username used in a notification. It is generally displayed in the first line of the greeting.

                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 1024

                                      +

                                      topics

                                      +

                                      Yes

                                      +

                                      Array of Topics objects

                                      +

                                      Topic information, which will be unavailable soon. You are advised to use the action rule function.

                                      +

                                      template_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Message template name.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 7 Topics

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Topic name.

                                      +

                                      topic_urn

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Specifies the resource identifier of the topic, which is unique.

                                      +

                                      display_name

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Specifies the topic display name, which is presented as the name of the email sender in email messages.

                                      +

                                      push_policy

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Specifies the message push policy.

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 8 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      keywords_alarm_rule_id

                                      +

                                      String

                                      +

                                      Keyword alarm ID.

                                      +

                                      keywords_alarm_rule_name

                                      +

                                      String

                                      +

                                      Original rule name.

                                      +

                                      alarm_rule_alias

                                      +

                                      String

                                      +

                                      Rule name.

                                      +

                                      keywords_alarm_rule_description

                                      +

                                      String

                                      +

                                      Keyword alarm description.

                                      +

                                      keywords_requests

                                      +

                                      Array of KeywordsResBody objects

                                      +

                                      Keyword details.

                                      +

                                      frequency

                                      +

                                      FrequencyRespBody object

                                      +

                                      Alarm statistical period.

                                      +

                                      keywords_alarm_level

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      keywords_alarm_send

                                      +

                                      Boolean

                                      +

                                      Whether to send an alarm.

                                      +

                                      domain_id

                                      +

                                      String

                                      +

                                      domainId

                                      +

                                      create_time

                                      +

                                      Long

                                      +

                                      Creation time (timestamp in milliseconds).

                                      +

                                      update_time

                                      +

                                      Long

                                      +

                                      Update time (timestamp in milliseconds).

                                      +

                                      language

                                      +

                                      String

                                      +

                                      Language of information added to emails.

                                      +

                                      projectId

                                      +

                                      String

                                      +

                                      Project ID.

                                      +

                                      topics

                                      +

                                      Array of Topics objects

                                      +

                                      Notification topic, which will be unavailable soon. You are advised to use the alarm action rule function.

                                      +

                                      condition_expression

                                      +

                                      String

                                      +

                                      Description.

                                      +

                                      indexId

                                      +

                                      String

                                      +

                                      Index ID.

                                      +

                                      notification_frequency

                                      +

                                      Integer

                                      +

                                      Notification frequency, in minutes.

                                      +

                                      alarm_action_rule_name

                                      +

                                      String

                                      +

                                      Alarm action rule name.

                                      +
                                      NOTE:

                                      Set alarm_action_rule_name or notification_save_rule. If you set both of them, the value of alarm_action_rule_name is prioritized.

                                      +
                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 9 KeywordsResBody

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_stream_id

                                      +

                                      String

                                      +

                                      Log stream ID.

                                      +

                                      log_stream_name

                                      +

                                      String

                                      +

                                      Log stream name.

                                      +

                                      log_group_id

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      log_group_name

                                      +

                                      String

                                      +

                                      Log group name.

                                      +

                                      keywords

                                      +

                                      String

                                      +

                                      Keyword

                                      +

                                      condition

                                      +

                                      String

                                      +

                                      Condition

                                      +

                                      number

                                      +

                                      Integer

                                      +

                                      Number of lines.

                                      +

                                      search_time_range

                                      +

                                      Integer

                                      +

                                      Time range for querying the latest data when a task is executed. The maximum value is 60.

                                      +

                                      search_time_range_unit

                                      +

                                      String

                                      +

                                      Query time unit.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 10 FrequencyRespBody

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Time type.

                                      +

                                      cron_expr

                                      +

                                      String

                                      +

                                      This field is used when type is set to CRON.

                                      +

                                      hour_of_day

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to DAILY or WEEKLY.

                                      +

                                      day_of_week

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to WEEKLY (Sunday to Saturday).

                                      +

                                      fixed_rate

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to FIXED_RATE. If the unit of fixed_rate_unit is minute, the maximum value is 60. If the unit is hour, the maximum value is 24.

                                      +

                                      fixed_rate_unit

                                      +

                                      String

                                      +

                                      Enumerated values of the time unit:

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 11 Topics

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      name

                                      +

                                      String

                                      +

                                      Topic name.

                                      +

                                      topic_urn

                                      +

                                      String

                                      +

                                      Specifies the resource identifier of the topic, which is unique.

                                      +

                                      display_name

                                      +

                                      String

                                      +

                                      Specifies the topic display name, which is presented as the name of the email sender in email messages.

                                      +

                                      push_policy

                                      +

                                      Integer

                                      +

                                      Specifies the message push policy.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 12 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 13 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Modifying a keyword alarm rule

                                      +
                                      PUT https://{endpoint}/v2/{project_id}/lts/alarms/keywords-alarm-rule
                                      +
                                      +{
                                      +  "keywords_alarm_rule_id" : "",
                                      +  "keywords_alarm_rule_name" : "test",
                                      +  "alarm_rule_alias" : "zhangsan",
                                      +  "keywords_alarm_rule_description" : "test",
                                      +  "keywords_requests" : [ {
                                      +    "log_stream_id" : "1",
                                      +    "log_group_id" : "1",
                                      +    "keywords" : "test",
                                      +    "condition" : ">",
                                      +    "number" : "100",
                                      +    "search_time_range" : 10,
                                      +    "search_time_range_unit" : "minute"
                                      +  } ],
                                      +  "frequency" : {
                                      +    "type" : "FIXED_RATE",
                                      +    "cron_expr" : "",
                                      +    "hour_of_day" : 0,
                                      +    "day_of_week" : 0,
                                      +    "fixed_rate" : 10,
                                      +    "fixed_rate_unit" : "minute"
                                      +  },
                                      +  "keywords_alarm_level" : "Critical",
                                      +  "keywords_alarm_send" : true,
                                      +  "keywords_alarm_send_code" : "2",
                                      +  "domain_id" : "",
                                      +  "notification_frequency" : 5,
                                      +  "alarm_action_rule_name" : "",
                                      +  "notification_save_rule" : {
                                      +    "language" : "en-us",
                                      +    "timezone" : "xx/xx",
                                      +    "user_name" : "test",
                                      +    "template_name" : "Message template name.",
                                      +    "topics" : [ {
                                      +      "name" : "test",
                                      +      "topic_urn" : "urn:smn:xxxx-7:1b06fc5dc0814a4da1594a9ade9cb93c:test",
                                      +      "display_name" : "",
                                      +      "push_policy" : 0
                                      +    } ]
                                      +  }
                                      +}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "keywords_alarm_rule_id" : "",
                                      +  "keywords_alarm_rule_name" : "test",
                                      +  "keywords_alarm_rule_description" : "test",
                                      +  "alarm_rule_alias" : "zhangsan",
                                      +  "keywords_requests" : [ {
                                      +    "log_stream_id" : "1",
                                      +    "log_stream_name" : "test",
                                      +    "log_group_name" : "test",
                                      +    "log_group_id" : "1",
                                      +    "keywords" : "test",
                                      +    "condition" : ">",
                                      +    "number" : "100",
                                      +    "search_time_range" : 10,
                                      +    "search_time_range_unit" : "minute"
                                      +  } ],
                                      +  "frequency" : {
                                      +    "type" : "FIXED_RATE",
                                      +    "cron_expr" : "",
                                      +    "hour_of_day" : 0,
                                      +    "day_of_week" : 0,
                                      +    "fixed_rate" : 10,
                                      +    "fixed_rate_unit" : "minute"
                                      +  },
                                      +  "keywords_alarm_level" : "Critical",
                                      +  "keywords_alarm_send" : false,
                                      +  "domain_id" : "",
                                      +  "notification_frequency" : 5,
                                      +  "alarm_action_rule_name" : "",
                                      +  "topics" : [ {
                                      +    "name" : "test",
                                      +    "topic_urn" : "urn:smn:xxxx-7:1b06fc5dc0814a4da1594a9ade9cb93c:test",
                                      +    "display_name" : "",
                                      +    "push_policy" : 0
                                      +  } ],
                                      +  "language" : "en-us"
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      +
                                      {
                                      +  "error_code" : "LTS.2005",
                                      +  "error_msg" : "Alarm rule params validator error."
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.2003",
                                      +  "error_msg" : "Failed to update alarm rule."
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      Invalid request. Modify the request based on the description in error_msg before a retry.

                                      +

                                      500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0083.html b/docs/lts/api-ref/lts_api_0083.html new file mode 100644 index 000000000..68c9d2386 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0083.html @@ -0,0 +1,625 @@ + + +

                                      Querying a Keyword Alarm Rule

                                      +

                                      Function

                                      This API is used to query a keyword alarm.

                                      +
                                      +

                                      URI

                                      GET /v2/{project_id}/lts/alarms/keywords-alarm-rule

                                      + +
                                      + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + +
                                      Table 3 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      keywords_alarm_rules

                                      +

                                      Array of KeywordsAlarmRuleRespList objects

                                      +

                                      Project ID.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 4 KeywordsAlarmRuleRespList

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      projectId

                                      +

                                      String

                                      +

                                      Project ID.

                                      +

                                      keywords_alarm_rule_id

                                      +

                                      String

                                      +

                                      Keyword alarm ID.

                                      +

                                      keywords_alarm_rule_name

                                      +

                                      String

                                      +

                                      Keyword alarm rule name.

                                      +

                                      keywords_alarm_rule_description

                                      +

                                      String

                                      +

                                      Keyword alarm description.

                                      +

                                      condition_expression

                                      +

                                      String

                                      +

                                      Condition.

                                      +

                                      keywords_requests

                                      +

                                      Array of KeywordsRequest objects

                                      +

                                      Keyword details.

                                      +

                                      frequency

                                      +

                                      Frequency object

                                      +

                                      Alarm statistical period.

                                      +

                                      keywords_alarm_level

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      keywords_alarm_send

                                      +

                                      Boolean

                                      +

                                      Whether to send an alarm.

                                      +

                                      domain_id

                                      +

                                      String

                                      +

                                      Domain ID

                                      +

                                      create_time

                                      +

                                      Long

                                      +

                                      Creation time (timestamp in milliseconds).

                                      +

                                      update_time

                                      +

                                      Long

                                      +

                                      Update time (timestamp in milliseconds).

                                      +

                                      topics

                                      +

                                      Array of Topics objects

                                      +

                                      Notification topic, which will be unavailable soon. You are advised to use the action rule function.

                                      +

                                      template_name

                                      +

                                      String

                                      +

                                      Message template name.

                                      +

                                      status

                                      +

                                      String

                                      +

                                      Alarm status.

                                      +

                                      trigger_condition_count

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is met. The default value is 1.

                                      +

                                      trigger_condition_frequency

                                      +

                                      Integer

                                      +

                                      Number of times that log events meet the trigger condition. The default value is 1.

                                      +

                                      whether_recovery_policy

                                      +

                                      Boolean

                                      +

                                      Whether to enable the alarm clearance notification. The default value is false.

                                      +

                                      recovery_policy

                                      +

                                      Integer

                                      +

                                      Number of queries in which the triggering condition is not met. The alarm is cleared when this number reaches the value (3 by default) of this parameter.

                                      +

                                      notification_frequency

                                      +

                                      Integer

                                      +

                                      Notification frequency, in minutes.

                                      +

                                      alarm_action_rule_name

                                      +

                                      String

                                      +

                                      Alarm action rule name.

                                      +

                                      id

                                      +

                                      String

                                      +

                                      The value is the same as that of keywords_alarm_rule_id.

                                      +

                                      indexId

                                      +

                                      String

                                      +

                                      The value is the same as that of keywords_alarm_rule_id.

                                      +

                                      key

                                      +

                                      String

                                      +

                                      The value is the same as that of keywords_alarm_rule_id.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 KeywordsRequest

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      log_stream_id

                                      +

                                      String

                                      +

                                      Log stream ID.

                                      +

                                      log_stream_name

                                      +

                                      String

                                      +

                                      Log stream name.

                                      +

                                      log_group_id

                                      +

                                      String

                                      +

                                      Log group ID.

                                      +

                                      log_group_name

                                      +

                                      String

                                      +

                                      Log group name.

                                      +

                                      keywords

                                      +

                                      String

                                      +

                                      Keyword.

                                      +

                                      condition

                                      +

                                      String

                                      +

                                      Condition.

                                      +

                                      number

                                      +

                                      Integer

                                      +

                                      Keyword threshold, which forms a condition with keyword and condition. An alarm is triggered when the condition is met.

                                      +

                                      search_time_range

                                      +

                                      Integer

                                      +

                                      Time range for querying the latest data when a task is executed.

                                      +

                                      search_time_range_unit

                                      +

                                      String

                                      +

                                      Query time unit.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 6 Frequency

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Time type.

                                      +

                                      cron_expr

                                      +

                                      String

                                      +

                                      Cron expression, which uses the 24-hour format and is precise down to the minute.

                                      +

                                      • 0/10 * * * *: The query starts from 00:00 and is performed every 10 minutes at 00:00, 00:10, 00:20, 00:30, 00:40, 00:50, 01:00, and so on. For example, if the current time is 16:37, the next query is at 16:50.

                                      +

                                      • 0 0/5 * * *: The query starts from 00:00 and is performed every 5 hours at 00:00, 05:00, 10:00, 15:00, 20:00, and so on. For example, if the current time is 16:37, the next query is at 20:00.

                                      +

                                      • 0 14 * * *: The query is performed at 14:00 every day.

                                      +

                                      • 0 0 10 * *: The query is performed at 00:00 on the 10th day of every month.

                                      +

                                      hour_of_day

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to DAILY or WEEKLY.

                                      +

                                      DAILY ranges from 0 to 23.

                                      +

                                      WEEKLY ranges from 0 to 23.

                                      +

                                      day_of_week

                                      +

                                      Integer

                                      +

                                      This field is used when type is set to WEEKLY (from Sunday to Saturday).

                                      +

                                      fixed_rate

                                      +

                                      Integer

                                      +

                                      Value of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate_unit to indicate a fixed period.

                                      +

                                      fixed_rate_unit

                                      +

                                      String

                                      +

                                      Unit of a period. This field is used when type is set to FIXED_RATE. It is used together with fixed_rate to indicate a fixed period.

                                      +

                                      The value can be hour or minute.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 7 Topics

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      name

                                      +

                                      String

                                      +

                                      Topic name.

                                      +

                                      topic_urn

                                      +

                                      String

                                      +

                                      Specifies the resource identifier of the topic, which is unique.

                                      +

                                      display_name

                                      +

                                      String

                                      +

                                      Specifies the topic display name, which is presented as the name of the email sender in email messages.

                                      +

                                      push_policy

                                      +

                                      Integer

                                      +

                                      Specifies the message push policy.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 8 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Querying a keyword alarm rule

                                      +
                                      GET https://{endpoint}/v2/{project_id}/lts/alarms/keywords-alarm-rule
                                      +
                                      +/v2/{project_id}/lts/alarms/keywords-alarm-rule
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "keywords_alarm_rules" : [ {
                                      +    "alarm_action_rule_name" : "Alarm Action Rule Name",
                                      +    "alarm_rule_alias" : "APITest",
                                      +    "condition_expressions" : [ {
                                      +      "alarm_level" : "CRITICAL",
                                      +      "condition_expression" : "Matching Log Events>1"
                                      +    } ],
                                      +    "create_time" : 1736498043489,
                                      +    "domain_id" : "78ac2cb7c0be4d0482bd7d949830e0b8",
                                      +    "frequency" : {
                                      +      "cron_expr" : "",
                                      +      "day_of_week" : 1,
                                      +      "fixed_rate" : 1,
                                      +      "fixed_rate_unit" : "minute",
                                      +      "hour_of_day" : 0,
                                      +      "type" : "FIXED_RATE"
                                      +    },
                                      +    "keywords_alarm_level" : "CRITICAL",
                                      +    "id" : "025a5375-c548-498c-8330-219cf8a1dbbf",
                                      +    "indexId" : "025a5375-c548-498c-8330-219cf8a1dbbf",
                                      +    "key" : "025a5375-c548-498c-8330-219cf8a1dbbf",
                                      +    "keywords_alarm_rule_description" : "",
                                      +    "keywords_alarm_rule_id" : "025a5375-c548-498c-8330-219cf8a1dbbf",
                                      +    "keywords_alarm_rule_name" : "APITest",
                                      +    "keywords_alarm_send" : true,
                                      +    "keywords_requests" : [ {
                                      +      "condition" : ">",
                                      +      "conditions" : [ {
                                      +        "alarm_level" : "CRITICAL",
                                      +        "condition" : ">",
                                      +        "number" : 1
                                      +      } ],
                                      +      "eps_id" : "0",
                                      +      "is_time_range_relative" : true,
                                      +      "keywords" : "aaa",
                                      +      "log_group_id" : "b2ead43b-c055-4581-8c13-56af52b6bc13",
                                      +      "log_group_name" : "lts-group-mwb002",
                                      +      "log_group_name_alias" : "lts-group-mwb002",
                                      +      "log_stream_id" : "072795c7-ce92-4ea3-b359-1928d47ab152",
                                      +      "log_stream_name" : "lts-topic-coredns",
                                      +      "log_stream_name_alias" : "lts-topic-coredns",
                                      +      "number" : 1,
                                      +      "search_time_range" : 5,
                                      +      "search_time_range_unit" : "minute"
                                      +    } ],
                                      +    "language" : "zh-cn",
                                      +    "notification_frequency" : 0,
                                      +    "projectId" : "a0a12b069ab4491185d7cf26c3e86ada",
                                      +    "query_version" : "v2",
                                      +    "query_version_for_query" : "newVersion",
                                      +    "recovery_policy" : 3,
                                      +    "status" : "RUNNING",
                                      +    "tags" : [ {
                                      +      "key" : "tagTest",
                                      +      "value" : "level"
                                      +    } ],
                                      +    "topics" : [ ],
                                      +    "trigger_condition_count" : 1,
                                      +    "trigger_condition_frequency" : 1,
                                      +    "update_time" : 1736498043489,
                                      +    "whether_recovery_policy" : true
                                      +  }, {
                                      +    "projectId" : "string",
                                      +    "keywords_alarm_rule_id" : "string",
                                      +    "keywords_alarm_rule_name" : "string",
                                      +    "keywords_alarm_rule_description" : "string",
                                      +    "condition_expression" : "string",
                                      +    "keywords_requests" : [ {
                                      +      "log_stream_id" : "string",
                                      +      "log_stream_name" : "string",
                                      +      "log_group_id" : "string",
                                      +      "log_group_name" : "string",
                                      +      "keywords" : "string",
                                      +      "condition" : ">=",
                                      +      "number" : 1,
                                      +      "search_time_range" : 0,
                                      +      "search_time_range_unit" : "minute"
                                      +    } ],
                                      +    "frequency" : {
                                      +      "type" : "CRON",
                                      +      "cron_expr" : "string",
                                      +      "hour_of_day" : 0,
                                      +      "day_of_week" : 0,
                                      +      "fixed_rate" : 0,
                                      +      "fixed_rate_unit" : "minute"
                                      +    },
                                      +    "keywords_alarm_level" : "Info",
                                      +    "keywords_alarm_send" : true,
                                      +    "domain_id" : "string",
                                      +    "create_time" : 0,
                                      +    "update_time" : 0,
                                      +    "template_name" : "Message template name.",
                                      +    "status" : "RUNNING",
                                      +    "trigger_condition_count" : "1",
                                      +    "trigger_condition_frequency" : "1",
                                      +    "whether_recovery_policy" : false,
                                      +    "recovery_policy" : "3",
                                      +    "notification_frequency" : 5,
                                      +    "alarm_action_rule_name" : "",
                                      +    "topics" : [ {
                                      +      "name" : "string",
                                      +      "topic_urn" : "string",
                                      +      "display_name" : "test-smn",
                                      +      "push_policy" : 0
                                      +    } ]
                                      +  } ]
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.2008",
                                      +  "error_msg" : "Find Alarm rule failed."
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0084.html b/docs/lts/api-ref/lts_api_0084.html new file mode 100644 index 000000000..b2f425632 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0084.html @@ -0,0 +1,191 @@ + + +

                                      Deleting a Keyword Alarm Rule

                                      +

                                      Function

                                      This API is used to delete a keyword alarm.

                                      +
                                      +

                                      URI

                                      DELETE /v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}

                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +

                                      keywords_alarm_rule_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Keyword alarm rule ID.

                                      +

                                      Minimum: 36

                                      +

                                      Maximum: 36

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 3 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 4 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Deleting a keyword alarm by alarm ID

                                      +
                                      DELETE https://{endpoint}/v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}
                                      +
                                      +/v2/{project_id}/lts/alarms/keywords-alarm-rule/{keywords_alarm_rule_id}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      None
                                      +

                                      Status code: 400

                                      +

                                      Error response content.

                                      +
                                      {
                                      +  "error_code" : "LTS.2007",
                                      +  "error_msg" : "Alarm rule not exist."
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      {
                                      +  "error_code" : "LTS.2002",
                                      +  "error_msg" : "Failed to update alarm rule."
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      Error response content.

                                      +

                                      500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0091.html b/docs/lts/api-ref/lts_api_0091.html new file mode 100644 index 000000000..d218d8798 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0091.html @@ -0,0 +1,646 @@ + + +

                                      Querying the Active or Historical Alarm List

                                      +

                                      Function

                                      This API is used to query the alarm list.

                                      +
                                      +

                                      URI

                                      POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/query

                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +

                                      domain_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 2 Query Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Whether the alarm is an active alarm or a historical alarm.

                                      +

                                      marker

                                      +

                                      No

                                      +

                                      String

                                      +

                                      The value is the ID of the last record on the previous page (value of previous_marker or next_marker returned by the previous page).

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 1000

                                      +

                                      limit

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Number of records on each page.

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 1000

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 3 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 4 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      whether_custom_field

                                      +

                                      Yes

                                      +

                                      Boolean

                                      +

                                      Whether to customize the query time segment.

                                      +

                                      start_time

                                      +

                                      No

                                      +

                                      Long

                                      +

                                      Start time of a customized time segment (timestamp).

                                      +

                                      Minimum: 13

                                      +

                                      Maximum: 13

                                      +

                                      end_time

                                      +

                                      No

                                      +

                                      Long

                                      +

                                      End time of a customized time segment (timestamp).

                                      +

                                      Minimum: 13

                                      +

                                      Maximum: 13

                                      +

                                      time_range

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Time range specified to query data of the last N minutes when the client time is inconsistent with the server time. It can also be used to accurately query the data of a specified period.

                                      +

                                      Examples:

                                      +
                                      • -1.-1.60 indicates that the data of the latest 60 minutes is queried. This query is based on the server time regardless of the current client time.

                                        +
                                      • 1650852000000.1650852300000.5 indicates the 5 minutes from 10:00:00 to 10:05:00 on April 25, 2022 UTC+08:00.

                                        +

                                        Format: startTimeInMillis.endTimeInMillis.durationInMinutes

                                        +

                                        Parameter description:

                                        +
                                      • startTimeInMillis: start time (UTC) of the query, in milliseconds. If this parameter is set to -1, the server calculates the start time as follows: endTimeInMillis – durationInMinutes x 60 x 1,000. For example, -1.1650852300000.5 is equivalent to 1650852000000.1650852300000.5.

                                        +
                                      • endTimeInMillis: end time (UTC) of the query, in milliseconds. If this parameter is set to -1, the server calculates the end time as follows: startTimeInMillis + durationInMinutes x 60 x 1,000. If the calculated end time is later than the current system time, the current system time is used. For example, 1650852000000.-1.5 is equivalent to 1650852000000.1650852300000.5.

                                        +
                                      • durationInMinutes: time span, in minutes. The value must be greater than 0, and also greater than or equal to the result of "(endTimeInMillis – startTimeInMillis)/(60 x 1,000) – 1". If both the start time and end time are set to -1, the system sets the end time to the current UTC time (in milliseconds) and calculates the start time as follows: endTimeInMillis – durationInMinutes x 60 x 1,000. For example, -1.-1.60 indicates the latest 60 minutes.

                                        +

                                        Constraint: In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1,440

                                        +
                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 32

                                      +

                                      search

                                      +

                                      No

                                      +

                                      String

                                      +

                                      Field specified for fuzzy query, which can be left blank. If the value is not empty, fuzzy match will be performed. The metadata field is mandatory.

                                      +

                                      Minimum: 1

                                      +

                                      Maximum: 1024

                                      +

                                      alarm_level_ids

                                      +

                                      No

                                      +

                                      Array of strings

                                      +

                                      Alarm severity (Critical, Major, Minor, Info).

                                      +
                                      NOTE:

                                      alarmLevelIds is a parameter of an earlier version and is currently compatible with this parameter. You are advised to use this parameter.

                                      +

                                      alarm_level_ids

                                      +
                                      +

                                      sort

                                      +

                                      No

                                      +

                                      Sort object

                                      +

                                      Sorting order, which can be left blank.

                                      +

                                      step

                                      +

                                      No

                                      +

                                      Integer

                                      +

                                      Statistical step. Unit: ms. For example, if the duration is 1 minute, set this parameter to 60000.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 5 Sort

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      order_by

                                      +

                                      Yes

                                      +

                                      Array of strings

                                      +

                                      List of sorted fields. Fields in this list are sorted based on the specified order.

                                      +

                                      order

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Sorting order.

                                      +

                                      The value can be:

                                      +
                                      • asc (ascending order)

                                        +
                                      • desc (descending order)

                                        +
                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      Status code: 200

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 6 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      events

                                      +

                                      Array of Events objects

                                      +

                                      Alarm information.

                                      +

                                      page_info

                                      +

                                      PageInfo object

                                      +

                                      Pagination details.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 7 Events

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      annotations

                                      +

                                      Annotations object

                                      +

                                      Alert details.

                                      +

                                      metadata

                                      +

                                      Metadata object

                                      +

                                      Alarm information.

                                      +

                                      arrives_at

                                      +

                                      Long

                                      +

                                      Arrival time (timestamp).

                                      +

                                      ends_at

                                      +

                                      Long

                                      +

                                      Alarm clearance time (timestamp).

                                      +

                                      id

                                      +

                                      String

                                      +

                                      Alarm ID.

                                      +

                                      starts_at

                                      +

                                      Long

                                      +

                                      Alarm generation time (timestamp).

                                      +

                                      timeout

                                      +

                                      Long

                                      +

                                      Time when an alarm is automatically cleared (timestamp).

                                      +

                                      type

                                      +

                                      String

                                      +

                                      Alarm rule type (SQL/keyword).

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + +
                                      Table 8 Annotations

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      message

                                      +

                                      String

                                      +

                                      Alarm list details.

                                      +

                                      log_info

                                      +

                                      String

                                      +

                                      Log group/stream ID.

                                      +

                                      current_value

                                      +

                                      String

                                      +

                                      Current value.

                                      +

                                      old_annotations

                                      +

                                      String

                                      +

                                      Original data of (SQL/keyword) alarm details.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 9 Metadata

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      event_type

                                      +

                                      String

                                      +

                                      Alarm type.

                                      +

                                      event_id

                                      +

                                      String

                                      +

                                      Alarm ID.

                                      +

                                      event_severity

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      event_name

                                      +

                                      String

                                      +

                                      Alarm name.

                                      +

                                      resource_type

                                      +

                                      String

                                      +

                                      Resource type.

                                      +

                                      resource_id

                                      +

                                      String

                                      +

                                      Log group/stream name.

                                      +

                                      resource_provider

                                      +

                                      String

                                      +

                                      Alarm source.

                                      +

                                      lts_alarm_type

                                      +

                                      String

                                      +

                                      Alarm rule type (SQL/keyword).

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + +
                                      Table 10 PageInfo

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      next_marker

                                      +

                                      String

                                      +

                                      Address of the next page. If this parameter is left empty, no data is displayed on the next page.

                                      +

                                      previous_marker

                                      +

                                      String

                                      +

                                      Address of the previous page.

                                      +

                                      current_count

                                      +

                                      String

                                      +

                                      Number of items returned on this page.

                                      +
                                      +
                                      +

                                      Status code: 400

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 11 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +

                                      Status code: 500

                                      + +
                                      + + + + + + + + + + + + + +
                                      Table 12 Response body parameters

                                      Parameter

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      error_code

                                      +

                                      String

                                      +

                                      Error code.

                                      +

                                      error_msg

                                      +

                                      String

                                      +

                                      Error message.

                                      +
                                      +
                                      +
                                      +

                                      Example Requests

                                      Querying the active or historical alarm list

                                      +
                                      POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/query?type=active_alert
                                      +
                                      +{
                                      +  "whether_custom_field" : false,
                                      +  "start_time" : 0,
                                      +  "end_time" : 0,
                                      +  "time_range" : "30",
                                      +  "search" : "",
                                      +  "alarm_level_ids" : [ "Critical", "Major", "Minor", "Info" ],
                                      +  "sort" : {
                                      +    "order_by" : [ "starts_at" ],
                                      +    "order" : "desc"
                                      +  }
                                      +}
                                      +
                                      +

                                      Example Responses

                                      Status code: 200

                                      +

                                      The request is successful.

                                      +
                                      {
                                      +  "events" : [ {
                                      +    "annotations" : {
                                      +      "current_value" : "{\"pv\":30}",
                                      +      "log_info" : "[{\"log_group_id\":\"50bcab14-xxxx-xxxx-xxxx-41ae4a6e3401\",\"log_group_name\":\"lts-test-group\",\"log_group_name_alias\":\"lts-test-group\",\"log_stream_id\":\"90727e60-xxxx-xxxx-xxxx-19ba53adcbc5\",\"log_stream_name\":\"lts-test-topic\",\"log_stream_name_alias\":\"lts-test-topic\"}]",
                                      +      "message" : "{\"alarm_action_rule_name\":\"testlts\",\"alarm_rule_alias\":\"lts001\",\"alarm_rule_id\":\"2ef849e9-afb4-4983-9197-9049c3460b9d\",\"alarm_rule_name\":\"lts001\",\"closed_alarm_time\":0,\"condition_expression\":\"pv > 0\",\"condition_expressions\":[{\"condition_expression\":\"pv > 0\"}],\"create_time\":0,\"domain_id\":\"1d26cc8c86a840e28a4f8dxxxxxxxxxx\",\"frequency\":{\"day_of_week\":1,\"fixed_rate\":1,\"fixed_rate_unit\":\"minute\",\"hour_of_day\":0,\"type\":\"FIXED_RATE\"},\"is_css_sql\":true,\"ltsAlarmInfos\":[{\"conditions\":[],\"is_time_range_relative\":true,\"log_group_id\":\"50bcab14-xxxx-xxxx-xxxx-41ae4a6e3401\",\"log_group_name\":\"lts-test-group\",\"log_group_name_alias\":\"lts-test-group\",\"log_stream_id\":\"90727e60-xxxx-xxxx-xxxx-19ba53adcbc5\",\"log_stream_name\":\"lts-test-topic\",\"log_stream_name_alias\":\"lts-test-topic\",\"search_time_range\":5,\"search_time_range_unit\":\"minute\",\"sql\":\"* | SELECT count(*) as pv\",\"sql_request_title\":\"\"}],\"notification_frequency\":0,\"projectId\":\"\",\"status\":\"RUNNING\",\"topics\":[],\"type\":\"sql\",\"update_time\":0,\"whether_recovery_policy\":false}"
                                      +    },
                                      +    "metadata" : {
                                      +      "event_type" : "alarm",
                                      +      "event_id" : "2ef849e9-xxxx-xxxx-xxxx-9049c3460b9d",
                                      +      "lts_alarm_type" : "search_analysis",
                                      +      "event_severity" : "Critical",
                                      +      "resource_type" : "Log group/stream.",
                                      +      "event_name" : "lts001",
                                      +      "resource_id" : "lts-test-group/lts-test-topic",
                                      +      "event_subtype" : "sql",
                                      +      "resource_provider" : "LTS"
                                      +    },
                                      +    "type" : "search_analysis"
                                      +  } ]
                                      +}
                                      +

                                      Status code: 400

                                      +

                                      Response content.

                                      +
                                      {
                                      +  "error_code" : "LTS.2005",
                                      +  "error_msg" : "Find alarm error start_time or end_tim must not be empty."
                                      +}
                                      +

                                      Status code: 500

                                      +

                                      Response content.

                                      +
                                      {
                                      +  "error_code" : "LTS.0010",
                                      +  "error_msg" : "Internal Server Error"
                                      +}
                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      400

                                      +

                                      Response content.

                                      +

                                      500

                                      +

                                      Response content.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_0092.html b/docs/lts/api-ref/lts_api_0092.html new file mode 100644 index 000000000..c4bacb375 --- /dev/null +++ b/docs/lts/api-ref/lts_api_0092.html @@ -0,0 +1,278 @@ + + +

                                      Deleting an Active Alarm

                                      +

                                      Function

                                      This API is used to delete an active alarm.

                                      +
                                      +

                                      URI

                                      POST /v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clear

                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 1 Path Parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      project_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +

                                      domain_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Account ID. For details about how to obtain an account ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID.

                                      +

                                      Minimum: 32

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      +
                                      +

                                      Request Parameters

                                      +
                                      + + + + + + + + + + + + + + + + +
                                      Table 2 Request header parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      X-Auth-Token

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token.

                                      +

                                      Minimum: 1000

                                      +

                                      Maximum: 2000

                                      +

                                      Content-Type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Set this parameter to application/json;charset=UTF-8.

                                      +

                                      Minimum: 30

                                      +

                                      Maximum: 30

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + +
                                      Table 3 Request body parameters

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      events

                                      +

                                      Yes

                                      +

                                      Array of Event objects

                                      +

                                      Topic information.

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + +
                                      Table 4 Event

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      metadata

                                      +

                                      Yes

                                      +

                                      Metadata object

                                      +

                                      Alarm information.

                                      +

                                      Minimum length: 0

                                      +

                                      Maximum length: 2048

                                      +

                                      starts_at

                                      +

                                      Yes

                                      +

                                      Long

                                      +

                                      Alarm generation time (timestamp).

                                      +

                                      Minimum: 0

                                      +

                                      Maximum: 32

                                      +
                                      +
                                      + +
                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                      Table 5 Metadata

                                      Parameter

                                      +

                                      Mandatory

                                      +

                                      Type

                                      +

                                      Description

                                      +

                                      event_type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm type.

                                      +

                                      event_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm ID.

                                      +

                                      event_severity

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm severity.

                                      +

                                      event_name

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm name.

                                      +

                                      resource_type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Resource type.

                                      +

                                      resource_id

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Log group/stream name.

                                      +

                                      resource_provider

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm source.

                                      +

                                      lts_alarm_type

                                      +

                                      Yes

                                      +

                                      String

                                      +

                                      Alarm rule type (SQL/keyword).

                                      +
                                      +
                                      +
                                      +

                                      Response Parameters

                                      None

                                      +
                                      +

                                      Example Requests

                                      Deleting an active alarm by alarm ID

                                      +
                                      POST https://{endpoint}/v2/{project_id}/{domain_id}/lts/alarms/sql-alarm/clear
                                      +
                                      +{
                                      +  "events" : [ {
                                      +    "metadata" : {
                                      +      "event_type" : "alarm",
                                      +      "event_id" : "1",
                                      +      "lts_alarm_type" : "keywords/sql",
                                      +      "resource_type" : "Log group/stream.",
                                      +      "event_severity" : "Critical",
                                      +      "resource_id" : "lts-group-demo/lts-topic-demo",
                                      +      "event_name" : "demo",
                                      +      "resource_provider" : "LTS"
                                      +    },
                                      +    "starts_at" : 1629947408497
                                      +  } ]
                                      +}
                                      +
                                      +

                                      Example Responses

                                      None

                                      +
                                      +

                                      Status Codes

                                      +
                                      + + + + + + + + + + +

                                      Status Code

                                      +

                                      Description

                                      +

                                      200

                                      +

                                      The request is successful.

                                      +

                                      500

                                      +

                                      The server has received the request but encountered an internal error.

                                      +
                                      +
                                      +
                                      +

                                      Error Codes

                                      See Error Codes.

                                      +
                                      +
                                      +
                                      + +
                                      + diff --git a/docs/lts/api-ref/lts_api_1015.html b/docs/lts/api-ref/lts_api_1015.html new file mode 100644 index 000000000..1242fa57a --- /dev/null +++ b/docs/lts/api-ref/lts_api_1015.html @@ -0,0 +1,24 @@ + + +

                                      Host Group Management

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000003.html b/docs/lts/api-ref/topic_300000003.html new file mode 100644 index 000000000..377aa558d --- /dev/null +++ b/docs/lts/api-ref/topic_300000003.html @@ -0,0 +1,26 @@ + + +

                                      Log Management

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000004.html b/docs/lts/api-ref/topic_300000004.html new file mode 100644 index 000000000..c5f4dcecb --- /dev/null +++ b/docs/lts/api-ref/topic_300000004.html @@ -0,0 +1,24 @@ + + +

                                      Log Ingestion

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000005.html b/docs/lts/api-ref/topic_300000005.html new file mode 100644 index 000000000..304ece604 --- /dev/null +++ b/docs/lts/api-ref/topic_300000005.html @@ -0,0 +1,24 @@ + + +

                                      Log Transfer

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000006.html b/docs/lts/api-ref/topic_300000006.html new file mode 100644 index 000000000..567238b75 --- /dev/null +++ b/docs/lts/api-ref/topic_300000006.html @@ -0,0 +1,18 @@ + + +

                                      Log Collection Beyond Free Quota

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000007.html b/docs/lts/api-ref/topic_300000007.html new file mode 100644 index 000000000..57e1ac928 --- /dev/null +++ b/docs/lts/api-ref/topic_300000007.html @@ -0,0 +1,26 @@ + + +

                                      Cloud Structuring

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000008.html b/docs/lts/api-ref/topic_300000008.html new file mode 100644 index 000000000..3756c396d --- /dev/null +++ b/docs/lts/api-ref/topic_300000008.html @@ -0,0 +1,16 @@ + + +

                                      Alarm Topics

                                      +

                                      +
                                      +
                                      + + + +
                                      + diff --git a/docs/lts/api-ref/topic_300000009.html b/docs/lts/api-ref/topic_300000009.html new file mode 100644 index 000000000..c5e9a6166 --- /dev/null +++ b/docs/lts/api-ref/topic_300000009.html @@ -0,0 +1,26 @@ + + +

                                      Message Template Management

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000010.html b/docs/lts/api-ref/topic_300000010.html new file mode 100644 index 000000000..3e25b2422 --- /dev/null +++ b/docs/lts/api-ref/topic_300000010.html @@ -0,0 +1,22 @@ + + +

                                      Keyword Alarm Rules

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000011.html b/docs/lts/api-ref/topic_300000011.html new file mode 100644 index 000000000..c6da5f522 --- /dev/null +++ b/docs/lts/api-ref/topic_300000011.html @@ -0,0 +1,18 @@ + + +

                                      Alarm List

                                      +

                                      +
                                      + + diff --git a/docs/lts/api-ref/topic_300000012.html b/docs/lts/api-ref/topic_300000012.html new file mode 100644 index 000000000..480b8d487 --- /dev/null +++ b/docs/lts/api-ref/topic_300000012.html @@ -0,0 +1,16 @@ + + +

                                      Tag Management

                                      +

                                      +
                                      +
                                      + + + +
                                      + diff --git a/docs/lts/api-ref/topic_300000013.html b/docs/lts/api-ref/topic_300000013.html new file mode 100644 index 000000000..013338b38 --- /dev/null +++ b/docs/lts/api-ref/topic_300000013.html @@ -0,0 +1,22 @@ + + +

                                      Quick Search

                                      +

                                      +
                                      + +