appcenter-cli
Version:
Command line tool for Visual Studio App Center
61 lines (56 loc) • 1.39 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
;
/**
* Class representing a SubscriptionMetrics.
*/
class SubscriptionMetrics {
/**
* Create a SubscriptionMetrics.
* @property {string} name The name of the subsciption (prefixed with the
* topic name)
* @property {number} messageCount The number of messages in the subscription
*/
constructor() {
}
/**
* Defines the metadata of SubscriptionMetrics
*
* @returns {object} metadata of SubscriptionMetrics
*
*/
mapper() {
return {
required: false,
serializedName: 'SubscriptionMetrics',
type: {
name: 'Composite',
className: 'SubscriptionMetrics',
modelProperties: {
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
messageCount: {
required: true,
serializedName: 'message_count',
type: {
name: 'Number'
}
}
}
}
};
}
}
module.exports = SubscriptionMetrics;