Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntitySchemaProto" /> class.
 /// </summary>
 /// <param name="attributesDescriptor">attributesDescriptor.</param>
 /// <param name="enableRollup">Timeseries for an entity schema is rolled up based on this setting. Rollup is disabled by default. Rollups cannot be done for metrics with value_type other than kInt64 or kDouble..</param>
 /// <param name="flushIntervalSecs">Defines the interval used to flush in memory stats to scribe table. During this time if the stats server is down before flushing, it could loose some of the stats. Modules can flush any critical stats via AddEntitiesStats API. But this  should be used very judiciously as it causes lot of overhead for stats..</param>
 /// <param name="isInternalSchema">Specifies if this schema should be displayed in Advanced Diagnostics of the Cohesity Dashboard. If false, the schema is displayed..</param>
 /// <param name="largestFlushIntervalSecs">Use can change the flush interval secs via gflag and this store the largest interval seconds set. This is used to round up the timestamp to this flush interval secs during range scan..</param>
 /// <param name="name">Specifies a name that uniquely identifies an entity schema such as &#39;kBridgeClusterStats&#39;..</param>
 /// <param name="rollupGranularityVec">rollupGranularityVec.</param>
 /// <param name="schemaDescriptiveName">Specifies the name of the Schema as displayed in Advanced Diagnostics of the Cohesity Dashboard. For example for the &#39;kBridgeClusterStats&#39; Schema, the descriptive name is &#39;Cluster Physical Stats&#39;..</param>
 /// <param name="schemaHelpText">Specifies an optional informational description about the schema..</param>
 /// <param name="timeSeriesDescriptorVec">Array of Time Series.  List of time series of data (set of data points) for metrics..</param>
 /// <param name="timeToLiveSecs">Specifies how long the timeseries data of this schema will be stored. After expiry the entire data point(all metrics) is garbage collected..</param>
 /// <param name="version">Specifies the version of the entity schema..</param>
 public EntitySchemaProto(EntitySchemaProtoAttributesDescriptor attributesDescriptor = default(EntitySchemaProtoAttributesDescriptor), bool?enableRollup = default(bool?), int?flushIntervalSecs = default(int?), bool?isInternalSchema = default(bool?), int?largestFlushIntervalSecs = default(int?), string name = default(string), List <EntitySchemaProtoGranularity> rollupGranularityVec = default(List <EntitySchemaProtoGranularity>), string schemaDescriptiveName = default(string), string schemaHelpText = default(string), List <EntitySchemaProtoTimeSeriesDescriptor> timeSeriesDescriptorVec = default(List <EntitySchemaProtoTimeSeriesDescriptor>), long?timeToLiveSecs = default(long?), long?version = default(long?))
 {
     this.EnableRollup             = enableRollup;
     this.FlushIntervalSecs        = flushIntervalSecs;
     this.IsInternalSchema         = isInternalSchema;
     this.LargestFlushIntervalSecs = largestFlushIntervalSecs;
     this.Name = name;
     this.RollupGranularityVec    = rollupGranularityVec;
     this.SchemaDescriptiveName   = schemaDescriptiveName;
     this.SchemaHelpText          = schemaHelpText;
     this.TimeSeriesDescriptorVec = timeSeriesDescriptorVec;
     this.TimeToLiveSecs          = timeToLiveSecs;
     this.Version = version;
     this.AttributesDescriptor     = attributesDescriptor;
     this.EnableRollup             = enableRollup;
     this.FlushIntervalSecs        = flushIntervalSecs;
     this.IsInternalSchema         = isInternalSchema;
     this.LargestFlushIntervalSecs = largestFlushIntervalSecs;
     this.Name = name;
     this.RollupGranularityVec    = rollupGranularityVec;
     this.SchemaDescriptiveName   = schemaDescriptiveName;
     this.SchemaHelpText          = schemaHelpText;
     this.TimeSeriesDescriptorVec = timeSeriesDescriptorVec;
     this.TimeToLiveSecs          = timeToLiveSecs;
     this.Version = version;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntitySchemaProto" /> class.
 /// </summary>
 /// <param name="attributesDescriptor">attributesDescriptor.</param>
 /// <param name="isInternalSchema">Specifies if this schema should be displayed in Advanced Diagnostics of the Cohesity Dashboard. If false, the schema is displayed..</param>
 /// <param name="name">Specifies a name that uniquely identifies an entity schema such as &#39;kBridgeClusterStats&#39;..</param>
 /// <param name="schemaDescriptiveName">Specifies the name of the Schema as displayed in Advanced Diagnostics of the Cohesity Dashboard. For example for the &#39;kBridgeClusterStats&#39; Schema, the descriptive name is &#39;Cluster Physical Stats&#39;..</param>
 /// <param name="schemaHelpText">Specifies an optional informational description about the schema..</param>
 /// <param name="timeSeriesDescriptorVec">Array of Time Series.  List of time series of data (set of data points) for metrics..</param>
 /// <param name="version">Specifies the version of the entity schema..</param>
 public EntitySchemaProto(EntitySchemaProtoAttributesDescriptor attributesDescriptor = default(EntitySchemaProtoAttributesDescriptor), bool?isInternalSchema = default(bool?), string name = default(string), string schemaDescriptiveName = default(string), string schemaHelpText = default(string), List <EntitySchemaProtoTimeSeriesDescriptor> timeSeriesDescriptorVec = default(List <EntitySchemaProtoTimeSeriesDescriptor>), long?version = default(long?))
 {
     this.IsInternalSchema        = isInternalSchema;
     this.Name                    = name;
     this.SchemaDescriptiveName   = schemaDescriptiveName;
     this.SchemaHelpText          = schemaHelpText;
     this.TimeSeriesDescriptorVec = timeSeriesDescriptorVec;
     this.Version                 = version;
     this.AttributesDescriptor    = attributesDescriptor;
     this.IsInternalSchema        = isInternalSchema;
     this.Name                    = name;
     this.SchemaDescriptiveName   = schemaDescriptiveName;
     this.SchemaHelpText          = schemaHelpText;
     this.TimeSeriesDescriptorVec = timeSeriesDescriptorVec;
     this.Version                 = version;
 }