| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?php
- /**
- * Copyright (C) Alibaba Cloud Computing
- * All rights reserved
- */
- require_once realpath(dirname(__FILE__) . '/Request.php');
- /**
- * The request used to send data to log server.
- *
- * @author log service dev
- */
- class Aliyun_Log_Models_PutLogsRequest extends Aliyun_Log_Models_Request {
- /**
- * @var string logstore name
- */
- private $logstore;
- /**
- * @var string topic name
- */
- private $topic;
- /**
- * @var string source of the logs
- */
- private $source;
- /**
- * @var array LogItem array, log data
- */
- private $logitems;
- /**
- * @var string shardKey putlogs shard hash key
- */
- private $shardKey;
-
- /**
- * Aliyun_Log_Models_PutLogsRequest cnstructor
- *
- * @param string $project
- * project name
- * @param string $logstore
- * logstore name
- * @param string $topic
- * topic name
- * @param string $source
- * source of the log
- * @param array $logitems
- * LogItem array,log data
- */
- public function __construct($project = null, $logstore = null, $topic = null, $source = null, $logitems = null,$shardKey=null) {
- parent::__construct ( $project );
- $this->logstore = $logstore;
- $this->topic = $topic;
- $this->source = $source;
- $this->logitems = $logitems;
- $this->shardKey = $shardKey;
- }
-
- /**
- * Get logstroe name
- *
- * @return string logstore name
- */
- public function getLogstore() {
- return $this->logstore;
- }
-
- /**
- * Set logstore name
- *
- * @param string $logstore
- * logstore name
- */
- public function setLogstore($logstore) {
- $this->logstore = $logstore;
- }
-
- /**
- * Get topic name
- *
- * @return string topic name
- */
- public function getTopic() {
- return $this->topic;
- }
-
- /**
- * Set topic name
- *
- * @param string $topic
- * topic name
- */
- public function setTopic($topic) {
- $this->topic = $topic;
- }
-
- /**
- * Get all the log data
- *
- * @return array LogItem array, log data
- */
- public function getLogItems() {
- return $this->logitems;
- }
-
- /**
- * Set the log data
- *
- * @param array $logitems
- * LogItem array, log data
- */
- public function setLogItems($logitems) {
- $this->logitems = $logitems;
- }
-
- /**
- * Get log source
- *
- * @return string log source
- */
- public function getSource() {
- return $this->source;
- }
-
- /**
- * set log source
- *
- * @param string $source
- * log source
- */
- public function setSource($source) {
- $this->source = $source;
- }
- /**
- * set shard key
- *
- * @param string shardkey
- */
- public function setShardKey($key){
- $this -> shardKey=$key;
- }
- /**
- * get shard key
- *
- * @return string shardKey
- */
- public function getShardKey(){
- return $this ->shardKey;
- }
- }
|