createUsageLimitRule()
createUsageLimitRule(
_projectId,
_productId,
_data
): Promise<Response<{
allowanceMetric: UsageRuleAllowanceMetric;
allowanceValue: number;
billedUsages: object[];
conflicts: {
clientData: unknown;
conflictedAt: number;
serverData: unknown;
};
createdAt?: string;
id: string;
metadata: Record<string, unknown>;
product: {
id: string;
};
project: {
id: string;
};
sandboxMode: boolean;
scopeKind: UsageRuleScopeKind;
scopeValue: string;
tombstoned?: boolean;
tombstonedAt?: string | null;
updatedAt?: string;
}>>;Parameters
_projectId
string
_productId
string
_data
allowanceMetric
UsageRuleAllowanceMetric = ...
allowanceValue
number = ...
scopeKind
UsageRuleScopeKind = ...
scopeValue
string = ...
Last updated on