RuleDataSource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The resource from which the rule collects its data. Please note RuleDataSource is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RuleManagementEventDataSource and RuleMetricDataSource.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Monitor.Models.UnknownRuleDataSource))]
public abstract class RuleDataSource : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.RuleDataSource>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.RuleDataSource>
public abstract class RuleDataSource
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Monitor.Models.UnknownRuleDataSource))>]
type RuleDataSource = class
interface IJsonModel<RuleDataSource>
interface IPersistableModel<RuleDataSource>
type RuleDataSource = class
Public MustInherit Class RuleDataSource
Implements IJsonModel(Of RuleDataSource), IPersistableModel(Of RuleDataSource)
Public MustInherit Class RuleDataSource
- Inheritance
-
RuleDataSource
- Derived
- Attributes
- Implements
Constructors
RuleDataSource() |
Initializes a new instance of RuleDataSource. |
Properties
LegacyResourceId |
the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule. |
MetricNamespace |
the namespace of the metric. |
ResourceId |
the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule. |
ResourceLocation |
the location of the resource. |
Explicit Interface Implementations
IJsonModel<RuleDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<RuleDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<RuleDataSource>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<RuleDataSource>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<RuleDataSource>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET