logclient.py 文件源码

python
阅读 120 收藏 0 点赞 0 评论 0

项目:aliyun-log-python-sdk 作者: aliyun 项目源码 文件源码
def delete_shard(self, project_name, logstore_name, shardId):
        """ delete a readonly shard 
        Unsuccessful opertaion will cause an LogException.

        :type project_name: string
        :param project_name: the Project name 

        :type logstore_name: string
        :param logstore_name: the logstore name

        :type shardId: int
        :param shardId: the read only shard id

        :return: ListShardResponse

        :raise: LogException
        """
        headers = {}
        params = {}
        resource = "/logstores/" + logstore_name + "/shards/" + str(shardId)
        (resp, header) = self._send("DELETE", project_name, None, resource, params, headers)
        return DeleteShardResponse(header, resp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号