├── .gitignore ├── Aliyun └── Log │ ├── Client.php │ ├── Exception.php │ ├── LoggerFactory.php │ ├── Models │ ├── ACL.php │ ├── CompressedLogGroup.php │ ├── Config.php │ ├── CredentialsProvider.php │ ├── Histogram.php │ ├── LogItem.php │ ├── LogLevel │ │ └── LogLevel.php │ ├── Machine.php │ ├── MachineGroup.php │ ├── OssShipperConfig.php │ ├── OssShipperCsvStorage.php │ ├── OssShipperJsonStorage.php │ ├── OssShipperParquetStorage.php │ ├── OssShipperStorage.php │ ├── Request │ │ ├── ApplyConfigToMachineGroupRequest.php │ │ ├── BatchGetLogsRequest.php │ │ ├── CreateACLRequest.php │ │ ├── CreateConfigRequest.php │ │ ├── CreateLogstoreRequest.php │ │ ├── CreateMachineGroupRequest.php │ │ ├── CreateShipperRequest.php │ │ ├── DeleteACLRequest.php │ │ ├── DeleteConfigRequest.php │ │ ├── DeleteLogstoreRequest.php │ │ ├── DeleteMachineGroupRequest.php │ │ ├── DeleteShardRequest.php │ │ ├── DeleteShipperRequest.php │ │ ├── GetACLRequest.php │ │ ├── GetConfigRequest.php │ │ ├── GetCursorRequest.php │ │ ├── GetHistogramsRequest.php │ │ ├── GetLogsRequest.php │ │ ├── GetMachineGroupRequest.php │ │ ├── GetMachineRequest.php │ │ ├── GetProjectLogsRequest.php │ │ ├── GetShipperConfigRequest.php │ │ ├── GetShipperTasksRequest.php │ │ ├── ListACLsRequest.php │ │ ├── ListConfigsRequest.php │ │ ├── ListLogstoresRequest.php │ │ ├── ListMachineGroupsRequest.php │ │ ├── ListShardsRequest.php │ │ ├── ListShipperRequest.php │ │ ├── ListTopicsRequest.php │ │ ├── LogStoreSqlRequest.php │ │ ├── MergeShardsRequest.php │ │ ├── ProjectSqlRequest.php │ │ ├── PutLogsRequest.php │ │ ├── RemoveConfigFromMachineGroupRequest.php │ │ ├── Request.php │ │ ├── RetryShipperTasksRequest.php │ │ ├── SplitShardRequest.php │ │ ├── UpdateACLRequest.php │ │ ├── UpdateConfigRequest.php │ │ ├── UpdateLogstoreRequest.php │ │ ├── UpdateMachineGroupRequest.php │ │ └── UpdateShipperRequest.php │ ├── Response │ │ ├── ApplyConfigToMachineGroupResponse.php │ │ ├── BatchGetLogsResponse.php │ │ ├── CreateACLResponse.php │ │ ├── CreateConfigResponse.php │ │ ├── CreateLogstoreResponse.php │ │ ├── CreateMachineGroupResponse.php │ │ ├── CreateShipperResponse.php │ │ ├── CreateSqlInstanceResponse.php │ │ ├── DeleteACLResponse.php │ │ ├── DeleteConfigResponse.php │ │ ├── DeleteLogstoreResponse.php │ │ ├── DeleteMachineGroupResponse.php │ │ ├── DeleteShardResponse.php │ │ ├── DeleteShipperResponse.php │ │ ├── GetACLResponse.php │ │ ├── GetConfigResponse.php │ │ ├── GetCursorResponse.php │ │ ├── GetHistogramsResponse.php │ │ ├── GetLogsResponse.php │ │ ├── GetMachineGroupResponse.php │ │ ├── GetMachineResponse.php │ │ ├── GetShipperConfigResponse.php │ │ ├── GetShipperTasksResponse.php │ │ ├── ListACLsResponse.php │ │ ├── ListConfigsResponse.php │ │ ├── ListLogstoresResponse.php │ │ ├── ListMachineGroupsResponse.php │ │ ├── ListShardsResponse.php │ │ ├── ListShipperResponse.php │ │ ├── ListSqlInstanceResponse.php │ │ ├── ListTopicsResponse.php │ │ ├── LogStoreSqlResponse.php │ │ ├── ProjectSqlResponse.php │ │ ├── PutLogsResponse.php │ │ ├── QueriedLog.php │ │ ├── RemoveConfigFromMachineGroupResponse.php │ │ ├── Response.php │ │ ├── RetryShipperTasksResponse.php │ │ ├── Shard.php │ │ ├── SqlInstance.php │ │ ├── UpdaetSqlInstanceResponse.php │ │ ├── UpdateACLResponse.php │ │ ├── UpdateConfigResponse.php │ │ ├── UpdateLogstoreResponse.php │ │ ├── UpdateMachineGroupResponse.php │ │ ├── UpdateShipperResponse.php │ │ └── UpdateSqlInstanceResponse.php │ └── StaticCredentialsProvider.php │ ├── SimpleLogger.php │ ├── Util.php │ ├── log.proto.php │ ├── protocolbuffers.inc.php │ ├── requestcore.class.php │ └── sls.proto.php ├── License.txt ├── Log_Autoload.php ├── README.md ├── build.bat ├── build.md ├── build.sh ├── composer.json ├── docs ├── classes.svg ├── classes │ ├── Aliyun_Log_Client.html │ ├── Aliyun_Log_Exception.html │ ├── Aliyun_Log_Models_ACL.html │ ├── Aliyun_Log_Models_ApplyConfigToMachineGroupRequest.html │ ├── Aliyun_Log_Models_ApplyConfigToMachineGroupResponse.html │ ├── Aliyun_Log_Models_BatchGetLogsRequest.html │ ├── Aliyun_Log_Models_BatchGetLogsResponse.html │ ├── Aliyun_Log_Models_CompressedLogGroup.html │ ├── Aliyun_Log_Models_Config.html │ ├── Aliyun_Log_Models_Config_InputDetail.html │ ├── Aliyun_Log_Models_Config_OutputDetail.html │ ├── Aliyun_Log_Models_CreateACLRequest.html │ ├── Aliyun_Log_Models_CreateACLResponse.html │ ├── Aliyun_Log_Models_CreateConfigRequest.html │ ├── Aliyun_Log_Models_CreateConfigResponse.html │ ├── Aliyun_Log_Models_CreateLogstoreRequest.html │ ├── Aliyun_Log_Models_CreateLogstoreResponse.html │ ├── Aliyun_Log_Models_CreateMachineGroupRequest.html │ ├── Aliyun_Log_Models_CreateMachineGroupResponse.html │ ├── Aliyun_Log_Models_DeleteACLRequest.html │ ├── Aliyun_Log_Models_DeleteACLResponse.html │ ├── Aliyun_Log_Models_DeleteConfigRequest.html │ ├── Aliyun_Log_Models_DeleteConfigResponse.html │ ├── Aliyun_Log_Models_DeleteLogstoreRequest.html │ ├── Aliyun_Log_Models_DeleteLogstoreResponse.html │ ├── Aliyun_Log_Models_DeleteMachineGroupRequest.html │ ├── Aliyun_Log_Models_DeleteMachineGroupResponse.html │ ├── Aliyun_Log_Models_DeleteShardRequest.html │ ├── Aliyun_Log_Models_DeleteShardResponse.html │ ├── Aliyun_Log_Models_GetACLRequest.html │ ├── Aliyun_Log_Models_GetACLResponse.html │ ├── Aliyun_Log_Models_GetConfigRequest.html │ ├── Aliyun_Log_Models_GetConfigResponse.html │ ├── Aliyun_Log_Models_GetCursorRequest.html │ ├── Aliyun_Log_Models_GetCursorResponse.html │ ├── Aliyun_Log_Models_GetHistogramsRequest.html │ ├── Aliyun_Log_Models_GetHistogramsResponse.html │ ├── Aliyun_Log_Models_GetLogsRequest.html │ ├── Aliyun_Log_Models_GetLogsResponse.html │ ├── Aliyun_Log_Models_GetMachineGroupRequest.html │ ├── Aliyun_Log_Models_GetMachineGroupResponse.html │ ├── Aliyun_Log_Models_GetMachineRequest.html │ ├── Aliyun_Log_Models_GetMachineResponse.html │ ├── Aliyun_Log_Models_Histogram.html │ ├── Aliyun_Log_Models_ListACLsRequest.html │ ├── Aliyun_Log_Models_ListACLsResponse.html │ ├── Aliyun_Log_Models_ListConfigsRequest.html │ ├── Aliyun_Log_Models_ListLogstoresRequest.html │ ├── Aliyun_Log_Models_ListLogstoresResponse.html │ ├── Aliyun_Log_Models_ListMachineGroupsRequest.html │ ├── Aliyun_Log_Models_ListMachineGroupsResponse.html │ ├── Aliyun_Log_Models_ListShardsRequest.html │ ├── Aliyun_Log_Models_ListShardsResponse.html │ ├── Aliyun_Log_Models_ListTopicsRequest.html │ ├── Aliyun_Log_Models_ListTopicsResponse.html │ ├── Aliyun_Log_Models_LogItem.html │ ├── Aliyun_Log_Models_Machine.html │ ├── Aliyun_Log_Models_MachineGroup.html │ ├── Aliyun_Log_Models_MachineGroup_GroupAttribute.html │ ├── Aliyun_Log_Models_Machine_Info.html │ ├── Aliyun_Log_Models_Machine_Status.html │ ├── Aliyun_Log_Models_MergeShardsRequest.html │ ├── Aliyun_Log_Models_PutLogsRequest.html │ ├── Aliyun_Log_Models_PutLogsResponse.html │ ├── Aliyun_Log_Models_QueriedLog.html │ ├── Aliyun_Log_Models_RemoveConfigFromMachineGroupRequest.html │ ├── Aliyun_Log_Models_RemoveConfigFromMachineGroupResponse.html │ ├── Aliyun_Log_Models_Request.html │ ├── Aliyun_Log_Models_Response.html │ ├── Aliyun_Log_Models_Shard.html │ ├── Aliyun_Log_Models_SplitShardRequest.html │ ├── Aliyun_Log_Models_UpdateACLRequest.html │ ├── Aliyun_Log_Models_UpdateACLResponse.html │ ├── Aliyun_Log_Models_UpdateConfigRequest.html │ ├── Aliyun_Log_Models_UpdateConfigResponse.html │ ├── Aliyun_Log_Models_UpdateLogstoreRequest.html │ ├── Aliyun_Log_Models_UpdateLogstoreResponse.html │ ├── Aliyun_Log_Models_UpdateMachineGroupRequest.html │ ├── Aliyun_Log_Models_UpdateMachineGroupResponse.html │ ├── Aliyun_Log_Util.html │ ├── Aliyun_Sls_Client.html │ ├── Aliyun_Sls_Exception.html │ ├── Aliyun_Sls_Models_GetHistogramsRequest.html │ ├── Aliyun_Sls_Models_GetHistogramsResponse.html │ ├── Aliyun_Sls_Models_GetLogsRequest.html │ ├── Aliyun_Sls_Models_GetLogsResponse.html │ ├── Aliyun_Sls_Models_Histogram.html │ ├── Aliyun_Sls_Models_ListLogstoresRequest.html │ ├── Aliyun_Sls_Models_ListLogstoresResponse.html │ ├── Aliyun_Sls_Models_ListTopicsRequest.html │ ├── Aliyun_Sls_Models_ListTopicsResponse.html │ ├── Aliyun_Sls_Models_LogItem.html │ ├── Aliyun_Sls_Models_PutLogsRequest.html │ ├── Aliyun_Sls_Models_PutLogsResponse.html │ ├── Aliyun_Sls_Models_QueriedLog.html │ ├── Aliyun_Sls_Models_Request.html │ ├── Aliyun_Sls_Models_Response.html │ ├── Aliyun_Sls_Util.html │ ├── Log.html │ ├── LogGroup.html │ ├── LogGroupList.html │ ├── LogPackage.html │ ├── LogPackageList.html │ ├── Log_Content.html │ ├── Protobuf.html │ ├── ProtobufEnum.html │ ├── ProtobufMessage.html │ ├── RequestCore.html │ ├── RequestCore_Exception.html │ └── ResponseCore.html ├── css │ ├── bootstrap-responsive.css │ ├── bootstrap-responsive.min.css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── jquery.iviewer.css │ ├── prettify.css │ └── template.css ├── deprecated.html ├── errors.html ├── graph_class.html ├── img │ ├── apple-touch-icon-114x114.png │ ├── apple-touch-icon-72x72.png │ ├── apple-touch-icon.png │ ├── favicon.ico │ ├── glyphicons-halflings-white.png │ ├── glyphicons-halflings.png │ ├── icons │ │ ├── arrow_down.png │ │ ├── arrow_right.png │ │ ├── class.png │ │ ├── constant.png │ │ ├── favicon.ico │ │ ├── file-php.png │ │ ├── file.gif │ │ ├── folder.gif │ │ ├── function.png │ │ ├── icon-folder-open-big.png │ │ ├── icon-th-big.png │ │ ├── icon_template.svg │ │ ├── interface.png │ │ ├── method.png │ │ ├── ok.png │ │ ├── property.png │ │ ├── search.gif │ │ ├── variable.png │ │ ├── view_source.png │ │ ├── visibility_private.png │ │ ├── visibility_protected.png │ │ └── visibility_public.png │ ├── iviewer │ │ ├── grab.cur │ │ ├── hand.cur │ │ ├── iviewer.rotate_left.png │ │ ├── iviewer.rotate_right.png │ │ ├── iviewer.zoom_fit.png │ │ ├── iviewer.zoom_fit2.gif │ │ ├── iviewer.zoom_in.png │ │ ├── iviewer.zoom_in2.gif │ │ ├── iviewer.zoom_out.png │ │ ├── iviewer.zoom_out2.gif │ │ ├── iviewer.zoom_zero.png │ │ └── iviewer.zoom_zero2.gif │ └── loader.gif ├── index.html ├── js │ ├── SVGPan.js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── jqplot │ │ ├── MIT-LICENSE.txt │ │ ├── README.txt │ │ ├── changes.txt │ │ ├── copyright.txt │ │ ├── excanvas.min.js │ │ ├── gpl-2.0.txt │ │ ├── jquery.jqplot.min.css │ │ ├── jquery.jqplot.min.js │ │ └── plugins │ │ │ ├── jqplot.BezierCurveRenderer.min.js │ │ │ ├── jqplot.barRenderer.min.js │ │ │ ├── jqplot.blockRenderer.min.js │ │ │ ├── jqplot.bubbleRenderer.min.js │ │ │ ├── jqplot.canvasAxisLabelRenderer.min.js │ │ │ ├── jqplot.canvasAxisTickRenderer.min.js │ │ │ ├── jqplot.canvasOverlay.min.js │ │ │ ├── jqplot.canvasTextRenderer.min.js │ │ │ ├── jqplot.categoryAxisRenderer.min.js │ │ │ ├── jqplot.ciParser.min.js │ │ │ ├── jqplot.cursor.min.js │ │ │ ├── jqplot.dateAxisRenderer.min.js │ │ │ ├── jqplot.donutRenderer.min.js │ │ │ ├── jqplot.dragable.min.js │ │ │ ├── jqplot.enhancedLegendRenderer.min.js │ │ │ ├── jqplot.funnelRenderer.min.js │ │ │ ├── jqplot.highlighter.min.js │ │ │ ├── jqplot.json2.min.js │ │ │ ├── jqplot.logAxisRenderer.min.js │ │ │ ├── jqplot.mekkoAxisRenderer.min.js │ │ │ ├── jqplot.mekkoRenderer.min.js │ │ │ ├── jqplot.meterGaugeRenderer.min.js │ │ │ ├── jqplot.mobile.min.js │ │ │ ├── jqplot.ohlcRenderer.min.js │ │ │ ├── jqplot.pieRenderer.min.js │ │ │ ├── jqplot.pointLabels.min.js │ │ │ ├── jqplot.pyramidAxisRenderer.min.js │ │ │ ├── jqplot.pyramidGridRenderer.min.js │ │ │ ├── jqplot.pyramidRenderer.min.js │ │ │ └── jqplot.trendline.min.js │ ├── jquery-1.4.2.min.js │ ├── jquery-1.7.1.min.js │ ├── jquery-ui-1.8.2.custom.min.js │ ├── jquery.cookie.js │ ├── jquery.iviewer.js │ ├── jquery.iviewer.min.js │ ├── jquery.mousewheel.min.js │ ├── jquery.panzoom.js │ ├── jquery.splitter.js │ ├── jquery.tools.min.js │ ├── jquery.treeview.js │ ├── jquery.xml2json.js │ ├── menu.js │ ├── prettify │ │ ├── lang-apollo.js │ │ ├── lang-clj.js │ │ ├── lang-css.js │ │ ├── lang-go.js │ │ ├── lang-hs.js │ │ ├── lang-lisp.js │ │ ├── lang-lua.js │ │ ├── lang-ml.js │ │ ├── lang-n.js │ │ ├── lang-proto.js │ │ ├── lang-scala.js │ │ ├── lang-sql.js │ │ ├── lang-tex.js │ │ ├── lang-vb.js │ │ ├── lang-vhdl.js │ │ ├── lang-wiki.js │ │ ├── lang-xq.js │ │ ├── lang-yaml.js │ │ └── prettify.min.js │ ├── sidebar.js │ └── template.js ├── markers.html ├── namespaces │ ├── default.html │ └── global.html ├── packages │ ├── LOG.PHP.SDK.html │ ├── SLS_PHP_SDK.html │ ├── default.html │ └── global.html ├── phpdoc-cache-00 │ └── phpdoc-cache-file_424e0cdbe1d8550cc6c3e07815137cf1.dat ├── phpdoc-cache-06 │ └── phpdoc-cache-file_239fdc416f469298cd1d8b3894560f8f.dat ├── phpdoc-cache-0e │ └── phpdoc-cache-file_e950411f3233965341425c00386f74b6.dat ├── phpdoc-cache-18 │ └── phpdoc-cache-file_1c392768ee1a3da61f3d0da0697fea34.dat ├── phpdoc-cache-1a │ └── phpdoc-cache-file_4a330a9886b7d589ce4e8e58d44ba117.dat ├── phpdoc-cache-1d │ └── phpdoc-cache-file_db8b17c85c92f5cd1dc7bcebb8b51a91.dat ├── phpdoc-cache-23 │ └── phpdoc-cache-file_9cfae108f097ba834f8a70c4d750ed49.dat ├── phpdoc-cache-27 │ └── phpdoc-cache-file_42d5b12b53b855f9c9dfdc8ecfbea730.dat ├── phpdoc-cache-2a │ └── phpdoc-cache-file_d04ca1a3e5b98be562c06133b85c6bed.dat ├── phpdoc-cache-2b │ └── phpdoc-cache-file_0fc03e122a99c30ce16ac816aa8499b6.dat ├── phpdoc-cache-2c │ └── phpdoc-cache-file_043c0d130c3959f07f50004ac3be54cb.dat ├── phpdoc-cache-2d │ ├── phpdoc-cache-file_5cae177591fe5ac0a1dab9ac209c1c1b.dat │ └── phpdoc-cache-file_befea0fb710377d3d74384acc8ac6f73.dat ├── phpdoc-cache-2e │ ├── phpdoc-cache-file_d8d56dabae20fabbe5c6da0b12819779.dat │ └── phpdoc-cache-settings.dat ├── phpdoc-cache-30 │ └── phpdoc-cache-file_f5405c3c5c5fc494748cb07df138322d.dat ├── phpdoc-cache-34 │ └── phpdoc-cache-file_6313c8684ed97495cd6c85612f310684.dat ├── phpdoc-cache-35 │ └── phpdoc-cache-file_a31d8d8bdbf8bc378c56fd06b3122622.dat ├── phpdoc-cache-38 │ ├── phpdoc-cache-file_d6cb4bffbb7093993c2e3ddd7464211f.dat │ └── phpdoc-cache-file_efb52bdd9e5022f63e1f5c5b16204894.dat ├── phpdoc-cache-3a │ ├── phpdoc-cache-file_6ff3a57f72c80f7c257907a164767deb.dat │ └── phpdoc-cache-file_7dd5a8a267c2bb3bb22a532edb9c4890.dat ├── phpdoc-cache-3c │ └── phpdoc-cache-file_c58271b0facec38e308da7b508fe9746.dat ├── phpdoc-cache-40 │ └── phpdoc-cache-file_b56043cecf89b902d8b52925d416c591.dat ├── phpdoc-cache-41 │ ├── phpdoc-cache-file_35ce96c5f13282e37883b76fbc3700ba.dat │ └── phpdoc-cache-file_7776662ea84a69e69d9d5da728a7cea9.dat ├── phpdoc-cache-49 │ └── phpdoc-cache-file_057ef5bd7fe349062dc95ad9a8773e29.dat ├── phpdoc-cache-4c │ └── phpdoc-cache-file_61a90ff181c5c772e32ae8fddfdb312a.dat ├── phpdoc-cache-4f │ └── phpdoc-cache-file_d8f2b64012850a915be7e15614534768.dat ├── phpdoc-cache-50 │ └── phpdoc-cache-file_d6dd53c34462d9757a033733092fd717.dat ├── phpdoc-cache-51 │ └── phpdoc-cache-file_d9eb40c32fd684d682ba1c38f2f2057e.dat ├── phpdoc-cache-52 │ └── phpdoc-cache-file_907e5981bb6d352820e9c887f71ad4b2.dat ├── phpdoc-cache-58 │ └── phpdoc-cache-file_ae48161c1a610ae22e59f425554923a2.dat ├── phpdoc-cache-5f │ └── phpdoc-cache-file_0e2b1834343fe7493719b38219495707.dat ├── phpdoc-cache-61 │ └── phpdoc-cache-file_ac70b900963477bd571a40889a8222e3.dat ├── phpdoc-cache-70 │ └── phpdoc-cache-file_64fbfaecce4182adaeea7db58c8c7078.dat ├── phpdoc-cache-74 │ └── phpdoc-cache-file_33bab02b6179f04997b58b65c132c68c.dat ├── phpdoc-cache-78 │ └── phpdoc-cache-file_0b420644fbf2dc3fcb1bcd516a3a5cef.dat ├── phpdoc-cache-7c │ └── phpdoc-cache-file_3b288dc7f24c47367f12d4377ea730b2.dat ├── phpdoc-cache-7d │ └── phpdoc-cache-file_d8a9fc52043a78382d8e14f41cb4ec8c.dat ├── phpdoc-cache-7f │ └── phpdoc-cache-file_20a8145ca319876006e349323015ecf9.dat ├── phpdoc-cache-85 │ ├── phpdoc-cache-file_308f8f3c212c2a3ab519e7c91d57777c.dat │ ├── phpdoc-cache-file_658549a7f082125e0eccd85d6fb3c889.dat │ └── phpdoc-cache-file_bfb95c6f671d3e9487a47457d389c963.dat ├── phpdoc-cache-87 │ └── phpdoc-cache-file_8470790d20462f59d0d601de5a2fff98.dat ├── phpdoc-cache-8a │ ├── phpdoc-cache-file_c4b83b19700ccd0f3e482c222d230634.dat │ └── phpdoc-cache-file_e29975f434337874926cc56f83f46a53.dat ├── phpdoc-cache-8e │ └── phpdoc-cache-file_e211465a4afaa5dfd432e771e219506d.dat ├── phpdoc-cache-90 │ └── phpdoc-cache-file_5f722231448e1dfaeeaf275837449ebb.dat ├── phpdoc-cache-99 │ └── phpdoc-cache-file_20584308410b4d1dabc28f547db8f494.dat ├── phpdoc-cache-9d │ ├── phpdoc-cache-file_19962b08746064d77e3a2f26cf9b714e.dat │ └── phpdoc-cache-file_723d90661ec6aa78643b6d35954dbe79.dat ├── phpdoc-cache-a2 │ └── phpdoc-cache-file_848c2b437f0a852db6d20f78b1383ee1.dat ├── phpdoc-cache-a3 │ └── phpdoc-cache-file_3f9912308a2f021882d8a049327e55e2.dat ├── phpdoc-cache-a5 │ └── phpdoc-cache-file_e14c7a62929e97cc1ff762113b7ee3a5.dat ├── phpdoc-cache-a7 │ └── phpdoc-cache-file_ef8ef9fdc27c9460f71596ff2324ae8c.dat ├── phpdoc-cache-ab │ ├── phpdoc-cache-file_0fd650466eea1b8cc68d0ae25a1c0f82.dat │ └── phpdoc-cache-file_47574feaa2e9cbf683781c5a22d018a0.dat ├── phpdoc-cache-b1 │ └── phpdoc-cache-file_6ed2a9f60ef6cdc647b28ddc2244993c.dat ├── phpdoc-cache-bd │ ├── phpdoc-cache-file_2cb88af744a097f913a23624bb5619d2.dat │ └── phpdoc-cache-file_716db9981f9e7bc7f6c92df08f9409a3.dat ├── phpdoc-cache-bf │ └── phpdoc-cache-file_7cb90261b19c7e04da8ec60f354801c9.dat ├── phpdoc-cache-c9 │ └── phpdoc-cache-file_88763950b80fc33089a62fc59b497cca.dat ├── phpdoc-cache-ce │ └── phpdoc-cache-file_47bc050b33010792ff800281f9ab6dc9.dat ├── phpdoc-cache-cf │ └── phpdoc-cache-file_67e08eec21427b946ae9f8ead3ff6c16.dat ├── phpdoc-cache-d1 │ └── phpdoc-cache-file_52fa4255ca51e497353b3f3515b12b95.dat ├── phpdoc-cache-d2 │ └── phpdoc-cache-file_ad9decfd35298d5bab34675b2280d19c.dat ├── phpdoc-cache-d5 │ └── phpdoc-cache-file_3f199544b9edab0d74f9448763ba52db.dat ├── phpdoc-cache-dd │ └── phpdoc-cache-file_38819c6dd08be809a9c72f4b982ecf3e.dat ├── phpdoc-cache-e0 │ ├── phpdoc-cache-file_5e197af49407fac1911a3ef5a4a6ad18.dat │ ├── phpdoc-cache-file_d506ea9bbbc4f3d805844520d3ec0efe.dat │ └── phpdoc-cache-file_ed3435d0e8e77045c2a1ff0b58e73a53.dat ├── phpdoc-cache-e1 │ └── phpdoc-cache-file_06ec2c5b068f0ae1b722c99c2490f351.dat ├── phpdoc-cache-e2 │ └── phpdoc-cache-file_38b90a17812e1f65c338aff8358743a4.dat ├── phpdoc-cache-e4 │ └── phpdoc-cache-file_8e8db8f681c785206efde8c4713d9f33.dat ├── phpdoc-cache-e8 │ └── phpdoc-cache-file_9f56fc28a2fbf022c08546d3cf110bbf.dat ├── phpdoc-cache-e9 │ ├── phpdoc-cache-file_2806c1b43d62b4a0733db0ddb4db1b9c.dat │ └── phpdoc-cache-file_d766c13060c61fa4aa7df4e997460371.dat ├── phpdoc-cache-ed │ └── phpdoc-cache-file_072385bdf5603e202c735bd51ac26c6d.dat ├── phpdoc-cache-f1 │ └── phpdoc-cache-file_5dda9d326f95130c506937e970e32e5c.dat ├── phpdoc-cache-f7 │ └── phpdoc-cache-file_364006e4e5cb229119c1ce811eac4432.dat └── structure.xml ├── sample ├── credentialsProviderSample.php ├── loggerSample.php └── sample.php └── tests └── EndpointTest.php /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | composer.phar 4 | .idea/ -------------------------------------------------------------------------------- /Aliyun/Log/Exception.php: -------------------------------------------------------------------------------- 1 | code = $code; 31 | $this->message = $message; 32 | $this->requestId = $requestId; 33 | } 34 | 35 | /** 36 | * The __toString() method allows a class to decide how it will react when 37 | * it is treated like a string. 38 | * 39 | * @return string 40 | */ 41 | public function __toString() { 42 | return "Aliyun_Log_Exception: \n{\n ErrorCode: $this->code,\n ErrorMessage: $this->message\n RequestId: $this->requestId\n}\n"; 43 | } 44 | 45 | /** 46 | * Get Aliyun_Log_Exception error code. 47 | * 48 | * @return string 49 | */ 50 | public function getErrorCode() { 51 | return $this->code; 52 | } 53 | 54 | /** 55 | * Get Aliyun_Log_Exception error message. 56 | * 57 | * @return string 58 | */ 59 | public function getErrorMessage() { 60 | return $this->message; 61 | } 62 | 63 | /** 64 | * Get log service sever requestid, '' is set if client or Http error. 65 | * 66 | * @return string 67 | */ 68 | public function getRequestId() { 69 | return $this->requestId; 70 | } 71 | } 72 | 73 | -------------------------------------------------------------------------------- /Aliyun/Log/LoggerFactory.php: -------------------------------------------------------------------------------- 1 | logFlush(); 66 | } 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/CompressedLogGroup.php: -------------------------------------------------------------------------------- 1 | time = $time; 32 | if ($contents) 33 | $this->contents = $contents; 34 | else 35 | $this->contents = array (); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/CredentialsProvider.php: -------------------------------------------------------------------------------- 1 | accessKeyId = $accessKeyId; 27 | $this->accessKeySecret = $accessKeySecret; 28 | $this->securityToken = $securityToken; 29 | } 30 | 31 | /** 32 | * @return string accessKeyId 33 | */ 34 | public function getAccessKeyId() 35 | { 36 | return $this->accessKeyId; 37 | } 38 | /** 39 | * @param string $accessKeyId 40 | */ 41 | public function setAccessKeyId(string $accessKeyId) 42 | { 43 | $this->accessKeyId = $accessKeyId; 44 | } 45 | /** 46 | * @return string accessKeySecret 47 | */ 48 | public function getAccessKeySecret() 49 | { 50 | return $this->accessKeySecret; 51 | } 52 | /** 53 | * @param string $accessKeySecret 54 | */ 55 | public function setAccessKeySecret(string $accessKeySecret) 56 | { 57 | $this->accessKeySecret = $accessKeySecret; 58 | } 59 | /** 60 | * @return string securityToken 61 | */ 62 | public function getSecurityToken() 63 | { 64 | return $this->securityToken; 65 | } 66 | /** 67 | * @param string $securityToken 68 | */ 69 | public function setSecurityToken(string $securityToken) 70 | { 71 | $this->securityToken = $securityToken; 72 | } 73 | } 74 | 75 | interface Aliyun_Log_Models_CredentialsProvider 76 | { 77 | /** 78 | * @return Aliyun_Log_Models_Credentials 79 | * @throws Exception 80 | */ 81 | public function getCredentials(): Aliyun_Log_Models_Credentials; 82 | } 83 | 84 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Histogram.php: -------------------------------------------------------------------------------- 1 | from = $from; 50 | $this->to = $to; 51 | $this->count = $count; 52 | $this->progress = $progress; 53 | } 54 | 55 | /** 56 | * Get begin time 57 | * 58 | * @return integer the begin time 59 | */ 60 | public function getFrom() { 61 | return $this->from; 62 | } 63 | 64 | /** 65 | * Get the end time 66 | * 67 | * @return integer the end time 68 | */ 69 | public function getTo() { 70 | return $this->to; 71 | } 72 | 73 | /** 74 | * Get log count of histogram that query hits 75 | * 76 | * @return integer log count of histogram that query hits 77 | */ 78 | public function getCount() { 79 | return $this->count; 80 | } 81 | 82 | /** 83 | * Check if the histogram is completed 84 | * 85 | * @return bool true if this histogram is completed 86 | */ 87 | public function isCompleted() { 88 | return $this->progress == 'Complete'; 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/LogItem.php: -------------------------------------------------------------------------------- 1 | time = $time; 37 | if ($contents) 38 | $this->contents = $contents; 39 | else 40 | $this->contents = array (); 41 | } 42 | 43 | /** 44 | * Get log time 45 | * 46 | * @return integer log time 47 | */ 48 | public function getTime() { 49 | return $this->time; 50 | } 51 | 52 | /** 53 | * Set log time 54 | * 55 | * @param integer $time 56 | * log time 57 | */ 58 | public function setTime($time) { 59 | $this->time = $time; 60 | } 61 | 62 | /** 63 | * Get log contents 64 | * 65 | * @return array log contents 66 | */ 67 | public function getContents() { 68 | return $this->contents; 69 | } 70 | 71 | /** 72 | * Set log contents 73 | * 74 | * @param array $contents 75 | * log contents 76 | */ 77 | public function setContents($contents) { 78 | $this->contents = $contents; 79 | } 80 | 81 | /** 82 | * Add a key/value pair as log content to the log 83 | * 84 | * @param string $key 85 | * log content key 86 | * @param string $value 87 | * log content value 88 | */ 89 | public function pushBack($key, $value) { 90 | $this->contents [$key] = $value; 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/LogLevel/LogLevel.php: -------------------------------------------------------------------------------- 1 | level = $level; 24 | } 25 | 26 | /** 27 | * Compares two logger levels. 28 | * 29 | * @param LoggerLevels $other 30 | * @return boolean 31 | */ 32 | public function equals($other) { 33 | if($other instanceof Aliyun_Log_Models_LogLevel_LogLevel) { 34 | if($this->level == $other->level) { 35 | return true; 36 | } 37 | } else { 38 | return false; 39 | } 40 | } 41 | 42 | public static function getLevelDebug(){ 43 | if(!isset(self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::debug])){ 44 | self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::debug] = new Aliyun_Log_Models_LogLevel_LogLevel('debug'); 45 | } 46 | return self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::debug]; 47 | } 48 | 49 | public static function getLevelInfo(){ 50 | if(!isset(self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::info])){ 51 | self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::info] = new Aliyun_Log_Models_LogLevel_LogLevel('info'); 52 | } 53 | return self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::info]; 54 | } 55 | 56 | public static function getLevelWarn(){ 57 | if(!isset(self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::warn])){ 58 | self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::warn] = new Aliyun_Log_Models_LogLevel_LogLevel('warn'); 59 | } 60 | return self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::warn]; 61 | } 62 | 63 | public static function getLevelError(){ 64 | if(!isset(self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::error])){ 65 | self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::error] = new Aliyun_Log_Models_LogLevel_LogLevel('error'); 66 | } 67 | return self::$constCacheArray[Aliyun_Log_Models_LogLevel_LogLevel::error]; 68 | } 69 | 70 | public static function getLevelStr(Aliyun_Log_Models_LogLevel_LogLevel $logLevel){ 71 | 72 | $logLevelStr = ''; 73 | if(null === $logLevel){ 74 | $logLevelStr = 'info'; 75 | } 76 | switch ($logLevel->level){ 77 | case "error": 78 | $logLevelStr= 'error'; 79 | break; 80 | case "warn": 81 | $logLevelStr= 'warn'; 82 | break; 83 | case "info": 84 | $logLevelStr= 'info'; 85 | break; 86 | case "debug": 87 | $logLevelStr= 'debug'; 88 | break; 89 | } 90 | return $logLevelStr; 91 | } 92 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/OssShipperCsvStorage.php: -------------------------------------------------------------------------------- 1 | columns; 21 | } 22 | 23 | /** 24 | * @param mixed $columns 25 | */ 26 | public function setColumns($columns) 27 | { 28 | $this->columns = $columns; 29 | } 30 | 31 | /** 32 | * @return string 33 | */ 34 | public function getDelimiter(): string 35 | { 36 | return $this->delimiter; 37 | } 38 | 39 | /** 40 | * @param string $delimiter 41 | */ 42 | public function setDelimiter(string $delimiter) 43 | { 44 | $this->delimiter = $delimiter; 45 | } 46 | 47 | /** 48 | * @return string 49 | */ 50 | public function getQuote(): string 51 | { 52 | return $this->quote; 53 | } 54 | 55 | /** 56 | * @param string $quote 57 | */ 58 | public function setQuote(string $quote) 59 | { 60 | $this->quote = $quote; 61 | } 62 | 63 | /** 64 | * @return string 65 | */ 66 | public function getNullIdentifier(): string 67 | { 68 | return $this->nullIdentifier; 69 | } 70 | 71 | /** 72 | * @param string $nullIdentifier 73 | */ 74 | public function setNullIdentifier(string $nullIdentifier) 75 | { 76 | $this->nullIdentifier = $nullIdentifier; 77 | } 78 | 79 | /** 80 | * @return bool 81 | */ 82 | public function isHeader(): bool 83 | { 84 | return $this->header; 85 | } 86 | 87 | /** 88 | * @param bool $header 89 | */ 90 | public function setHeader(bool $header) 91 | { 92 | $this->header = $header; 93 | } 94 | 95 | /** 96 | * @return string 97 | */ 98 | public function getLineFeed(): string 99 | { 100 | return $this->lineFeed; 101 | } 102 | 103 | /** 104 | * @param string $lineFeed 105 | */ 106 | public function setLineFeed(string $lineFeed) 107 | { 108 | $this->lineFeed = $lineFeed; 109 | } 110 | 111 | public function to_json_object(){ 112 | $detail = array( 113 | 'columns' => $this->columns, 114 | 'delimiter' => $this->delimiter, 115 | 'quote' => $this->quote, 116 | 'lineFeed' => $this->lineFeed, 117 | 'nullIdentifier' => $this->nullIdentifier, 118 | 'header' => $this->header 119 | ); 120 | return array( 121 | 'detail' => $detail, 122 | 'format' => 'csv' 123 | ); 124 | } 125 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/OssShipperJsonStorage.php: -------------------------------------------------------------------------------- 1 | enableTag; 16 | } 17 | 18 | /** 19 | * @param bool $enableTag 20 | */ 21 | public function setEnableTag(bool $enableTag) 22 | { 23 | $this->enableTag = $enableTag; 24 | } 25 | 26 | public function to_json_object(){ 27 | $detail = array( 28 | 'enableTag' => $this->enableTag 29 | ); 30 | return array( 31 | 'detail' => $detail, 32 | 'format' => 'json' 33 | ); 34 | } 35 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/OssShipperParquetStorage.php: -------------------------------------------------------------------------------- 1 | columns; 16 | } 17 | 18 | /** 19 | * @param mixed $columns 20 | */ 21 | public function setColumns($columns) 22 | { 23 | $this->columns = $columns; 24 | } 25 | 26 | public function to_json_object(){ 27 | $detail = array( 28 | 'columns' => $this->columns 29 | ); 30 | return array( 31 | 'detail' => $detail, 32 | 'format' => 'parquet' 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/OssShipperStorage.php: -------------------------------------------------------------------------------- 1 | format; 16 | } 17 | 18 | /** 19 | * @param mixed $format 20 | */ 21 | public function setFormat($format) 22 | { 23 | $this->format = $format; 24 | } 25 | 26 | 27 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ApplyConfigToMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | groupName = $groupName; 23 | $this->configName = $configName; 24 | } 25 | public function getGroupName(){ 26 | return $this->groupName; 27 | } 28 | public function setGroupName($groupName){ 29 | $this->groupName = $groupName; 30 | } 31 | 32 | public function getConfigName(){ 33 | return $this->configName; 34 | } 35 | public function setConfigName($configName){ 36 | $this->configName = $configName; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/CreateACLRequest.php: -------------------------------------------------------------------------------- 1 | acl = $acl; 23 | } 24 | 25 | public function getAcl(){ 26 | return $this->acl; 27 | } 28 | public function setAcl($acl){ 29 | $this->acl = $acl; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/CreateConfigRequest.php: -------------------------------------------------------------------------------- 1 | config = $config; 24 | } 25 | 26 | public function getConfig(){ 27 | return $this->config; 28 | 29 | } 30 | 31 | public function setConfig($config){ 32 | $this->config = $config; 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/CreateLogstoreRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 27 | $this -> ttl = $ttl; 28 | $this -> shardCount = $shardCount; 29 | } 30 | public function getLogstore() 31 | { 32 | return $this -> logstore; 33 | } 34 | public function getTtl() 35 | { 36 | return $this -> ttl; 37 | } 38 | public function getShardCount() 39 | { 40 | return $this -> shardCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/CreateMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | machineGroup = $machineGroup; 23 | } 24 | public function getMachineGroup(){ 25 | return $this->machineGroup; 26 | } 27 | public function setMachineGroup($machineGroup){ 28 | $this->machineGroup = $machineGroup; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/CreateShipperRequest.php: -------------------------------------------------------------------------------- 1 | logStore; 29 | } 30 | 31 | /** 32 | * @param mixed $logStore 33 | */ 34 | public function setLogStore($logStore) 35 | { 36 | $this->logStore = $logStore; 37 | } 38 | 39 | /** 40 | * Aliyun_Log_Models_CreateShipperRequest Constructor 41 | * 42 | */ 43 | public function __construct($project) { 44 | parent::__construct ( $project ); 45 | } 46 | 47 | /** 48 | * @return mixed 49 | */ 50 | public function getShipperName() 51 | { 52 | return $this->shipperName; 53 | } 54 | 55 | /** 56 | * @param mixed $shipperName 57 | */ 58 | public function setShipperName($shipperName) 59 | { 60 | $this->shipperName = $shipperName; 61 | } 62 | 63 | /** 64 | * @return mixed 65 | */ 66 | public function getTargetType() 67 | { 68 | return $this->targetType; 69 | } 70 | 71 | /** 72 | * @param mixed $targetType 73 | */ 74 | public function setTargetType($targetType) 75 | { 76 | $this->targetType = $targetType; 77 | } 78 | 79 | /** 80 | * @return mixed 81 | */ 82 | public function getTargetConfigration() 83 | { 84 | return $this->targetConfigration; 85 | } 86 | 87 | /** 88 | * @param mixed $targetConfigration 89 | */ 90 | public function setTargetConfigration($targetConfigration) 91 | { 92 | $this->targetConfigration = $targetConfigration; 93 | } 94 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteACLRequest.php: -------------------------------------------------------------------------------- 1 | aclId = $aclId; 23 | } 24 | public function getAclId(){ 25 | return $this->aclId; 26 | } 27 | public function setAclId($aclId){ 28 | $this->aclId = $aclId; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteConfigRequest.php: -------------------------------------------------------------------------------- 1 | configName = $configName; 23 | } 24 | 25 | public function getConfigName(){ 26 | return $this->configName; 27 | } 28 | 29 | public function setConfigName($configName){ 30 | $this->configName=$configName; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteLogstoreRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 25 | } 26 | public function getLogstore() 27 | { 28 | return $this -> logstore; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | groupName = $groupName; 24 | } 25 | 26 | public function getGroupName(){ 27 | return $this->groupName; 28 | } 29 | 30 | public function setGroupName($groupName){ 31 | $this->groupName = $groupName; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteShardRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 25 | $this->shardId = $shardId; 26 | } 27 | 28 | public function getLogstore(){ 29 | return $this->logstore; 30 | } 31 | 32 | public function setLogstore($logstore){ 33 | $this->logstore = $logstore; 34 | } 35 | 36 | public function getShardId(){ 37 | return $this->shardId; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/DeleteShipperRequest.php: -------------------------------------------------------------------------------- 1 | logStore; 19 | } 20 | 21 | /** 22 | * @param mixed $logStore 23 | */ 24 | public function setLogStore($logStore) 25 | { 26 | $this->logStore = $logStore; 27 | } 28 | 29 | 30 | /** 31 | * @return mixed 32 | */ 33 | public function getShipperName() 34 | { 35 | return $this->shipperName; 36 | } 37 | 38 | /** 39 | * @param mixed $shipperName 40 | */ 41 | public function setShipperName($shipperName) 42 | { 43 | $this->shipperName = $shipperName; 44 | } 45 | 46 | /** 47 | * Aliyun_Log_Models_CreateShipperRequest Constructor 48 | * 49 | */ 50 | public function __construct($project) { 51 | parent::__construct ( $project ); 52 | } 53 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetACLRequest.php: -------------------------------------------------------------------------------- 1 | aclId = $aclId; 23 | } 24 | public function getAclId(){ 25 | return $this->aclId; 26 | } 27 | public function setAclId($aclId){ 28 | $this->aclId = $aclId; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetConfigRequest.php: -------------------------------------------------------------------------------- 1 | configName = $configName; 24 | } 25 | 26 | public function getConfigName(){ 27 | return $this->configName; 28 | } 29 | 30 | public function setConfigName($configName){ 31 | $this->configName = $configName; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetCursorRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 57 | $this->shardId = $shardId; 58 | $this->mode = $mode; 59 | $this->fromTime = $fromTime; 60 | } 61 | 62 | /** 63 | * Get logstore name 64 | * 65 | * @return string logstore name 66 | */ 67 | public function getLogstore(){ 68 | return $this->logstore; 69 | } 70 | 71 | /** 72 | * Set logstore name 73 | * 74 | * @param string $logstore 75 | * logstore name 76 | */ 77 | public function setLogstore($logstore){ 78 | $this->logstore = $logstore; 79 | } 80 | 81 | /** 82 | * Get shard id 83 | * 84 | * @return string shard id 85 | */ 86 | public function getShardId(){ 87 | return $this->shardId; 88 | } 89 | 90 | /** 91 | * Set shard id 92 | * 93 | * @param string $shardId 94 | * shard id 95 | */ 96 | public function setShardId($shardId){ 97 | $this->shardId = $shardId; 98 | } 99 | 100 | /** 101 | * Get mode 102 | * 103 | * @return string mode 104 | */ 105 | public function getMode(){ 106 | return $this->mode; 107 | } 108 | 109 | /** 110 | * Set mode 111 | * 112 | * @param string $mode 113 | * value must be 'begin' or 'end' 114 | */ 115 | public function setMode($mode){ 116 | $this->mode = $mode; 117 | } 118 | 119 | /** 120 | * Get from time 121 | * 122 | * @return integer(unix_timestamp) from time 123 | */ 124 | public function getFromTime(){ 125 | return $this->fromTime; 126 | } 127 | 128 | /** 129 | * Set from time 130 | * 131 | * @param integer $fromTime 132 | * from time (unix_timestamp) 133 | */ 134 | public function setFromTime($fromTime){ 135 | $this->fromTime = $fromTime; 136 | } 137 | 138 | } 139 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetHistogramsRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 61 | $this->from = $from; 62 | $this->to = $to; 63 | $this->topic = $topic; 64 | $this->query = $query; 65 | } 66 | 67 | /** 68 | * Get logstore name 69 | * 70 | * @return string logstore name 71 | */ 72 | public function getLogstore() { 73 | return $this->logstore; 74 | } 75 | 76 | /** 77 | * Set logstore name 78 | * 79 | * @param string $logstore 80 | * logstore name 81 | */ 82 | public function setLogstore($logstore) { 83 | $this->logstore = $logstore; 84 | } 85 | 86 | /** 87 | * Get topic name 88 | * 89 | * @return string topic name 90 | */ 91 | public function getTopic() { 92 | return $this->topic; 93 | } 94 | 95 | /** 96 | * Set topic name 97 | * 98 | * @param string $topic 99 | * topic name 100 | */ 101 | public function setTopic($topic) { 102 | $this->topic = $topic; 103 | } 104 | 105 | /** 106 | * Get begin time 107 | * 108 | * @return integer begin time 109 | */ 110 | public function getFrom() { 111 | return $this->from; 112 | } 113 | 114 | /** 115 | * Set begin time 116 | * 117 | * @param integer $from 118 | * begin time 119 | */ 120 | public function setFrom($from) { 121 | $this->from = $from; 122 | } 123 | 124 | /** 125 | * Get end time 126 | * 127 | * @return integer end time 128 | */ 129 | public function getTo() { 130 | return $this->to; 131 | } 132 | 133 | /** 134 | * Set end time 135 | * 136 | * @param integer $to 137 | * end time 138 | */ 139 | public function setTo($to) { 140 | $this->to = $to; 141 | } 142 | 143 | /** 144 | * Get user defined query 145 | * 146 | * @return string user defined query 147 | */ 148 | public function getQuery() { 149 | return $this->query; 150 | } 151 | 152 | /** 153 | * Set user defined query 154 | * 155 | * @param string $query 156 | * user defined query 157 | */ 158 | public function setQuery($query) { 159 | $this->query = $query; 160 | } 161 | } 162 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | groupName = $groupName; 23 | } 24 | public function getGroupName(){ 25 | return $this->groupName; 26 | } 27 | public function setGroupName($groupName){ 28 | $this->groupName = $groupName; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetMachineRequest.php: -------------------------------------------------------------------------------- 1 | uuid = $uuid; 24 | } 25 | 26 | public function getUuid(){ 27 | return $this->uuid; 28 | } 29 | 30 | public function setUuid($uuid){ 31 | $this->uuid = $uuid; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetProjectLogsRequest.php: -------------------------------------------------------------------------------- 1 | query = $query; 35 | $this->powerSql = $powerSql; 36 | } 37 | 38 | 39 | 40 | /** 41 | * Get user defined query 42 | * 43 | * @return string user defined query 44 | */ 45 | public function getQuery() { 46 | return $this->query; 47 | } 48 | 49 | /** 50 | * Get request powerSql flag 51 | * 52 | * @reutnr bool powerSql flag 53 | */ 54 | public function getPowerSql() { 55 | return $this -> powerSql; 56 | } 57 | 58 | /** 59 | * Set request powerSql flag 60 | * 61 | * @param bool $powerSql 62 | * powerSql flag 63 | * 64 | */ 65 | public function setPowerSql($powerSql) 66 | { 67 | $this -> powerSql = $powerSql; 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetShipperConfigRequest.php: -------------------------------------------------------------------------------- 1 | logStore; 19 | } 20 | 21 | /** 22 | * @param mixed $logStore 23 | */ 24 | public function setLogStore($logStore) 25 | { 26 | $this->logStore = $logStore; 27 | } 28 | 29 | 30 | /** 31 | * @return mixed 32 | */ 33 | public function getShipperName() 34 | { 35 | return $this->shipperName; 36 | } 37 | 38 | /** 39 | * @param mixed $shipperName 40 | */ 41 | public function setShipperName($shipperName) 42 | { 43 | $this->shipperName = $shipperName; 44 | } 45 | 46 | /** 47 | * Aliyun_Log_Models_CreateShipperRequest Constructor 48 | * 49 | */ 50 | public function __construct($project) { 51 | parent::__construct ( $project ); 52 | } 53 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/GetShipperTasksRequest.php: -------------------------------------------------------------------------------- 1 | startTime; 32 | } 33 | 34 | /** 35 | * @param mixed $startTime 36 | */ 37 | public function setStartTime($startTime) 38 | { 39 | $this->startTime = $startTime; 40 | } 41 | 42 | /** 43 | * @return mixed 44 | */ 45 | public function getEndTime() 46 | { 47 | return $this->endTime; 48 | } 49 | 50 | /** 51 | * @param mixed $endTime 52 | */ 53 | public function setEndTime($endTime) 54 | { 55 | $this->endTime = $endTime; 56 | } 57 | 58 | /** 59 | * @return 60 | */ 61 | public function getStatusType() 62 | { 63 | return $this->statusType; 64 | } 65 | 66 | /** 67 | * @param $statusType 68 | */ 69 | public function setStatusType($statusType) 70 | { 71 | $this->statusType = $statusType; 72 | } 73 | 74 | /** 75 | * @return mixed 76 | */ 77 | public function getOffset() 78 | { 79 | return $this->offset; 80 | } 81 | 82 | /** 83 | * @param mixed $offset 84 | */ 85 | public function setOffset($offset) 86 | { 87 | $this->offset = $offset; 88 | } 89 | 90 | /** 91 | * @return mixed 92 | */ 93 | public function getSize() 94 | { 95 | return $this->size; 96 | } 97 | 98 | /** 99 | * @param mixed $size 100 | */ 101 | public function setSize($size) 102 | { 103 | $this->size = $size; 104 | } 105 | 106 | /** 107 | * @return mixed 108 | */ 109 | public function getLogStore() 110 | { 111 | return $this->logStore; 112 | } 113 | 114 | /** 115 | * @param mixed $logStore 116 | */ 117 | public function setLogStore($logStore) 118 | { 119 | $this->logStore = $logStore; 120 | } 121 | 122 | 123 | /** 124 | * @return mixed 125 | */ 126 | public function getShipperName() 127 | { 128 | return $this->shipperName; 129 | } 130 | 131 | /** 132 | * @param mixed $shipperName 133 | */ 134 | public function setShipperName($shipperName) 135 | { 136 | $this->shipperName = $shipperName; 137 | } 138 | 139 | /** 140 | * Aliyun_Log_Models_CreateShipperRequest Constructor 141 | * 142 | */ 143 | public function __construct($project) { 144 | parent::__construct ( $project ); 145 | } 146 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListACLsRequest.php: -------------------------------------------------------------------------------- 1 | offset = $offset; 26 | $this->size = $size; 27 | $this->principleId = $principleId; 28 | } 29 | 30 | public function getOffset(){ 31 | return $this->offset; 32 | } 33 | public function setOffset($offset){ 34 | $this->offset = $offset; 35 | } 36 | 37 | public function getSize(){ 38 | return $this->size; 39 | } 40 | public function setSize($size){ 41 | $this->size = $size; 42 | } 43 | 44 | public function getPrincipleId(){ 45 | return $this->principleId; 46 | } 47 | public function setPrincipleId($principleId){ 48 | $this->principleId = $principleId; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListConfigsRequest.php: -------------------------------------------------------------------------------- 1 | configName = $configName; 27 | $this->offset = $offset; 28 | $this->size = $size; 29 | } 30 | 31 | public function getConfigName(){ 32 | return $this->configName; 33 | } 34 | 35 | public function setConfigName($configName){ 36 | $this->configName = $configName; 37 | } 38 | 39 | public function getOffset(){ 40 | return $this->offset; 41 | } 42 | 43 | public function setOffset($offset){ 44 | $this->offset = $offset; 45 | } 46 | 47 | public function getSize(){ 48 | return $this->size; 49 | } 50 | 51 | public function setSize($size){ 52 | $this->size = $size; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListLogstoresRequest.php: -------------------------------------------------------------------------------- 1 | groupName = $groupName; 26 | $this->offset = $offset; 27 | $this->size = $size; 28 | } 29 | 30 | public function getGroupName(){ 31 | return $this->groupName; 32 | } 33 | 34 | public function setGroupName($groupName){ 35 | $this->groupName = $groupName; 36 | } 37 | 38 | public function getOffset(){ 39 | return $this->offset; 40 | } 41 | 42 | public function setOffset($offset){ 43 | $this->offset = $offset; 44 | } 45 | 46 | public function getSize(){ 47 | return $this->size; 48 | } 49 | 50 | public function setSize($size){ 51 | $this->size = $size; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListShardsRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 25 | } 26 | 27 | public function getLogstore(){ 28 | return $this->logstore; 29 | } 30 | 31 | public function setLogstore($logstore){ 32 | $this->logstore = $logstore; 33 | } 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListShipperRequest.php: -------------------------------------------------------------------------------- 1 | logStore; 26 | } 27 | 28 | /** 29 | * @param mixed $logStore 30 | */ 31 | public function setLogStore($logStore) 32 | { 33 | $this->logStore = $logStore; 34 | } 35 | 36 | 37 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ListTopicsRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 42 | $this->token = $token; 43 | $this->line = $line; 44 | } 45 | 46 | /** 47 | * Get logstroe name 48 | * 49 | * @return string logstore name 50 | */ 51 | public function getLogstore() { 52 | return $this->logstore; 53 | } 54 | 55 | /** 56 | * Set logstore name 57 | * 58 | * @param string $logstore 59 | * logstore name 60 | */ 61 | public function setLogstore($logstore) { 62 | $this->logstore = $logstore; 63 | } 64 | 65 | 66 | /** 67 | * Get start token to list topics 68 | * 69 | * @return string start token to list topics 70 | */ 71 | public function getToken() { 72 | return $this->token; 73 | } 74 | 75 | /** 76 | * Set start token to list topics 77 | * 78 | * @param string $token start token to list topics 79 | */ 80 | public function setToken($token) { 81 | $this->token = $token; 82 | } 83 | 84 | 85 | /** 86 | * Get max topic counts to return 87 | * 88 | * @return integer max topic counts to return 89 | */ 90 | public function getLine() { 91 | return $this->line; 92 | } 93 | 94 | /** 95 | * Set max topic counts to return 96 | * 97 | * @param integer $line max topic counts to return 98 | */ 99 | public function setLine($line) { 100 | $this->line = $line; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/MergeShardsRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 25 | $this->shardId = $shardId; 26 | } 27 | 28 | public function getLogstore(){ 29 | return $this->logstore; 30 | } 31 | 32 | public function setLogstore($logstore){ 33 | $this->logstore = $logstore; 34 | } 35 | 36 | public function getShardId(){ 37 | return $this->shardId; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/ProjectSqlRequest.php: -------------------------------------------------------------------------------- 1 | query = $query; 35 | $this->powerSql = $powerSql; 36 | } 37 | 38 | 39 | 40 | /** 41 | * Get user defined query 42 | * 43 | * @return string user defined query 44 | */ 45 | public function getQuery() { 46 | return $this->query; 47 | } 48 | 49 | 50 | /** 51 | * Get request powerSql flag 52 | * 53 | * @reutnr bool powerSql flag 54 | */ 55 | public function getPowerSql() { 56 | return $this -> powerSql; 57 | } 58 | 59 | /** 60 | * Set request powerSql flag 61 | * 62 | * @param bool $powerSql 63 | * powerSql flag 64 | * 65 | */ 66 | public function setPowerSql($powerSql) 67 | { 68 | $this -> powerSql = $powerSql; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/PutLogsRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 59 | $this->topic = $topic; 60 | $this->source = $source; 61 | $this->logitems = $logitems; 62 | $this->shardKey = $shardKey; 63 | } 64 | 65 | /** 66 | * Get logstroe name 67 | * 68 | * @return string logstore name 69 | */ 70 | public function getLogstore() { 71 | return $this->logstore; 72 | } 73 | 74 | /** 75 | * Set logstore name 76 | * 77 | * @param string $logstore 78 | * logstore name 79 | */ 80 | public function setLogstore($logstore) { 81 | $this->logstore = $logstore; 82 | } 83 | 84 | /** 85 | * Get topic name 86 | * 87 | * @return string topic name 88 | */ 89 | public function getTopic() { 90 | return $this->topic; 91 | } 92 | 93 | /** 94 | * Set topic name 95 | * 96 | * @param string $topic 97 | * topic name 98 | */ 99 | public function setTopic($topic) { 100 | $this->topic = $topic; 101 | } 102 | 103 | /** 104 | * Get all the log data 105 | * 106 | * @return array LogItem array, log data 107 | */ 108 | public function getLogItems() { 109 | return $this->logitems; 110 | } 111 | 112 | /** 113 | * Set the log data 114 | * 115 | * @param array $logitems 116 | * LogItem array, log data 117 | */ 118 | public function setLogItems($logitems) { 119 | $this->logitems = $logitems; 120 | } 121 | 122 | /** 123 | * Get log source 124 | * 125 | * @return string log source 126 | */ 127 | public function getSource() { 128 | return $this->source; 129 | } 130 | 131 | /** 132 | * set log source 133 | * 134 | * @param string $source 135 | * log source 136 | */ 137 | public function setSource($source) { 138 | $this->source = $source; 139 | } 140 | /** 141 | * set shard key 142 | * 143 | * @param string shardkey 144 | */ 145 | public function setShardKey($key){ 146 | $this -> shardKey=$key; 147 | } 148 | /** 149 | * get shard key 150 | * 151 | * @return string shardKey 152 | */ 153 | public function getShardKey(){ 154 | return $this ->shardKey; 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/RemoveConfigFromMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | groupName = $groupName; 24 | $this->configName = $configName; 25 | } 26 | public function getGroupName(){ 27 | return $this->groupName; 28 | } 29 | public function setGroupName($groupName){ 30 | $this->groupName = $groupName; 31 | } 32 | 33 | public function getConfigName(){ 34 | return $this->configName; 35 | } 36 | public function setConfigName($configName){ 37 | $this->configName = $configName; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/Request.php: -------------------------------------------------------------------------------- 1 | project = $project; 27 | } 28 | 29 | /** 30 | * Get project name 31 | * 32 | * @return string project name 33 | */ 34 | public function getProject() { 35 | return $this->project; 36 | } 37 | 38 | /** 39 | * Set project name 40 | * 41 | * @param string $project 42 | * project name 43 | */ 44 | public function setProject($project) { 45 | $this->project = $project; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/RetryShipperTasksRequest.php: -------------------------------------------------------------------------------- 1 | taskLists; 20 | } 21 | 22 | /** 23 | * @param mixed $taskLists 24 | */ 25 | public function setTaskLists($taskLists) 26 | { 27 | $this->taskLists = $taskLists; 28 | } 29 | 30 | /** 31 | * @return mixed 32 | */ 33 | public function getLogStore() 34 | { 35 | return $this->logStore; 36 | } 37 | 38 | /** 39 | * @param mixed $logStore 40 | */ 41 | public function setLogStore($logStore) 42 | { 43 | $this->logStore = $logStore; 44 | } 45 | 46 | 47 | /** 48 | * @return mixed 49 | */ 50 | public function getShipperName() 51 | { 52 | return $this->shipperName; 53 | } 54 | 55 | /** 56 | * @param mixed $shipperName 57 | */ 58 | public function setShipperName($shipperName) 59 | { 60 | $this->shipperName = $shipperName; 61 | } 62 | 63 | /** 64 | * Aliyun_Log_Models_CreateShipperRequest Constructor 65 | * 66 | */ 67 | public function __construct($project) { 68 | parent::__construct ( $project ); 69 | } 70 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/SplitShardRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 25 | $this->shardId = $shardId; 26 | $this->midHash = $midHash; 27 | } 28 | 29 | public function getLogstore(){ 30 | return $this->logstore; 31 | } 32 | 33 | public function setLogstore($logstore){ 34 | $this->logstore = $logstore; 35 | } 36 | 37 | public function getShardId(){ 38 | return $this->shardId; 39 | } 40 | public function getMidHash(){ 41 | return $this->midHash; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/UpdateACLRequest.php: -------------------------------------------------------------------------------- 1 | acl = $acl; 23 | } 24 | 25 | public function getAcl(){ 26 | return $this->acl; 27 | } 28 | public function setAcl($acl){ 29 | $this->acl = $acl; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/UpdateConfigRequest.php: -------------------------------------------------------------------------------- 1 | config = $config; 23 | } 24 | 25 | public function getConfig(){ 26 | return $this->config; 27 | } 28 | 29 | public function setConfig($config){ 30 | $this->config = $config; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/UpdateLogstoreRequest.php: -------------------------------------------------------------------------------- 1 | logstore = $logstore; 27 | $this -> ttl = $ttl; 28 | $this -> shardCount = $shardCount; 29 | } 30 | public function getLogstore() 31 | { 32 | return $this -> logstore; 33 | } 34 | public function getTtl() 35 | { 36 | return $this -> ttl; 37 | } 38 | public function getShardCount() 39 | { 40 | return $this -> shardCount; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/UpdateMachineGroupRequest.php: -------------------------------------------------------------------------------- 1 | machineGroup = $machineGroup; 23 | } 24 | 25 | public function getMachineGroup(){ 26 | return $this->machineGroup; 27 | } 28 | 29 | public function setMachineGroup($machineGroup){ 30 | $this->machineGroup = $machineGroup; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Request/UpdateShipperRequest.php: -------------------------------------------------------------------------------- 1 | logStore; 24 | } 25 | 26 | /** 27 | * @param mixed $logStore 28 | */ 29 | public function setLogStore($logStore) 30 | { 31 | $this->logStore = $logStore; 32 | } 33 | 34 | /** 35 | * Aliyun_Log_Models_CreateShipperRequest Constructor 36 | * 37 | */ 38 | public function __construct($project) { 39 | parent::__construct ( $project ); 40 | } 41 | 42 | /** 43 | * @return mixed 44 | */ 45 | public function getShipperName() 46 | { 47 | return $this->shipperName; 48 | } 49 | 50 | /** 51 | * @param mixed $shipperName 52 | */ 53 | public function setShipperName($shipperName) 54 | { 55 | $this->shipperName = $shipperName; 56 | } 57 | 58 | /** 59 | * @return mixed 60 | */ 61 | public function getTargetType() 62 | { 63 | return $this->targetType; 64 | } 65 | 66 | /** 67 | * @param mixed $targetType 68 | */ 69 | public function setTargetType($targetType) 70 | { 71 | $this->targetType = $targetType; 72 | } 73 | 74 | /** 75 | * @return mixed 76 | */ 77 | public function getTargetConfigration() 78 | { 79 | return $this->targetConfigration; 80 | } 81 | 82 | /** 83 | * @param mixed $targetConfigration 84 | */ 85 | public function setTargetConfigration($targetConfigration) 86 | { 87 | $this->targetConfigration = $targetConfigration; 88 | } 89 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ApplyConfigToMachineGroupResponse.php: -------------------------------------------------------------------------------- 1 | logPackageList = $resp->getLogGroupListArray(); 34 | $this->nextCursor = (isset($header['x-log-cursor']))?$header['x-log-cursor']:null; 35 | 36 | } 37 | 38 | public function getLogPackageList(){ 39 | return $this->logPackageList; 40 | } 41 | 42 | public function getNextCursor(){ 43 | return $this->nextCursor; 44 | } 45 | 46 | public function getCount() { 47 | return count($this->logPackageList); 48 | } 49 | 50 | public function getLogPackage($index){ 51 | if($index<$this->getCount()){ 52 | return $this->logPackageList[$index]; 53 | } 54 | else{ 55 | throw new OutOfBoundsException('Index must less than size of logPackageList'); 56 | } 57 | } 58 | 59 | public function getLogGroupList(){ 60 | return $this->logPackageList; 61 | } 62 | 63 | public function getLogGroup($index){ 64 | if($index<$this->getCount()){ 65 | return $this->logPackageList[$index]; 66 | } 67 | else{ 68 | throw new OutOfBoundsException('Index must less than size of logPackageList'); 69 | } 70 | } 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/CreateACLResponse.php: -------------------------------------------------------------------------------- 1 | aclId = $resp['aclId']; 28 | } 29 | public function getAclId(){ 30 | return $this->aclId; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/CreateConfigResponse.php: -------------------------------------------------------------------------------- 1 | acl = null; 29 | if($resp!==null){ 30 | $this->acl = new Aliyun_Log_Models_ACL(); 31 | $this->acl->setFromArray($resp); 32 | } 33 | } 34 | 35 | public function getAcl(){ 36 | return $this->acl; 37 | } 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetConfigResponse.php: -------------------------------------------------------------------------------- 1 | config = new Aliyun_Log_Models_Config(); 30 | $this->config->setFromArray($resp); 31 | } 32 | 33 | public function getConfig(){ 34 | return $this->config; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetCursorResponse.php: -------------------------------------------------------------------------------- 1 | cursor = $resp['cursor']; 31 | } 32 | 33 | /** 34 | * Get cursor from the response 35 | * 36 | * @return string cursor 37 | */ 38 | public function getCursor(){ 39 | return $this->cursor; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetHistogramsResponse.php: -------------------------------------------------------------------------------- 1 | 33 | 34 | /** 35 | * Aliyun_Log_Models_GetHistogramsResponse constructor 36 | * 37 | * @param array $resp 38 | * GetHistogramsResponse HTTP response body 39 | * @param array $header 40 | * GetHistogramsResponse HTTP response header 41 | */ 42 | public function __construct($resp, $header) { 43 | parent::__construct ( $header ); 44 | $this->progress = $header ['x-log-progress']; 45 | $this->count = $header ['x-log-count']; 46 | $this->histograms = array (); 47 | foreach ( $resp as $data ) 48 | $this->histograms [] = new Aliyun_Log_Models_Histogram ( $data ['from'], $data ['to'], $data ['count'], $data ['progress'] ); 49 | } 50 | 51 | /** 52 | * Check if the histogram is completed 53 | * 54 | * @return bool true if this histogram is completed 55 | */ 56 | public function isCompleted() { 57 | return $this->progress == 'Complete'; 58 | } 59 | 60 | /** 61 | * Get total logs' count that current query hits 62 | * 63 | * @return integer total logs' count that current query hits 64 | */ 65 | public function getTotalCount() { 66 | return $this->count; 67 | } 68 | 69 | /** 70 | * Get histograms on the requested time range: [from, to) 71 | * 72 | * @return array Aliyun_Log_Models_Histogram array, histograms on the requested time range 73 | */ 74 | public function getHistograms() { 75 | return $this->histograms; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetLogsResponse.php: -------------------------------------------------------------------------------- 1 | count = $header['x-log-count']; 64 | $this->progress = $header ['x-log-progress']; 65 | $this->processedRows = $header['x-log-processed-rows']; 66 | $this->elapsedMilli = $header['x-log-elapsed-millisecond']??0; 67 | $this->cpuSec = $header['x-log-cpu-sec']??0; 68 | $this->cpuCores = $header['x-log-cpu-cores']??0; 69 | $this->logs = array (); 70 | foreach ( $resp as $data ) { 71 | $contents = $data; 72 | $time = $data ['__time__']; 73 | $source = $data ['__source__']; 74 | unset ( $contents ['__time__'] ); 75 | unset ( $contents ['__source__'] ); 76 | $this->logs [] = new Aliyun_Log_Models_QueriedLog ( $time, $source, $contents ); 77 | } 78 | } 79 | 80 | /** 81 | * Get log number from the response 82 | * 83 | * @return integer log number 84 | */ 85 | public function getCount() { 86 | return $this->count; 87 | } 88 | 89 | /** 90 | * Check if the get logs query is completed 91 | * 92 | * @return bool true if this logs query is completed 93 | */ 94 | public function isCompleted() { 95 | return $this->progress == 'Complete'; 96 | } 97 | 98 | /** 99 | * Get all logs from the response 100 | * 101 | * @return array Aliyun_Log_Models_QueriedLog array, all log data 102 | */ 103 | public function getLogs() { 104 | return $this->logs; 105 | } 106 | 107 | /** 108 | * get proccesedRows 109 | */ 110 | public function getProcessedRows() 111 | { 112 | return $this ->processedRows; 113 | } 114 | 115 | /** 116 | * get elapsedMilli 117 | */ 118 | public function getElapsedMilli() 119 | { 120 | return $this -> elapsedMilli; 121 | } 122 | 123 | /** 124 | * get cpuSec 125 | */ 126 | public function getCpuSec() 127 | { 128 | return $this->cpuSec; 129 | } 130 | 131 | /** 132 | * get cpuCores 133 | */ 134 | public function getCpuCores() 135 | { 136 | return $this-> cpuCores; 137 | } 138 | } 139 | 140 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetMachineGroupResponse.php: -------------------------------------------------------------------------------- 1 | machineGroup = new Aliyun_Log_Models_MachineGroup(); 29 | $this->machineGroup->setFromArray($resp); 30 | } 31 | 32 | public function getMachineGroup(){ 33 | return $this->machineGroup; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetMachineResponse.php: -------------------------------------------------------------------------------- 1 | machine = new Aliyun_Log_Models_Machine(); 30 | $this->machine->setFromArray($resp); 31 | 32 | } 33 | 34 | public function getMachine(){ 35 | return $this->machine; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetShipperConfigResponse.php: -------------------------------------------------------------------------------- 1 | shipperName; 23 | } 24 | 25 | /** 26 | * @param mixed $shipperName 27 | */ 28 | public function setShipperName($shipperName) 29 | { 30 | $this->shipperName = $shipperName; 31 | } 32 | 33 | /** 34 | * @return mixed 35 | */ 36 | public function getTargetType() 37 | { 38 | return $this->targetType; 39 | } 40 | 41 | /** 42 | * @param mixed $targetType 43 | */ 44 | public function setTargetType($targetType) 45 | { 46 | $this->targetType = $targetType; 47 | } 48 | 49 | /** 50 | * @return mixed 51 | */ 52 | public function getTargetConfigration() 53 | { 54 | return $this->targetConfigration; 55 | } 56 | 57 | /** 58 | * @param mixed $targetConfigration 59 | */ 60 | public function setTargetConfigration($targetConfigration) 61 | { 62 | $this->targetConfigration = $targetConfigration; 63 | } 64 | 65 | 66 | 67 | /** 68 | * Aliyun_Log_Models_GetShipperConfigResponse constructor 69 | * 70 | * @param array $resp 71 | * GetLogs HTTP response body 72 | * @param array $header 73 | * GetLogs HTTP response header 74 | */ 75 | public function __construct($resp, $header) { 76 | parent::__construct ( $header ); 77 | $this->shipperName = $resp['shipperName']; 78 | $this->targetConfigration = $resp['targetConfiguration']; 79 | $this->targetType = $resp['targetType']; 80 | } 81 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/GetShipperTasksResponse.php: -------------------------------------------------------------------------------- 1 | total = $resp['total']; 27 | $this->count = $resp['count']; 28 | $this->statistics = $resp['statistics']; 29 | $this->tasks = $resp['tasks']; 30 | } 31 | 32 | /** 33 | * @return mixed 34 | */ 35 | public function getCount() 36 | { 37 | return $this->count; 38 | } 39 | 40 | /** 41 | * @param mixed $count 42 | */ 43 | public function setCount($count) 44 | { 45 | $this->count = $count; 46 | } 47 | 48 | /** 49 | * @return mixed 50 | */ 51 | public function getTotal() 52 | { 53 | return $this->total; 54 | } 55 | 56 | /** 57 | * @param mixed $total 58 | */ 59 | public function setTotal($total) 60 | { 61 | $this->total = $total; 62 | } 63 | 64 | /** 65 | * @return mixed 66 | */ 67 | public function getStatistics() 68 | { 69 | return $this->statistics; 70 | } 71 | 72 | /** 73 | * @param mixed $statistics 74 | */ 75 | public function setStatistics($statistics) 76 | { 77 | $this->statistics = $statistics; 78 | } 79 | 80 | /** 81 | * @return mixed 82 | */ 83 | public function getTasks() 84 | { 85 | return $this->tasks; 86 | } 87 | 88 | /** 89 | * @param mixed $tasks 90 | */ 91 | public function setTasks($tasks) 92 | { 93 | $this->tasks = $tasks; 94 | } 95 | 96 | 97 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListACLsResponse.php: -------------------------------------------------------------------------------- 1 | setFromArray($value); 33 | $aclArr[]=$aclObj; 34 | } 35 | } 36 | $this->acls = $aclArr; 37 | } 38 | 39 | public function getAcls(){ 40 | return $this->acls; 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListConfigsResponse.php: -------------------------------------------------------------------------------- 1 | size = $resp['total']; 28 | $this->configs = $resp['configs']; 29 | } 30 | 31 | public function getSize(){ 32 | return count($this->configs); 33 | } 34 | 35 | public function getTotal(){ 36 | return $this ->total; 37 | } 38 | 39 | public function getConfigs(){ 40 | return $this->configs; 41 | } 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListLogstoresResponse.php: -------------------------------------------------------------------------------- 1 | count = $resp ['total']; 37 | $this->logstores = $resp ['logstores']; 38 | } 39 | 40 | /** 41 | * Get total count of logstores from the response 42 | * 43 | * @return integer the number of total logstores from the response 44 | */ 45 | public function getCount() { 46 | return $this->count; 47 | } 48 | 49 | /** 50 | * Get all the logstores from the response 51 | * 52 | * @return array all logstore 53 | */ 54 | public function getLogstores() { 55 | return $this->logstores; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListMachineGroupsResponse.php: -------------------------------------------------------------------------------- 1 | offset = $resp['offset']; 30 | $this->size = $resp['size']; 31 | $this->machineGroups = $resp['machinegroups']; 32 | } 33 | 34 | public function getOffset(){ 35 | return $this->offset; 36 | } 37 | 38 | public function getSize(){ 39 | return $this->size; 40 | } 41 | 42 | public function getMachineGroups(){ 43 | return $this->machineGroups; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListShardsResponse.php: -------------------------------------------------------------------------------- 1 | $value){ 29 | $this->shardIds[] = $value['shardID']; 30 | $this->shards[] = new Aliyun_Log_Models_Shard($value['shardID'],$value["status"],$value["inclusiveBeginKey"],$value["exclusiveEndKey"],$value["createTime"]); 31 | } 32 | } 33 | 34 | public function getShardIds(){ 35 | return $this-> shardIds; 36 | } 37 | public function getShards() 38 | { 39 | return $this -> shards; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListShipperResponse.php: -------------------------------------------------------------------------------- 1 | count; 21 | } 22 | 23 | /** 24 | * @param mixed $count 25 | */ 26 | public function setCount($count) 27 | { 28 | $this->count = $count; 29 | } 30 | 31 | /** 32 | * @return mixed 33 | */ 34 | public function getTotal() 35 | { 36 | return $this->total; 37 | } 38 | 39 | /** 40 | * @param mixed $total 41 | */ 42 | public function setTotal($total) 43 | { 44 | $this->total = $total; 45 | } 46 | 47 | /** 48 | * @return mixed 49 | */ 50 | public function getShippers() 51 | { 52 | return $this->shippers; 53 | } 54 | 55 | /** 56 | * @param mixed $shippers 57 | */ 58 | public function setShippers($shippers) 59 | { 60 | $this->shippers = $shippers; 61 | } 62 | 63 | 64 | /** 65 | * Aliyun_Log_Models_ListShipperResponse constructor 66 | * 67 | * @param array $resp 68 | * GetLogs HTTP response body 69 | * @param array $header 70 | * GetLogs HTTP response header 71 | */ 72 | public function __construct($resp, $header) { 73 | parent::__construct ( $header ); 74 | $this->count = $resp['count']; 75 | $this->total = $resp['total']; 76 | $this->shippers = $resp['shipper']; 77 | } 78 | } -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListSqlInstanceResponse.php: -------------------------------------------------------------------------------- 1 | sqlInstances [] = new Aliyun_Log_Models_SqlInstance($name,$cu,$createTime,$updateTime); 38 | } 39 | } 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ListTopicsResponse.php: -------------------------------------------------------------------------------- 1 | count = $header['x-log-count']; 43 | $this->topics = $resp ; 44 | $this->nextToken = isset ( $header['x-log-nexttoken'] ) ? $header['x-log-nexttoken'] : NULL; 45 | } 46 | 47 | /** 48 | * Get the number of all the topics from the response 49 | * 50 | * @return integer the number of all the topics from the response 51 | */ 52 | public function getCount() { 53 | return $this->count; 54 | } 55 | 56 | /** 57 | * Get all the topics from the response 58 | * 59 | * @return array topics list 60 | */ 61 | public function getTopics() { 62 | return $this->topics; 63 | } 64 | 65 | /** 66 | * Return the next token from the response. If there is no more topic to list, it will return None 67 | * 68 | * @return string/null next token used to list more topics 69 | */ 70 | public function getNextToken() { 71 | return $this->nextToken; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/LogStoreSqlResponse.php: -------------------------------------------------------------------------------- 1 | count = $header['x-log-count']; 64 | $this->progress = $header ['x-log-progress']; 65 | $this->processedRows = $header['x-log-processed-rows']; 66 | $this->elapsedMilli = $header['x-log-elapsed-millisecond']; 67 | $this->cpuSec = $header['x-log-cpu-sec']??0; 68 | $this->cpuCores = $header['x-log-cpu-cores']??0; 69 | $this->logs = array (); 70 | foreach ( $resp as $data ) { 71 | $contents = $data; 72 | $time = $data ['__time__']; 73 | $source = $data ['__source__']; 74 | unset ( $contents ['__time__'] ); 75 | unset ( $contents ['__source__'] ); 76 | $this->logs [] = new Aliyun_Log_Models_QueriedLog ( $time, $source, $contents ); 77 | } 78 | } 79 | 80 | /** 81 | * Get log number from the response 82 | * 83 | * @return integer log number 84 | */ 85 | public function getCount() { 86 | return $this->count; 87 | } 88 | 89 | /** 90 | * Check if the get logs query is completed 91 | * 92 | * @return bool true if this logs query is completed 93 | */ 94 | public function isCompleted() { 95 | return $this->progress == 'Complete'; 96 | } 97 | 98 | /** 99 | * Get all logs from the response 100 | * 101 | * @return array Aliyun_Log_Models_QueriedLog array, all log data 102 | */ 103 | public function getLogs() { 104 | return $this->logs; 105 | } 106 | 107 | /** 108 | * get proccesedRows 109 | */ 110 | public function getProcessedRows() 111 | { 112 | return $this ->processedRows; 113 | } 114 | 115 | /** 116 | * get elapsedMilli 117 | */ 118 | public function getElapsedMilli() 119 | { 120 | return $this -> elapsedMilli; 121 | } 122 | 123 | /** 124 | * get cpuSec 125 | */ 126 | public function getCpuSec() 127 | { 128 | return $this->cpuSec; 129 | } 130 | 131 | /** 132 | * get cpuCores 133 | */ 134 | public function getCpuCores() 135 | { 136 | return $this-> cpuCores; 137 | } 138 | } 139 | 140 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/ProjectSqlResponse.php: -------------------------------------------------------------------------------- 1 | count = $header['x-log-count']; 64 | $this->progress = $header ['x-log-progress']; 65 | $this->processedRows = $header['x-log-processed-rows']; 66 | $this->elapsedMilli = $header['x-log-elapsed-millisecond']; 67 | $this->cpuSec = $header['x-log-cpu-sec']??0; 68 | $this->cpuCores = $header['x-log-cpu-cores']??0; 69 | $this->logs = array (); 70 | foreach ( $resp as $data ) { 71 | $contents = $data; 72 | $time = $data ['__time__']; 73 | $source = $data ['__source__']; 74 | unset ( $contents ['__time__'] ); 75 | unset ( $contents ['__source__'] ); 76 | $this->logs [] = new Aliyun_Log_Models_QueriedLog ( $time, $source, $contents ); 77 | } 78 | } 79 | 80 | /** 81 | * Get log number from the response 82 | * 83 | * @return integer log number 84 | */ 85 | public function getCount() { 86 | return $this->count; 87 | } 88 | 89 | /** 90 | * Check if the get logs query is completed 91 | * 92 | * @return bool true if this logs query is completed 93 | */ 94 | public function isCompleted() { 95 | return $this->progress == 'Complete'; 96 | } 97 | 98 | /** 99 | * Get all logs from the response 100 | * 101 | * @return array Aliyun_Log_Models_QueriedLog array, all log data 102 | */ 103 | public function getLogs() { 104 | return $this->logs; 105 | } 106 | 107 | /** 108 | * get proccesedRows 109 | */ 110 | public function getProcessedRows() 111 | { 112 | return $this ->processedRows; 113 | } 114 | 115 | /** 116 | * get elapsedMilli 117 | */ 118 | public function getElapsedMilli() 119 | { 120 | return $this -> elapsedMilli; 121 | } 122 | 123 | /** 124 | * get cpuSec 125 | */ 126 | public function getCpuSec() 127 | { 128 | return $this->cpuSec; 129 | } 130 | 131 | /** 132 | * get cpuCores 133 | */ 134 | public function getCpuCores() 135 | { 136 | return $this-> cpuCores; 137 | } 138 | } 139 | 140 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/PutLogsResponse.php: -------------------------------------------------------------------------------- 1 | time = $time; 42 | $this->source = $source; 43 | $this->contents = $contents; // deep copy 44 | } 45 | 46 | /** 47 | * Get log source 48 | * 49 | * @return string log source 50 | */ 51 | public function getSource() { 52 | return $this->source; 53 | } 54 | 55 | /** 56 | * Get log time 57 | * 58 | * @return integer log time 59 | */ 60 | public function getTime() { 61 | return $this->time; 62 | } 63 | 64 | /** 65 | * Get log contents, content many key/value pair. 66 | * 67 | * @return array log contents 68 | */ 69 | public function getContents() { 70 | return $this->contents; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/RemoveConfigFromMachineGroupResponse.php: -------------------------------------------------------------------------------- 1 | headers = $headers; 27 | } 28 | 29 | /** 30 | * Get all http headers 31 | * 32 | * @return array HTTP response header 33 | */ 34 | public function getAllHeaders() { 35 | return $this->headers; 36 | } 37 | 38 | /** 39 | * Get specified http header 40 | * 41 | * @param string $key 42 | * key to get header 43 | * 44 | * @return string HTTP response header. '' will be return if not set. 45 | */ 46 | public function getHeader($key) { 47 | return isset ($this->headers[$key]) ? $this->headers [$key] : ''; 48 | } 49 | 50 | /** 51 | * Get the request id of the response. '' will be return if not set. 52 | * 53 | * @return string request id 54 | */ 55 | public function getRequestId() { 56 | return isset ( $this->headers ['x-log-requestid'] ) ? $this->headers ['x-log-requestid'] : ''; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/RetryShipperTasksResponse.php: -------------------------------------------------------------------------------- 1 | shardId=$shardId; 49 | $this->status = $status; 50 | $this->inclusiveBeginKey = $inclusiveBeginKey; 51 | $this->exclusiveEndKey = $exclusiveEndKey; 52 | $this->createTime = $createTime; 53 | } 54 | 55 | /** 56 | * Get the shardId 57 | * 58 | * @return integer the shard id 59 | */ 60 | public function getShardId(){ 61 | return $this -> shardId; 62 | } 63 | /** 64 | * Get the shard status 65 | * 66 | * @return string the shard status 67 | */ 68 | public function getStatus(){ 69 | return $this -> status; 70 | } 71 | /** 72 | * Get the shard inclusive begin key 73 | * 74 | * @return string inclusive begin key 75 | */ 76 | public function getInclusiveBeginKey(){ 77 | return $this -> inclusiveBeginKey; 78 | } 79 | /** 80 | * Get the shard exclusive begin key 81 | * 82 | * @return string exclusive begin key 83 | */ 84 | public function getExclusiveBeginKey(){ 85 | return $this -> exclusiveBeginKey; 86 | } 87 | /** 88 | * Get the shard create time 89 | * 90 | * @return integer createTime 91 | */ 92 | public function getCreateTime(){ 93 | return $this -> createTime; 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/SqlInstance.php: -------------------------------------------------------------------------------- 1 | name = $name; 43 | $this -> cu = $cu; 44 | $this -> createTime = $createTime; 45 | $this -> updateTime = $updateTime; 46 | } 47 | public function getName(){ 48 | return $this -> name; 49 | } 50 | public function getCu(){ 51 | return $this -> cu; 52 | } 53 | public function getCreateTime(){ 54 | return $this -> createTime; 55 | } 56 | public function getUpdateTime(){ 57 | return $this -> updateTime; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Aliyun/Log/Models/Response/UpdaetSqlInstanceResponse.php: -------------------------------------------------------------------------------- 1 | credentials = new Aliyun_Log_Models_Credentials($accessKeyId, $accessKeySecret, $securityToken); 26 | } 27 | /** 28 | * @return Aliyun_Log_Models_Credentials 29 | */ 30 | public function getCredentials(): Aliyun_Log_Models_Credentials 31 | { 32 | return $this->credentials; 33 | } 34 | } -------------------------------------------------------------------------------- /License.txt: -------------------------------------------------------------------------------- 1 | 阿里云计算日志服务软件开发工具包Python语言版 2 | Aliyun Log Service SDK for PHP 3 | 4 | 版权所有 (C)阿里云计算有限公司 5 | Copyright (C) Alibaba Cloud Computing 6 | All rights reserved. 7 | http://www.aliyun.com 8 | 9 | ============================================================================== 10 | 本软件包还包含多个第三方软件库。使用本软件包代表你同时同意如下第三方软件包许可。 11 | 12 | This distribution contains multiple components, someof which fall 13 | under different licenses. By using this package or any of the bundled 14 | components enumerated below, you agree to be bound by the conditions 15 | of the license for each respective component. 16 | 17 | protobuf 18 | ------------------ 19 | License:Simplified BSD License (http://opensource.org/licenses/BSD-2-Clause) 20 | Website:https://github.com/bramp/protoc-gen-php 21 | 22 | 23 | requestcore 24 | ----------------- 25 | License: BSD License (http://opensource.org/licenses/bsd-license.php) 26 | Website:https://github.com/pzb/requestcore/blob/master/requestcore.class.php 27 | -------------------------------------------------------------------------------- /Log_Autoload.php: -------------------------------------------------------------------------------- 1 | 5) 13 | $classPath = array_slice($classPath, 0, 5); 14 | if(strpos($className, 'Request') !== false){ 15 | $lastPath = end($classPath); 16 | array_pop($classPath); 17 | array_push($classPath,'Request'); 18 | array_push($classPath, $lastPath); 19 | } 20 | if(strpos($className, 'Response') !== false){ 21 | $lastPath = end($classPath); 22 | array_pop($classPath); 23 | array_push($classPath,'Response'); 24 | array_push($classPath, $lastPath); 25 | } 26 | $filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php'; 27 | if (file_exists($filePath)) 28 | require_once($filePath); 29 | } 30 | } 31 | 32 | spl_autoload_register('Aliyun_Log_PHP_Client_Autoload'); 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Aliyun Log Service PHP SDK 2 | 3 | ## API VERSION 4 | 5 | 0.6.4 6 | 7 | ## SDK RELEASE TIME 8 | 9 | 2024-05-28 10 | 11 | ## Introduction 12 | 13 | Log Service SDK for PHP,used to set/get log data to Aliyun Log Service(www.aliyun.com/product/sls). 14 | 15 | API Reference: [中文](https://help.aliyun.com/document_detail/29007.html) [ENGLISH](https://www.alibabacloud.com/help/doc-detail/29007.htm) 16 | 17 | 18 | ### Summary 19 | 20 | 1. Request-Request style Restful API interface 21 | 2. Use Protocol buffer to send data 22 | 3. Data can be compressed when sending to server 23 | 4. Aliyun_Log_Exception will be thrown if any error happen 24 | 5. Introduce simple logger for submit log easily with different levels 25 | 6. Create local log cache to submit several logs in single http post. 26 | 27 | ## Environment Requirement 28 | 29 | 1. PHP 7.1.7 and later:Master Branch 30 | 2. PHP 5.2+:[Tree v1.0](https://github.com/aliyun/aliyun-log-php-sdk/tree/v1.0) 31 | 32 | -------------------------------------------------------------------------------- /build.md: -------------------------------------------------------------------------------- 1 | Copyright 2 | ========= 3 | 4 | Copyright (C) Alibaba Cloud Computing 5 | All rights reserved 6 | 7 | 8 | Aliyun SLS Client SDK for PHP 9 | ============================= 10 | 11 | This project provides SLS client SDK libraries that make it easy to access Simple Log Service put logs, get log stores, get topics, get histograms and get logs. For more information about the SDK, you can see about the html files in the docs file. 12 | The SDK supports PHP version>=5.2. 13 | 14 | 15 | Sample 16 | ====== 17 | 18 | ```PHP 19 | ListLogstores($request); 32 | var_dump($response); 33 | } catch (SLSException $ex) { 34 | var_dump($ex); 35 | } catch (Exception $ex) { 36 | var_dump($ex); 37 | } 38 | ``` 39 | 40 | First, you need to require_once Log_Autoload.php wherever Log_Autoload.php is located. 41 | Second, you need to declare Aliyun_Log_Client $client. 42 | Third, you need to build a Aliyun_Log_Models_Request $request. 43 | Fourth, you can make a function call like $client->ListLogstores($request), and get SLS response $response. 44 | In the end, you can get what you want $response. 45 | If you get SLSException, you can get the error code, error message, request id if SLS sever has a response. 46 | You can see the sample/sample.php for more information about the key client features. 47 | 48 | 49 | About the html files 50 | ==================== 51 | 52 | The html files were created by PHP Document. 53 | http://www.phpdoc.org 54 | php phpDocumentor.phar --title="SLS_PHP_SDK" --defaultpackagename="SLS_PHP_SDK" --template="responsive" -d Aliyun -t docs 55 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "readme": "README.md", 3 | "type": "library", 4 | "description": "The Php SDK of Alibaba log service", 5 | "keywords": [ 6 | "sdk", 7 | "sls", 8 | "alibaba" 9 | ], 10 | "require": { 11 | "php": ">=7.1.7" 12 | }, 13 | "require-dev": { 14 | "phpunit/phpunit": "^11.2" 15 | }, 16 | "authors": [ 17 | { 18 | "name": "Qi Zhou" 19 | }, 20 | { 21 | "name": "TingTao Sun" 22 | }, 23 | { 24 | "name": "Leiyun Ma" 25 | }, 26 | { 27 | "name": "Xin Zhang" 28 | } 29 | ], 30 | "autoload": { 31 | "files": [ 32 | "Log_Autoload.php" 33 | ] 34 | }, 35 | "name": "alibabacloud/aliyun-log-php-sdk", 36 | "license": "MIT", 37 | "version": "0.6.8" 38 | } 39 | -------------------------------------------------------------------------------- /docs/css/jquery.iviewer.css: -------------------------------------------------------------------------------- 1 | .iviewer_common { 2 | position:absolute; 3 | bottom:10px; 4 | border: 1px solid #000; 5 | height: 28px; 6 | z-index: 5000; 7 | } 8 | 9 | .iviewer_cursor { 10 | cursor: url(../img/iviewer/hand.cur) 6 8, pointer; 11 | } 12 | 13 | .iviewer_drag_cursor { 14 | cursor: url(../img/iviewer/grab.cur) 6 8, pointer; 15 | } 16 | 17 | .iviewer_button { 18 | width: 28px; 19 | cursor: pointer; 20 | background-position: center center; 21 | background-repeat: no-repeat; 22 | } 23 | 24 | .iviewer_zoom_in { 25 | left: 20px; 26 | background: url(../img/iviewer/iviewer.zoom_in.png); 27 | } 28 | 29 | .iviewer_zoom_out { 30 | left: 55px; 31 | background: url(../img/iviewer/iviewer.zoom_out.png); 32 | } 33 | 34 | .iviewer_zoom_zero { 35 | left: 90px; 36 | background: url(../img/iviewer/iviewer.zoom_zero.png); 37 | } 38 | 39 | .iviewer_zoom_fit { 40 | left: 125px; 41 | background: url(../img/iviewer/iviewer.zoom_fit.png); 42 | } 43 | 44 | .iviewer_zoom_status { 45 | left: 160px; 46 | font: 1em/28px Sans; 47 | color: #000; 48 | background-color: #fff; 49 | text-align: center; 50 | width: 60px; 51 | } 52 | 53 | .iviewer_rotate_left { 54 | left: 227px; 55 | background: #fff url(../img/iviewer/iviewer.rotate_left.png) center center no-repeat; 56 | } 57 | 58 | .iviewer_rotate_right { 59 | left: 262px; 60 | background: #fff url(../img/iviewer/iviewer.rotate_right.png) center center no-repeat; 61 | } 62 | 63 | .viewer 64 | { 65 | width: 100%; 66 | height: 500px; 67 | position: relative; 68 | background: transparent url('../img/loader.gif') no-repeat center center; 69 | } 70 | 71 | .viewer img 72 | { 73 | max-width: none; 74 | } 75 | 76 | .wrapper 77 | { 78 | overflow: hidden; 79 | } 80 | 81 | .iviewer_common 82 | { 83 | border: 0; 84 | bottom: auto; 85 | top: 10px; 86 | } 87 | 88 | .iviewer_zoom_status 89 | { 90 | border: 1px solid black; 91 | } 92 | -------------------------------------------------------------------------------- /docs/css/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /docs/img/apple-touch-icon-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/apple-touch-icon-114x114.png -------------------------------------------------------------------------------- /docs/img/apple-touch-icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/apple-touch-icon-72x72.png -------------------------------------------------------------------------------- /docs/img/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/apple-touch-icon.png -------------------------------------------------------------------------------- /docs/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/favicon.ico -------------------------------------------------------------------------------- /docs/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /docs/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /docs/img/icons/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/arrow_down.png -------------------------------------------------------------------------------- /docs/img/icons/arrow_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/arrow_right.png -------------------------------------------------------------------------------- /docs/img/icons/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/class.png -------------------------------------------------------------------------------- /docs/img/icons/constant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/constant.png -------------------------------------------------------------------------------- /docs/img/icons/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/favicon.ico -------------------------------------------------------------------------------- /docs/img/icons/file-php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/file-php.png -------------------------------------------------------------------------------- /docs/img/icons/file.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/file.gif -------------------------------------------------------------------------------- /docs/img/icons/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/folder.gif -------------------------------------------------------------------------------- /docs/img/icons/function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/function.png -------------------------------------------------------------------------------- /docs/img/icons/icon-folder-open-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/icon-folder-open-big.png -------------------------------------------------------------------------------- /docs/img/icons/icon-th-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/icon-th-big.png -------------------------------------------------------------------------------- /docs/img/icons/icon_template.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 42 | 49 | 50 | 52 | 53 | 55 | image/svg+xml 56 | 58 | 59 | 60 | 61 | 62 | 67 | 73 | 79 | Co 92 | 93 | 94 | -------------------------------------------------------------------------------- /docs/img/icons/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/interface.png -------------------------------------------------------------------------------- /docs/img/icons/method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/method.png -------------------------------------------------------------------------------- /docs/img/icons/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/ok.png -------------------------------------------------------------------------------- /docs/img/icons/property.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/property.png -------------------------------------------------------------------------------- /docs/img/icons/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/search.gif -------------------------------------------------------------------------------- /docs/img/icons/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/variable.png -------------------------------------------------------------------------------- /docs/img/icons/view_source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/view_source.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_private.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/visibility_private.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_protected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/visibility_protected.png -------------------------------------------------------------------------------- /docs/img/icons/visibility_public.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/icons/visibility_public.png -------------------------------------------------------------------------------- /docs/img/iviewer/grab.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/grab.cur -------------------------------------------------------------------------------- /docs/img/iviewer/hand.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/hand.cur -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.rotate_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.rotate_left.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.rotate_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.rotate_right.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_fit.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_fit2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_fit2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_in.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_in2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_in2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_out.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_out2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_out2.gif -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_zero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_zero.png -------------------------------------------------------------------------------- /docs/img/iviewer/iviewer.zoom_zero2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/iviewer/iviewer.zoom_zero2.gif -------------------------------------------------------------------------------- /docs/img/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/img/loader.gif -------------------------------------------------------------------------------- /docs/js/jqplot/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Title: MIT License 2 | 3 | Copyright (c) 2009-2013 Chris Leonello 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /docs/js/jqplot/README.txt: -------------------------------------------------------------------------------- 1 | Title: jqPlot Readme 2 | 3 | Pure JavaScript plotting plugin for jQuery. 4 | 5 | To learn how to use jqPlot, start with the Basic Usage Instructions below. Then read the 6 | usage.txt and jqPlotOptions.txt files included with the distribution. 7 | 8 | The jqPlot home page is at . 9 | 10 | Downloads can be found at . 11 | 12 | The mailing list is at . 13 | 14 | Examples and unit tests are at . 15 | 16 | Documentation is at . 17 | 18 | The project page and source code are at . 19 | 20 | Bugs, issues, feature requests: . 21 | 22 | Basic Usage Instructions: 23 | 24 | jqPlot requires jQuery (1.4+ required for certain features). jQuery 1.9.1 is included in 25 | the distribution. To use jqPlot include jQuery, the jqPlot jQuery plugin, the jqPlot css file and 26 | optionally the excanvas script to support IE version prior to IE 9 in your web page: 27 | 28 | > 29 | > 30 | > 31 | > 32 | 33 | For usage instructions, see in usage.txt. For available options, see 34 | in jqPlotOptions.txt. 35 | 36 | Building from source: 37 | 38 | If you've cloned the repository, you can build a distribution from source. 39 | You need to have ant installed. You can simply 40 | type "ant" from the jqplot directory to build the default "all" target. 41 | There are 6 pertinent targets: clean, dist, min, docs, compress and all. Use: 42 | 43 | > ant -p 44 | 45 | to get a description of the various build targets. 46 | 47 | Legal Notices: 48 | 49 | Copyright (c) 2009-2013 Chris Leonello 50 | jqPlot is currently available for use in all personal or commercial projects 51 | under both the MIT and GPL version 2.0 licenses. This means that you can 52 | choose the license that best suits your project and use it accordingly. 53 | 54 | Although not required, the author would appreciate an email letting him 55 | know of any substantial use of jqPlot. You can reach the author at: 56 | chris at jqplot or see http://www.jqplot.com/info.php . 57 | 58 | If you are feeling kind and generous, consider supporting the project by 59 | making a donation at: http://www.jqplot.com/donate.php . 60 | 61 | jqPlot includes date instance methods and printf/sprintf functions by other authors: 62 | 63 | Date instance methods: 64 | 65 | author Ken Snyder (ken d snyder at gmail dot com) 66 | date 2008-09-10 67 | version 2.0.2 (http://kendsnyder.com/sandbox/date/) 68 | license Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/) 69 | 70 | JavaScript printf/sprintf functions. 71 | 72 | version 2007.04.27 73 | author Ash Searle 74 | http://hexmen.com/blog/2007/03/printf-sprintf/ 75 | http://hexmen.com/js/sprintf.js 76 | The author (Ash Searle) has placed this code in the public domain: 77 | "This code is unrestricted: you are free to use it however you like." 78 | -------------------------------------------------------------------------------- /docs/js/jqplot/copyright.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * jqPlot 3 | * Pure JavaScript plotting plugin using jQuery 4 | * 5 | * Version: @VERSION 6 | * 7 | * Copyright (c) 2009-2013 Chris Leonello 8 | * jqPlot is currently available for use in all personal or commercial projects 9 | * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 10 | * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 11 | * choose the license that best suits your project and use it accordingly. 12 | * 13 | * Although not required, the author would appreciate an email letting him 14 | * know of any substantial use of jqPlot. You can reach the author at: 15 | * chris at jqplot dot com or see http://www.jqplot.com/info.php . 16 | * 17 | * If you are feeling kind and generous, consider supporting the project by 18 | * making a donation at: http://www.jqplot.com/donate.php . 19 | * 20 | * sprintf functions contained in jqplot.sprintf.js by Ash Searle: 21 | * 22 | * version 2007.04.27 23 | * author Ash Searle 24 | * http://hexmen.com/blog/2007/03/printf-sprintf/ 25 | * http://hexmen.com/js/sprintf.js 26 | * The author (Ash Searle) has placed this code in the public domain: 27 | * "This code is unrestricted: you are free to use it however you like." 28 | * 29 | * included jsDate library by Chris Leonello: 30 | * 31 | * Copyright (c) 2010-2013 Chris Leonello 32 | * 33 | * jsDate is currently available for use in all personal or commercial projects 34 | * under both the MIT and GPL version 2.0 licenses. This means that you can 35 | * choose the license that best suits your project and use it accordingly. 36 | * 37 | * jsDate borrows many concepts and ideas from the Date Instance 38 | * Methods by Ken Snyder along with some parts of Ken's actual code. 39 | * 40 | * Ken's origianl Date Instance Methods and copyright notice: 41 | * 42 | * Ken Snyder (ken d snyder at gmail dot com) 43 | * 2008-09-10 44 | * version 2.0.2 (http://kendsnyder.com/sandbox/date/) 45 | * Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/) 46 | * 47 | * jqplotToImage function based on Larry Siden's export-jqplot-to-png.js. 48 | * Larry has generously given permission to adapt his code for inclusion 49 | * into jqPlot. 50 | * 51 | * Larry's original code can be found here: 52 | * 53 | * https://github.com/lsiden/export-jqplot-to-png 54 | * 55 | * 56 | */ 57 | -------------------------------------------------------------------------------- /docs/js/jqplot/jquery.jqplot.min.css: -------------------------------------------------------------------------------- 1 | .jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em}.jqplot-axis{font-size:.75em}.jqplot-xaxis{margin-top:10px}.jqplot-x2axis{margin-bottom:10px}.jqplot-yaxis{margin-right:10px}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis,.jqplot-yMidAxis{margin-left:10px;margin-right:10px}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick,.jqplot-yMidAxis-tick{position:absolute;white-space:pre}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom}.jqplot-yaxis-tick{right:0;top:15px;text-align:right}.jqplot-yaxis-tick.jqplot-breakTick{right:-20px;margin-right:0;padding:1px 5px 1px 5px;z-index:2;font-size:1.5em}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left}.jqplot-yMidAxis-tick{text-align:center;white-space:nowrap}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute}.jqplot-yMidAxis-label{font-size:11pt;position:absolute}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;margin-left:10px;position:absolute}.jqplot-meterGauge-tick{font-size:.75em;color:#999}.jqplot-meterGauge-label{font-size:1em;color:#999}table.jqplot-table-legend{margin-top:12px;margin-bottom:12px;margin-left:12px;margin-right:12px}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em}td.jqplot-table-legend{vertical-align:middle}td.jqplot-seriesToggle:hover,td.jqplot-seriesToggle:active{cursor:pointer}.jqplot-table-legend .jqplot-series-hidden{text-decoration:line-through}div.jqplot-table-legend-swatch-outline{border:1px solid #ccc;padding:1px}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:5px;border-bottom-width:5px;border-left-width:6px;border-right-width:6px;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-highlighter-tooltip,.jqplot-canvasOverlay-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px}.jqplot-point-label{font-size:.75em;z-index:2}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em}.jqplot-error{text-align:center}.jqplot-error-message{position:relative;top:46%;display:inline-block}div.jqplot-bubble-label{font-size:.8em;padding-left:2px;padding-right:2px;color:rgb(20%,20%,20%)}div.jqplot-bubble-label.jqplot-bubble-label-highlight{background:rgba(90%,90%,90%,0.7)}div.jqplot-noData-container{text-align:center;background-color:rgba(96%,96%,96%,0.3)} -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.blockRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.BlockRenderer=function(){a.jqplot.LineRenderer.call(this)};a.jqplot.BlockRenderer.prototype=new a.jqplot.LineRenderer();a.jqplot.BlockRenderer.prototype.constructor=a.jqplot.BlockRenderer;a.jqplot.BlockRenderer.prototype.init=function(b){this.css={padding:"2px",border:"1px solid #999",textAlign:"center"};this.escapeHtml=false;this.insertBreaks=true;this.varyBlockColors=false;a.extend(true,this,b);if(this.css.backgroundColor){this.color=this.css.backgroundColor}else{if(this.css.background){this.color=this.css.background}else{if(!this.varyBlockColors){this.css.background=this.color}}}this.canvas=new a.jqplot.BlockCanvas();this.shadowCanvas=new a.jqplot.BlockCanvas();this.canvas._plotDimensions=this._plotDimensions;this.shadowCanvas._plotDimensions=this._plotDimensions;this._type="block";this.moveBlock=function(l,j,i,e){var c=this.canvas._elem.children(":eq("+l+")");this.data[l][0]=j;this.data[l][1]=i;this._plotData[l][0]=j;this._plotData[l][1]=i;this._stackData[l][0]=j;this._stackData[l][1]=i;this.gridData[l][0]=this._xaxis.series_u2p(j);this.gridData[l][1]=this._yaxis.series_u2p(i);var k=c.outerWidth();var f=c.outerHeight();var d=this.gridData[l][0]-k/2+"px";var g=this.gridData[l][1]-f/2+"px";if(e){if(parseInt(e,10)){e=parseInt(e,10)}c.animate({left:d,top:g},e)}else{c.css({left:d,top:g})}c=null}};a.jqplot.BlockRenderer.prototype.draw=function(q,o,r){if(this.plugins.pointLabels){this.plugins.pointLabels.show=false}var f,c,l,o,p,k,n,g,e,m;var b=(r!=undefined)?r:{};var j=new a.jqplot.ColorGenerator(this.seriesColors);this.canvas._elem.empty();for(f=0;f")}k=a.extend(true,{},this.css,k);c=a('
');this.canvas._elem.append(c);this.escapeHtml?c.text(p):c.html(p);delete k.position;delete k.marginRight;delete k.marginLeft;if(!k.background&&!k.backgroundColor&&!k.backgroundImage){k.background=j.next()}c.css(k);n=c.outerWidth();g=c.outerHeight();e=o[0]-n/2+"px";m=o[1]-g/2+"px";c.css({left:e,top:m});c=null}};a.jqplot.BlockCanvas=function(){a.jqplot.ElemContainer.call(this);this._ctx};a.jqplot.BlockCanvas.prototype=new a.jqplot.ElemContainer();a.jqplot.BlockCanvas.prototype.constructor=a.jqplot.BlockCanvas;a.jqplot.BlockCanvas.prototype.createElement=function(i,e,c){this._offsets=i;var b="jqplot-blockCanvas";if(e!=undefined){b=e}var g;if(this._elem){g=this._elem.get(0)}else{g=document.createElement("div")}if(c!=undefined){this._plotDimensions=c}var d=this._plotDimensions.width-this._offsets.left-this._offsets.right+"px";var f=this._plotDimensions.height-this._offsets.top-this._offsets.bottom+"px";this._elem=a(g);this._elem.css({position:"absolute",width:d,height:f,left:this._offsets.left,top:this._offsets.top});this._elem.addClass(b);return this._elem};a.jqplot.BlockCanvas.prototype.setContext=function(){this._ctx={canvas:{width:0,height:0},clearRect:function(){return null}};return this._ctx}})(jQuery); -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.CanvasAxisLabelRenderer=function(b){this.angle=0;this.axis;this.show=true;this.showLabel=true;this.label="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="11pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);if(b.angle==null&&this.axis!="xaxis"&&this.axis!="x2axis"){this.angle=-90}var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisLabelRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisLabelRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisLabelRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisLabelRenderer.prototype.draw=function(c,f){if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css({position:"absolute"});this._elem.addClass("jqplot-"+this.axis+"-label");e=null;return this._elem};a.jqplot.CanvasAxisLabelRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery); -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.CanvasAxisTickRenderer=function(b){this.mark="outside";this.showMark=true;this.showGridline=true;this.isMinorTick=false;this.angle=0;this.markSize=4;this.show=true;this.showLabel=true;this.labelPosition="auto";this.label="";this.value=null;this._styles={};this.formatter=a.jqplot.DefaultTickFormatter;this.formatString="";this.prefix="";this.fontFamily='"Trebuchet MS", Arial, Helvetica, sans-serif';this.fontSize="10pt";this.fontWeight="normal";this.fontStretch=1;this.textColor="#666666";this.enableFontSupport=true;this.pt2px=null;this._elem;this._ctx;this._plotWidth;this._plotHeight;this._plotDimensions={height:null,width:null};a.extend(true,this,b);var c={fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily};if(this.pt2px){c.pt2px=this.pt2px}if(this.enableFontSupport){if(a.jqplot.support_canvas_text()){this._textRenderer=new a.jqplot.CanvasFontRenderer(c)}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}}else{this._textRenderer=new a.jqplot.CanvasTextRenderer(c)}};a.jqplot.CanvasAxisTickRenderer.prototype.init=function(b){a.extend(true,this,b);this._textRenderer.init({fontSize:this.fontSize,fontWeight:this.fontWeight,fontStretch:this.fontStretch,fillStyle:this.textColor,angle:this.getAngleRad(),fontFamily:this.fontFamily})};a.jqplot.CanvasAxisTickRenderer.prototype.getWidth=function(d){if(this._elem){return this._elem.outerWidth(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.sin(f.angle)*e)+Math.abs(Math.cos(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getHeight=function(d){if(this._elem){return this._elem.outerHeight(true)}else{var f=this._textRenderer;var c=f.getWidth(d);var e=f.getHeight(d);var b=Math.abs(Math.cos(f.angle)*e)+Math.abs(Math.sin(f.angle)*c);return b}};a.jqplot.CanvasAxisTickRenderer.prototype.getTop=function(b){if(this._elem){return this._elem.position().top}else{return null}};a.jqplot.CanvasAxisTickRenderer.prototype.getAngleRad=function(){var b=this.angle*Math.PI/180;return b};a.jqplot.CanvasAxisTickRenderer.prototype.setTick=function(b,d,c){this.value=b;if(c){this.isMinorTick=true}return this};a.jqplot.CanvasAxisTickRenderer.prototype.draw=function(c,f){if(!this.label){this.label=this.prefix+this.formatter(this.formatString,this.value)}if(this._elem){if(a.jqplot.use_excanvas&&window.G_vmlCanvasManager.uninitElement!==undefined){window.G_vmlCanvasManager.uninitElement(this._elem.get(0))}this._elem.emptyForce();this._elem=null}var e=f.canvasManager.getCanvas();this._textRenderer.setText(this.label,c);var b=this.getWidth(c);var d=this.getHeight(c);e.width=b;e.height=d;e.style.width=b;e.style.height=d;e.style.textAlign="left";e.style.position="absolute";e=f.canvasManager.initCanvas(e);this._elem=a(e);this._elem.css(this._styles);this._elem.addClass("jqplot-"+this.axis+"-tick");e=null;return this._elem};a.jqplot.CanvasAxisTickRenderer.prototype.pack=function(){this._textRenderer.draw(this._elem.get(0).getContext("2d"),this.label)}})(jQuery); -------------------------------------------------------------------------------- /docs/js/jqplot/plugins/jqplot.ciParser.min.js: -------------------------------------------------------------------------------- 1 | /* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com 2 | jsDate | (c) 2010-2013 Chris Leonello 3 | */(function(a){a.jqplot.ciParser=function(g,l){var m=[],o,n,h,f,e,c;if(typeof(g)=="string"){g=a.jqplot.JSON.parse(g,d)}else{if(typeof(g)=="object"){for(e in g){for(h=0;h=0){i=/^\/Date\((-?[0-9]+)\)\/$/.exec(k);if(i){return parseInt(i[1],10)}}return k}}for(var b in g){o=[];n=g[b];switch(b){case"PriceTicks":for(h=0;h li').bind('mouseover', menu_open); 28 | $('#file-nav > li').bind('mouseout', menu_timer); 29 | }); 30 | 31 | document.onclick = menu_close; -------------------------------------------------------------------------------- /docs/js/prettify/lang-apollo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-apollo.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-clj.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) 2011 Google Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | var a=null; 17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], 18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); 19 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-css.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", 2 | /^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); 3 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-go.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-go.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-hs.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n \r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/, 2 | null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]); 3 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-lisp.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], 3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","scm"]); 4 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-lua.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-lua.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-ml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-ml.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-n.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\xa0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/, 3 | a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, 4 | a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]); 5 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-proto.js: -------------------------------------------------------------------------------- 1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); 2 | -------------------------------------------------------------------------------- /docs/js/prettify/lang-scala.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-scala.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-sql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-sql.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-tex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-tex.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-vb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-vb.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-vhdl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-vhdl.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-wiki.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aliyun/aliyun-log-php-sdk/42d234681fcb63667367f7e38918cf79777c87b0/docs/js/prettify/lang-wiki.js -------------------------------------------------------------------------------- /docs/js/prettify/lang-yaml.js: -------------------------------------------------------------------------------- 1 | var a=null; 2 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]); 3 | -------------------------------------------------------------------------------- /docs/js/sidebar.js: -------------------------------------------------------------------------------- 1 | jQuery.expr[':'].Contains = function(a, i, m) { 2 | return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; 3 | }; 4 | 5 | $(function() { 6 | $("#sidebar-nav").accordion({ 7 | autoHeight: false, 8 | navigation: true, 9 | collapsible: true 10 | }).accordion("activate", false) 11 | .find('a.link').unbind('click').click( 12 | function(ev) { 13 | ev.cancelBubble = true; // IE 14 | if (ev.stopPropagation) { 15 | ev.stopPropagation(); // the rest 16 | } 17 | 18 | return true; 19 | }).prev().prev().remove(); 20 | 21 | $("#sidebar-nav>h3").click(function() { 22 | if ($(this).attr('initialized') == 'true') return; 23 | 24 | $(this).next().find(".sidebar-nav-tree").treeview({ 25 | collapsed: true, 26 | persist: "cookie" 27 | }); 28 | $(this).attr('initialized', true); 29 | }); 30 | }); 31 | 32 | function tree_search(input) { 33 | treeview = $(input).parent().parent().next(); 34 | 35 | // Expand all items 36 | treeview.find('.expandable-hitarea').click(); 37 | 38 | // make all items visible again 39 | treeview.find('li:hidden').show(); 40 | 41 | // hide all items that do not match the given search criteria 42 | if ($(input).val()) { 43 | treeview.find('li').not(':has(a:Contains(' + $(input).val() + '))').hide(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /docs/namespaces/global.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | SLS_PHP_SDK » global 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 45 |
46 | 50 |
51 |
52 | 53 |
54 | 61 |
62 |
63 | 64 | 65 | -------------------------------------------------------------------------------- /docs/phpdoc-cache-2e/phpdoc-cache-settings.dat: -------------------------------------------------------------------------------- 1 | O:51:"phpDocumentor\Descriptor\ProjectDescriptor\Settings":2:{s:13:"*isModified";b:0;s:13:"*visibility";i:7;} -------------------------------------------------------------------------------- /docs/phpdoc-cache-34/phpdoc-cache-file_6313c8684ed97495cd6c85612f310684.dat: -------------------------------------------------------------------------------- 1 | O:39:"phpDocumentor\Descriptor\FileDescriptor":22:{s:7:"*hash";s:32:"81d12c119bc415e1d2c2b3530087d899";s:7:"*path";s:30:"Models/ListConfigsResponse.php";s:9:"*source";s:974:"size = $resp['total']; 28 | $this->configs = $resp['configs']; 29 | } 30 | 31 | public function getSize(){ 32 | return count($this->configs) 33 | } 34 | 35 | public function getTotal(){ 36 | return $this ->total; 37 | } 38 | 39 | public function getConfigs(){ 40 | return $this->configs; 41 | } 42 | 43 | 44 | } 45 | ";s:19:"*namespaceAliases";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:11:"*includes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:12:"*constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:12:"*functions";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:10:"*classes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:13:"*interfaces";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:9:"*traits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:10:"*markers";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:8:"*fqsen";s:0:"";s:7:"*name";s:23:"ListConfigsResponse.php";s:12:"*namespace";N;s:10:"*package";s:11:"LOG_PHP_SDK";s:10:"*summary";s:0:"";s:14:"*description";s:0:"";s:17:"*fileDescriptor";N;s:7:"*line";i:0;s:7:"*tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:2:{s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:"*name";s:7:"package";s:14:"*description";s:11:"LOG_PHP_SDK";s:9:"*errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}}}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}}}s:9:"*errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:"*severity";s:5:"error";s:7:"*code";s:13:"PPC:ERR-50000";s:7:"*line";i:0;s:10:"*context";a:2:{s:11:"{{ value }}";s:2:"""";i:0;s:0:"";}}}}s:19:"*inheritedElement";N;} -------------------------------------------------------------------------------- /sample/credentialsProviderSample.php: -------------------------------------------------------------------------------- 1 | 'TestContent', 24 | 'kv_json' => '{"a": "b", "c": 19021}' 25 | ); 26 | $logItem = new Aliyun_Log_Models_LogItem(); 27 | $logItem->setTime(time()); 28 | $logItem->setContents($contents); 29 | $logitems = array($logItem); 30 | $request = new Aliyun_Log_Models_PutLogsRequest( 31 | $project, 32 | $logstore, 33 | $topic, 34 | null, 35 | $logitems 36 | ); 37 | 38 | try { 39 | $response = $client->putLogs($request); 40 | } catch (Aliyun_Log_Exception $ex) { 41 | var_dump($ex); 42 | } catch (Exception $ex) { 43 | var_dump($ex); 44 | } 45 | } 46 | 47 | putLogs($client, $project, $logstore); 48 | $res = $client->getLogs($req); 49 | var_dump($res->getLogs()); 50 | -------------------------------------------------------------------------------- /tests/EndpointTest.php: -------------------------------------------------------------------------------- 1 | assertEquals($this->getUrl('https://cn-hangzhou.log.aliyuncs.com', 'test', '/', array()), 'https://test.cn-hangzhou.log.aliyuncs.com/'); 10 | $this->assertEquals($this->getUrl('cn-hangzhou.log.aliyuncs.com', 'test', '/', array()), 'http://test.cn-hangzhou.log.aliyuncs.com/'); 11 | $this->assertEquals($this->getUrl('http://cn-hangzhou.log.aliyuncs.com', 'test', '/logstores', array()), 'http://test.cn-hangzhou.log.aliyuncs.com/logstores'); 12 | $this->assertEquals($this->getUrl('https://cn-hangzhou.log.aliyuncs.com:443', 'test', '/logstores', array()), 'https://test.cn-hangzhou.log.aliyuncs.com:443/logstores'); 13 | $this->assertEquals($this->getUrl('https://111.111.111.111:80', 'test', '/logstores', array()), 'https://111.111.111.111:80/logstores'); 14 | $this->assertEquals($this->getUrl('111.111.111.111:442', 'test', '/test', array()), 'http://111.111.111.111:442/test'); 15 | $this->assertEquals($this->getUrl('111.111.111.111:442', null, '/test', array()), 'http://111.111.111.111:442/test'); 16 | $this->assertEquals($this->getUrl('http://111.111.111.111:442', 'test', '/cursor', array('type' => 'cursor')), 'http://111.111.111.111:442/cursor?type=cursor'); 17 | $this->assertEquals($this->getUrl('https://cn-hangzhou.log.aliyuncs.com', null, '/cursor', array('type' => 'cursor')), 'https://cn-hangzhou.log.aliyuncs.com/cursor?type=cursor'); 18 | $this->assertEquals($this->getUrl('cn-hangzhou.log.aliyuncs.com', null, '/', array()), 'http://cn-hangzhou.log.aliyuncs.com/'); 19 | } 20 | 21 | public function getUrl($endpoint, $project, $resource, $params) { 22 | $accessKeyId = 'testKey'; 23 | $accessKey = 'testAccessKey'; 24 | $client = new Aliyun_Log_Client($endpoint, $accessKeyId, $accessKey); 25 | $reflection = new ReflectionClass($client); 26 | $method = $reflection->getMethod('buildUrl'); 27 | $method->setAccessible(true); 28 | return $method->invokeArgs($client, [$project, $resource, $params]); 29 | } 30 | } --------------------------------------------------------------------------------